facebookresearch / home-robot

Mobile manipulation research tools for roboticists
MIT License
868 stars 120 forks source link

detectron 2 installed by installdeps.sh still uses Image.LINEAR #405

Open MittelmanDaniel opened 11 months ago

MittelmanDaniel commented 11 months ago

🐛 Bug

When attempting to run the demo setup linked here:

https://github.com/facebookresearch/home-robot/blob/main/projects/habitat_ovmm/README.md#demo-setup

An error is thrown stating PIL.Image has no attribute LINEAR

image

Steps to Reproduce

Steps to reproduce the behavior: Install the dependencies using installdeps.sh

After setting up the environment in the readme and downloading OVMM data from hugging face run the demo script linked above.

Expected behavior

I'm not sure what this Demo is supposed to do, but I expected it to not error.

Additional context

This is a closed issue on the detectron github: https://github.com/facebookresearch/detectron2/issues/5010

I think this is caused by install_deps downloading an old branch instead of the current master.

yvsriram commented 11 months ago

Thanks for creating the issue and thanks for pointing to the detectron issue. Seems like your env has Pillow >=10.0.0 as opposed to 9.4.0 in my envs. We will check on this and pin the pillow version if needed. Meanwhile, can you please update the pillow version to 9.4.0 and retry?