Skip to content

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

Description

@themanyone
$ 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

Activity

  1. graemeniedermayer commented on Oct 15, 2024

    @graemeniedermayer
    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.

  2. themanyone commented on Oct 17, 2024

    @themanyone
    Author

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

  3. changed the title [-]Depth. Remove background works. But 3D Mesh removes foreground[/-] [+]Depth. Mesh scale is not normalized.[/+] on Oct 17, 2024
  4. themanyone commented on Oct 17, 2024

    @themanyone
    Author

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

  5. themanyone commented on Oct 20, 2024

    @themanyone
    Author

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

  6. changed the title [-]Depth. Mesh scale is not normalized.[/-] [+]Gradio 3D Mesh display is stretched-out in z direction.[/+] on Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions