Closed tqtrunghnvn closed 3 years ago
Could you send your test sample to me? I can try running it.
I simply downloaded an image from the internet. You can try with this following one: https://keyassets.timeincuk.net/inspirewp/live/wp-content/uploads/sites/64/2018/12/champ-630x473.jpg
Three more questions:
Hi, I was not able to generate the 3D mesh for your examples. I got:
Could you please try to run another sample?
You may find it here.
In your attached results, I see you have generated the attention visualization with the output vertices. This indicates 3D mesh is generated. The issue you got is probably a rendering issue. I would suggest to double check the installation, making sure OpenDR is successfully installed.
Hmm. Thank you for your effort!
I have double-checked opendr installation, and is successfully installed and could be imported without any problems. Could you tell me where is the code for generating 3D mesh (NOT attention visualization)?
I guess you are referring to rendering 3D mesh, right? You may check it here: https://github.com/microsoft/MeshTransformer/blob/44760db076e4dd1220c907b2b01a8b0e8c3a334c/metro/utils/renderer.py#L405
Basically it takes mesh vertices, camera parameters, input image as inputs. It will render 3D pink mesh on top of the image.
Is it mandatory to install the dependencies with the following versions?
We verified that our code works with the dependencies. I would suggest to literally follow our installation instruction, and make sure you can reproduce our demo examples.
Thank you so much! The problem is solved.
@tqtrunghnvn hi, tqtrunghnvn, could you tell me how to solve this problem? I run the demo on gpu 3090.
Hi @zws2lll , you should check your opendr installation.
@tqtrunghnvn I use "pip install opendr", and it's 0.78. There's no error. How do you check the opendr?
Successfully built opendr Installing collected packages: opendr Attempting uninstall: opendr Found existing installation: opendr 0.76 Uninstalling opendr-0.76: Successfully uninstalled opendr-0.76 Successfully installed opendr-0.78
You could try: https://gitlab.eecs.umich.edu/ngv-python-modules/opendr
I clone it and "pip install .". 0.76 is installed. The output contains no render hand
./metro/tools/end2end_inference_handmesh.py --resume_checkpoint ./models/metro_release/metro_hand_state_dict.bin --image_file_or_path ./samples/hand/
I clone it and "pip install .". 0.76 is installed. The output contains no render hand
./metro/tools/end2end_inference_handmesh.py --resume_checkpoint ./models/metro_release/metro_hand_state_dict.bin --image_file_or_path ./samples/hand/
@kevinlin311tw hi, kevinlin311tw. I also use your docker image. Same result with no render hand. Any Suggestion?
@zws2lll I also used opendr0.76. Sorry I have no idea now
Thank you anyway.
Thank you anyway.
@zws2lll Hi, have you solved the problem? Such a circumstance perplexes me as well.
For hand, I pulled relevant codes for generating mesh on the images and stored the vertices, camera data, then did the mesh generation in a separate file, and mesh is generated, but I don't know why the almost exactly the same code doesn't work.
Hi,
First of all, thank you so much for your contribution!
I am facing a problem when running your quick demo code. I hope 3D mesh is generated as shown in your demo.
However, 3D mesh was not generated in my example.
Could you please give me some advice?