Adversarial_Video_Generation icon indicating copy to clipboard operation
Adversarial_Video_Generation copied to clipboard

problem about exist model

Open yifanjiang19 opened this issue 8 years ago • 4 comments

When I download the model in https://drive.google.com/file/d/0Byf787GZQ7KvR2JvMUNIZnFlbm8/view and run
python avg_runner.py -l ./Models/Adversarial/model.ckpt-500000 The program can't run

Caused by op u'save/RestoreV2_51', defined at: File "avg_runner.py", line 185, in main() File "avg_runner.py", line 177, in main runner = AVGRunner(num_steps, load_path, num_test_rec) File "avg_runner.py", line 53, in init self.saver = tf.train.Saver(keep_checkpoint_every_n_hours=2) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 1040, in init self.build() File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 1070, in build restore_sequentially=self._restore_sequentially) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 675, in build restore_sequentially, reshape) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 402, in _AddRestoreOps tensors = self.restore_op(filename_tensor, saveable, preferred_shard) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/saver.py", line 242, in restore_op [spec.tensor.dtype])[0]) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/gen_io_ops.py", line 668, in restore_v2 dtypes=dtypes, name=name) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/op_def_library.py", line 763, in apply_op op_def=op_def) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 2327, in create_op original_op=self._default_original_op, op_def=op_def) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py", line 1226, in init self._traceback = _extract_stack()

NotFoundError (see above for traceback): Tensor name "generator/scale_0/setup/Variable_1/optimizer" not found in checkpoint files ../Models/Adversarial/model.ckpt-500000 [[Node: save/RestoreV2_51 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_recv_save/Const_0, save/RestoreV2_51/tensor_names, save/RestoreV2_51/shape_and_slices)]] [[Node: save/RestoreV2/_343 = _Recvclient_terminated=false, recv_device="/job:localhost/replica:0/task:0/gpu:0", send_device="/job:localhost/replica:0/task:0/cpu:0", send_device_incarnation=1, tensor_name="edge_851_save/RestoreV2", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/gpu:0"]]

yifanjiang19 avatar Jul 26 '17 03:07 yifanjiang19

I have the same problems too, Is there anyone has found the solution for this problem ? Thank you in advance.

TrinhQuocNguyen avatar Nov 07 '17 02:11 TrinhQuocNguyen

I found how to fix it, you can only run on tensorlflow 0.12

TrinhQuocNguyen avatar Nov 07 '17 02:11 TrinhQuocNguyen

I also encountered the same question, can I modify it to run under the tensorflow1.2 version? @TrinhQuocNguyen @yueruchen

jiyongma avatar Jun 25 '18 14:06 jiyongma

I have the same problem, can you tell me how to solve it?

Xyyyyyyyyyyyyyyyyyyyy avatar Nov 23 '22 01:11 Xyyyyyyyyyyyyyyyyyyyy