facebookresearch / ImageBind

ImageBind One Embedding Space to Bind Them All
Other
8.25k stars 759 forks source link

ImageBind as a Library #79

Closed msaroufim closed 1 year ago

msaroufim commented 1 year ago

I'd like to use imagebind for some performance benchmarks in https://github.com/pytorch/benchmark

To do so it would be much more convenient if it was packaged as a library so I created one

So now you can do

pip install -e .

then

(imagebind) ubuntu@ip-172-31-9-217:~$ python
Python 3.10.12 | packaged by conda-forge | (main, Jun 23 2023, 22:40:32) [GCC 12.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import imagebind
/opt/conda/envs/imagebind/lib/python3.10/site-packages/torchvision/transforms/_functional_video.py:6: UserWarning: The 'torchvision.transforms._functional_video' module is deprecated since 0.12 and will be removed in the future. Please use the 'torchvision.transforms.functional' module instead.
  warnings.warn(
/opt/conda/envs/imagebind/lib/python3.10/site-packages/torchvision/transforms/_transforms_video.py:22: UserWarning: The 'torchvision.transforms._transforms_video' module is deprecated since 0.12 and will be removed in the future. Please use the 'torchvision.transforms' module instead.
  warnings.warn(
>>> 

You can optionally make releases this way if you like too