Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reproducing Fig. 7 with infer.py #38

Open
FloorVerhoeven opened this issue Feb 16, 2022 · 4 comments
Open

Reproducing Fig. 7 with infer.py #38

FloorVerhoeven opened this issue Feb 16, 2022 · 4 comments

Comments

@FloorVerhoeven
Copy link

Hi!

I'm trying to reproduce the unwarped images in row 3 of figure 7 in the paper but am not managing.
I'm using the infer.py file as provided in this repo, and have both tried with the models available here and here. For pytorch I'm using version 0.4.1. As input images I'm using the 4 images provided in the eval/inp folder.
For example on image 13_2 I get this result

Do you have any ideas what I might need to change in order to be able to reproduce the images in Fig. 7 of the paper?

@sagniklp
Copy link
Member

I believe this is happening due to some error in the shape network regression, it could be related to normalization. Could you please share the output of the shape network?

@FloorVerhoeven
Copy link
Author

FloorVerhoeven commented Apr 1, 2022

Hi @sagniklp,

Sorry for the delay. This is the output from the shape network (for the 13_2 file):
Screenshot from 2022-04-01 15-48-02
and as .exr file

@sagniklp
Copy link
Member

This issue is resolved if you use scipy (<1.2.0) to load the image. I've updated some instructions in the infer.py accordingly. Following is the wc output you should get if you use scipy:

wc_13_2 copy

I haven't done further digging about the difference between OpenCV and scipy imread. I guess it's documented somewhere.

Thanks for bringing this to my attention!

@zxy770624739
Copy link

Hello,can you share the code of the output from the shape network?Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants