nywang16 / Pixel2Mesh

Pixel2Mesh: Generating 3D Mesh Models from Single RGB Images. In ECCV2018.
http://openaccess.thecvf.com/content_ECCV_2018/papers/Nanyang_Wang_Pixel2Mesh_Generating_3D_ECCV_2018_paper.pdf
Apache License 2.0
1.66k stars 295 forks source link

Questions about demo.py #82

Open WangDYYY opened 4 years ago

WangDYYY commented 4 years ago

Thank you for sharing this code and your work! I would like to ask the following questions: Traceback (most recent call last): File "demo.py", line 70, in model.load(sess) File "/home/wangdyyy/workspace/Pixel2Mesh/p2m/api.py", line 109, in load saver.restore(sess, save_path) File "/home/wangdyyy/workspace/Pixel2Mesh/p2m/local/lib/python2.7/site-packages/tensorflow/python/training/saver.py", line 1560, in restore {self.saver_def.filename_tensor_name: save_path}) File "/home/wangdyyy/workspace/Pixel2Mesh/p2m/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 895, in run run_metadata_ptr) File "/home/wangdyyy/workspace/Pixel2Mesh/p2m/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1124, in _run feed_dict_tensor, options, run_metadata) File "/home/wangdyyy/workspace/Pixel2Mesh/p2m/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1321, in _do_run options, run_metadata) File "/home/wangdyyy/workspace/Pixel2Mesh/p2m/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 1340, in _do_call raise type(e)(node_def, op, message) tensorflow.python.framework.errors_impl.InvalidArgumentError: Assign requires shapes of both tensors to match. lhs shape= [256,256] rhs shape= [192,192] [[Node: save/Assign_164 = Assign[T=DT_FLOAT, _class=["loc:@gcn/graphconvolution_9_vars/weights_1"], use_locking=true, validate_shape=true, _device="/job:localhost/replica:0/task:0/cpu:0"](gcn/graphconvolution_9_vars/weights_1, save/RestoreV2_164)]]

hahahai22 commented 2 years ago

Hello, has your problem been solved? Like you, I have encountered the same problem and can't be solved