naver / dust3r

DUSt3R: Geometric 3D Vision Made Easy
https://dust3r.europe.naverlabs.com/
Other
4.66k stars 517 forks source link

HEIC images are ignored #20

Open unrealwill opened 4 months ago

unrealwill commented 4 months ago

Tried to demo it yesterday to a few novice users using share=True in launch. Encountered a few problems along the way.

It seems to ignore heic files (which is often the default on mobile devices).

The problematic line where you need to add a ".heic" https://github.com/naver/dust3r/blob/0d87b49028a2c41aa1f102e7af396413c5e4d3fb/dust3r/utils/image.py#L77

You also need to add a pillow-heif depency pip install pillow-heif

And the following lines somewhere in image.py

from pillow_heif import register_heif_opener
register_heif_opener()

Other additional problems encountered en mobile devices (but probably due to gradio) :