SHI-Labs / OneFormer

OneFormer: One Transformer to Rule Universal Image Segmentation, arxiv 2022 / CVPR 2023
https://praeclarumjj3.github.io/oneformer
MIT License
1.41k stars 128 forks source link

The code is not running in Colab. #58

Closed inkpeanut closed 1 year ago

inkpeanut commented 1 year ago

hello. I just wanted to say thank you for the positive experience I had using oneformer for my graduation project, but recently oneformer code is not working in colab. The following error occurs during the process of installing dependencies:

ERROR: Could not find a version that satisfies the requirement torch==1.9.0 (from versions: 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0, 2.0.1) ERROR: No matching distribution found for torch==1.9.0 ERROR: Could not find a version that satisfies the requirement detectron2 (from versions: none) ERROR: No matching distribution found for detectron2 ERROR: Could not find a version that satisfies the requirement natten==0.14.2 (from versions: 0.14.1, 0.14.2.post4, 0.14.4, 0.14.5, 0.14.6) ERROR: No matching distribution found for natten==0.14.2

I downgraded python to 3.8.13 and tried dependencies install. Then the following error occurs:

error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip. Preparing metadata (setup.py) ... error error: metadata-generation-failed

× Encountered error while generating package metadata. ╰─> See above for output.

note: This is an issue with the package mentioned above, not pip. hint: See above for details.

How can I use your code in colab like before? Can you please help me? Thank you