szymanowiczs / splatter-image

Official implementation of `Splatter Image: Ultra-Fast Single-View 3D Reconstruction' CVPR 2024
https://szymanowiczs.github.io/splatter-image
BSD 3-Clause "New" or "Revised" License
795 stars 54 forks source link

Version of 'gradio' #44

Closed 1800012973 closed 3 months ago

1800012973 commented 3 months ago

Could you tell me the version of ‘gradio’ in requirement.txt? I have trouble when running gradio.py, I tried gradio=4.x but the correspondding 'pydantic' reports:ImportError: cannot import name 'Schema' from 'pydantic'. I also tried gradio=3.x but got: File "gradio_app.py", line 215, in main submit.click(fn=check_input_image, inputs=[input_image]).success( TypeError: click() missing 1 required positional argument: 'outputs'

Pangolin112 commented 3 months ago

These versions work for me: pydantic 1.10.15 fastapi 0.88.0 gradio 3.28.0

Riyue120 commented 3 months ago

I do not meet this problem.

IMPORTANT: You are using gradio version 3.50.2, however version 4.29.0 is available, please upgrade.

I think the __init__.py file in the gaussian_renderer folder needs to be changed in line 84:

#rendered_image, radii = rasterizer(
rendered_image, radii, rendered_depth, rendered_alpha = rasterizer(

Otherwise, you might run into this problem:

 File "/root/splatter-image/gaussian_renderer/__init__.py", line 84, in render_predicted
    rendered_image, radii = rasterizer(
ValueError: too many values to unpack (expected 2)
1800012973 commented 3 months ago

Thanks, I finally sovled it by installing gradio 3.30 and pydantic 1.7.4