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

dp2coor.py is extremely slow #16

Closed
tuallen opened this issue Jul 1, 2022 · 2 comments
Closed

dp2coor.py is extremely slow #16

tuallen opened this issue Jul 1, 2022 · 2 comments

Comments

@tuallen
Copy link

tuallen commented Jul 1, 2022

Hello,

I'm running dp2coor.py on the DeepFashion high resolution test data as instructed in Dataset and Downloads. However, it takes a long time (>20 seconds) to process each image. I believe it is because scipy.interpolate.griddata is slow on large matrices.

Is this expected behavior from dp2coor.py, and is there a way to speed it up? It would take an exorbitantly long time to process the training data at my current rate. Thank you.

@tuallen tuallen closed this as completed Jul 12, 2022
@1702609
Copy link

1702609 commented Aug 22, 2022

Have you found the solution?

@tuallen
Copy link
Author

tuallen commented Aug 22, 2022

@1702609 I remember making two changes. First, I implemented a faster griddata, but I'm afraid you'll need to do that yourself as I cannot share my code either.

The second change also speeds up the code a lot; however, it might not be the best fit for your dataset. Change line 110 of dpcoor.py to the following:

            uv_coor, uv_mask, uv_symm_mask  = getSymXYcoordinates(iuv, resolution = 256)

My images were 256x174 and I didn't find any impact on the quality of the outputs.

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

2 participants