-
Notifications
You must be signed in to change notification settings - Fork 31
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
how can we convert uv values to hsv and then to rgb? #11
Comments
Hi @linpeisensh, We created a texture map (which is the colorful image) and then we use the predicted UV values to pick colors from the texture map and overlay them on the input image. You can have any texture map you would like, here are the color maps I used to create the colorful images. Below is my snippet
Hope this helps! |
Thank you for your reply! I will try it. |
Hi @nileshkulkarni, |
And could you tell me whether I should resize uv_img? If yes, how can I do that? |
The contour_alphas are multiplied by 0 so you can just have it as a tensor of size 1 x H x W. Sorry for not including that function as it is not required anymore Secondly, it is fine if you have the texture image of size 3 x 1024 x 1024 you don't need to resize it as the nn.grid_sample will handle it. |
OK, I get the ideal result now. Thank you very much! |
Hi @nileshkulkarni, how did you create these texture map? |
Hi, Best, |
Thank you for your excellent work!
We get (Batchsize, 256,256,2) as prediction now.
Could you tell me how can we convert this to RGB (to get the colorful image just like your results)?
Thanks!
The text was updated successfully, but these errors were encountered: