cvlab-columbia / zero123

Zero-1-to-3: Zero-shot One Image to 3D Object (ICCV 2023)
https://zero123.cs.columbia.edu/
MIT License
2.59k stars 188 forks source link

How to run inference in batches? #103

Open QiuhongAnnaWei opened 8 months ago

QiuhongAnnaWei commented 8 months ago

Thanks for the great work!

I am trying to run inference on a lot of images at once, and am wondering what is the best way to do that.

I have modified gradio_new.py to run without the interface but that code seems to be specifically structured for 1 input image at a time.

On the other hand, it seems like main.py test functionality may be a better option. How can I call it properly? Where in the code can I pass in my custom data and sampled camera viewpoints? Thank you!

kaiaa7 commented 8 months ago

Thanks for your excellent work! I am also interested in how to run inference in batches and can you share your modified gradio_new.py? @QiuhongAnnaWei