affinelayer/pix2pix-tensorflow

Error when porting to tensorflow for: python3 tools/export-checkpoint.py --checkpoint ../export --output_file static/models/facades_BtoA.pict

lbouz16 opened this issue · 0 comments

This is the error I get everytime I run this final command and not sure what to do. Any help please

Traceback (most recent call last): File "/Users/Lina/pix2pix-tensorflow/pix2pix-tensorflow/server/tools/dump_checkpoints/dump_checkpoint_vars.py", line 94, in <module> FLAGS.model_type, FLAGS.checkpoint_file, FLAGS.output_dir, FLAGS.remove_variables_regex) File "/Users/Lina/pix2pix-tensorflow/pix2pix-tensorflow/server/tools/dump_checkpoints/dump_checkpoint_vars.py", line 50, in get_checkpoint_dumper from tensorflow_checkpoint_dumper import TensorflowCheckpointDumper File "/Users/Lina/pix2pix-tensorflow/pix2pix-tensorflow/server/tools/dump_checkpoints/tensorflow_checkpoint_dumper.py", line 33, in <module> import tensorflow as tf ImportError: No module named tensorflow Traceback (most recent call last): File "tools/export-checkpoint.py", line 101, in <module> main() File "tools/export-checkpoint.py", line 48, in main sp.check_call(cmd) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 291, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['python', '-u', '/Users/Lina/pix2pix-tensorflow/pix2pix-tensorflow/server/tools/dump_checkpoints/dump_checkpoint_vars.py', '--model_type', 'tensorflow', '--output_dir', '/var/folders/vv/8y616ccd6wngvm6trlkvwvk00000gp/T/tmp1550h_qi', '--checkpoint_file', '../export/export']' returned non-zero exit status 1.