deepupe_tensorflow icon indicating copy to clipboard operation
deepupe_tensorflow copied to clipboard

I get an error when running 'test.py' too

Open diamond0910 opened this issue 5 years ago • 3 comments

It looks like your restore process is wrong. The detailed information is below:

NotFoundError (see above for traceback): Restoring from checkpoint failed. This is most likely due to a Variable name or other graph key that is missing from the checkpoint. Please ensure that you have not altered the graph expected based on the checkpoint. Original error:

Key generator/coefficients/Conv/biases not found in checkpoint [[{{node save/RestoreV2}} = RestoreV2[dtypes=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, ..., DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/RestoreV2/tensor_names, save/RestoreV2/shape_and_slices)]] [[{{node save/RestoreV2/_301}} = _Recvclient_terminated=false, recv_device="/job:localhost/replica:0/task:0/device:GPU:0", send_device="/job:localhost/replica:0/task:0/device:CPU:0", send_device_incarnation=1, tensor_name="edge_306_save/RestoreV2", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/device:GPU:0"]]

diamond0910 avatar Jul 14 '19 13:07 diamond0910

I also meet almost same error information. I directly use code to restore model like below: saver = tf.train.import_meta_graph('./saved_models/model-30520.meta') saver.restore(sess, './saved_models/model-30520') But, the range of result data is [-1, 1], can't get ideal enhance image.😔

sen-mao avatar May 14 '20 04:05 sen-mao

It looks like your restore process is wrong. The detailed information is below:

NotFoundError (see above for traceback): Restoring from checkpoint failed. This is most likely due to a Variable name or other graph key that is missing from the checkpoint. Please ensure that you have not altered the graph expected based on the checkpoint. Original error:

Key generator/coefficients/Conv/biases not found in checkpoint [[{{node save/RestoreV2}} = RestoreV2[dtypes=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, ..., DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/RestoreV2/tensor_names, save/RestoreV2/shape_and_slices)]] [[{{node save/RestoreV2/_301}} = _Recvclient_terminated=false, recv_device="/job:localhost/replica:0/task:0/device:GPU:0", send_device="/job:localhost/replica:0/task:0/device:CPU:0", send_device_incarnation=1, tensor_name="edge_306_save/RestoreV2", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/device:GPU:0"]]

Do you have a model trained in this article? I want to test it with my test set. Can you give me a copy? Thank you

18827513379 avatar Dec 07 '20 08:12 18827513379

If possible, you can add a WeChat account, 18827513379

18827513379 avatar Dec 07 '20 09:12 18827513379