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

Meet problems when exporting meshes with refined textures #4

Open
snowflakewang opened this issue May 30, 2024 · 5 comments
Open

Meet problems when exporting meshes with refined textures #4

snowflakewang opened this issue May 30, 2024 · 5 comments

Comments

@snowflakewang
Copy link

snowflakewang commented May 30, 2024

Hello, thank you for your brilliant work in HR multi-view diffusion models and Wonder3D-style 3D generation!

I run your code on my case and it works well during diffusion inference stages and NeuS optimization stages. But when I visualize the refined mesh refine_ironman_rgba.obj using MeshLab, I meet some color artifacts as shown in the Figure 1.
image

But the video refine_ironman_rgba.mp4 does not have such flaws as the Figure 2.
image

I wonder whether I missed some details.

Thanks a lot! :)

@qingtingJ
Copy link

where can I get the texture? I only find obj without texture in my result folder. thx

@snowflakewang
Copy link
Author

@qingtingJ Hello, I cannot get texture UV, either. The mesh above only has vertex colors.

@altava-sgp
Copy link

I wonder this too.
@pengHTYX Could you please explain about this ?

@pengHTYX
Copy link
Owner

It is because the differentiable renderer does not involve all vertices. One possible solution is to increase the rendering resolution and decrease the learning rate when refining texture.

Alternatively, you can directly unproject the multi-view color images onto the mesh. To do this, first project the vertices onto the multi-view image plane using the camera pose. Then, sample the pixel values using torch.grid_sample(). Finally, fuse the multi-view colors, weighting them by the cosine distance between the normal direction and the camera rays.

I hope these suggestions are helpful for you guys.

@altava-sgp
Copy link

@pengHTYX I will try soon.
Thanks for your kind advice. 👍

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

4 participants