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

Gradio 3D Mesh display is stretched-out in z direction. #474

Open
themanyone opened this issue Oct 15, 2024 · 4 comments
Open

Gradio 3D Mesh display is stretched-out in z direction. #474

themanyone opened this issue Oct 15, 2024 · 4 comments

Comments

@themanyone
Copy link

themanyone commented Oct 15, 2024

$ sysinfo 
CPU: quad core Intel Core i7-2860QM (-MT MCP-)
speed/min/max: 3292/800/3600 MHz Kernel: 6.10.12-100.fc39.x86_64 x86_64
Up: 2d 21h 27m Mem: 17.17/31.28 GiB (54.9%) Storage: 1.86 TiB (26.8% used)
Procs: 402 Shell: Bash inxi: 3.3.34
Python 3.10 venv

Steps to reproduce.
Depth tab. Generate.

  • Mesh is very distorted and upside-down, whether or not remove background is checked.
  • Scale is so far off, it makes the model microscopic in size compared to the background.

unt

@graemeniedermayer
Copy link
Contributor

I'd suggest switching the model. Res101 is fast and low memory but often give poor results. Also while it likely isn't an issue here tiling mode is intended more for textures (wrapping depth).

DepthAnything2 is usually quite good. Zoedepth should also give better results.

@themanyone
Copy link
Author

themanyone commented Oct 17, 2024

No change after reinstall. This time with xformers and torch cu121
log.txt
Weird that this used to work back in August.
adf

@themanyone themanyone changed the title Depth. Remove background works. But 3D Mesh removes foreground Depth. Mesh scale is not normalized. Oct 17, 2024
@themanyone
Copy link
Author

themanyone commented Oct 17, 2024

It appears the stable-diffusion-webui-depthmap-script has its own github presence and pip -r requirements.txt to install... Oops

@themanyone
Copy link
Author

themanyone commented Oct 20, 2024

Video creation works. So it's just the Gradio [3D Mesh] display that is scaled too far in the z direction.

@themanyone themanyone reopened this Oct 20, 2024
@themanyone themanyone changed the title Depth. Mesh scale is not normalized. Gradio 3D Mesh display is stretched-out in z direction. Oct 20, 2024
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