Comments (4)
I hit the following error when installing. I strictly follow the install.md file but it doesn't seem to work. The cuda version is 11.3
Obtaining file:///media/data2/ziqing/RegionCLIP Preparing metadata (setup.py) ... error error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [28 lines of output] No CUDA runtime is found, using CUDA_HOME='/usr/local/cuda' /home/ziqing/miniconda3/envs/regionclip/lib/python3.9/site-packages/setuptools/dist.py:543: UserWarning: The version specified ('RegionCLIP') is an invalid version, this may not work as expected with newer versions of setuptools, pip, and PyPI. Please see PEP 440 for more details. warnings.warn( running egg_info Traceback (most recent call last): File "", line 2, in File "", line 34, in File "/media/data2/ziqing/actiondetection/RegionCLIP/setup.py", line 193, in setup( File "/home/ziqing/miniconda3/envs/regionclip/lib/python3.9/site-packages/setuptools/init.py", line 87, in setup return distutils.core.setup(**attrs) File "/home/ziqing/miniconda3/envs/regionclip/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 185, in setup return run_commands(dist) File "/home/ziqing/miniconda3/envs/regionclip/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 201, in run_commands dist.run_commands() File "/home/ziqing/miniconda3/envs/regionclip/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands self.run_command(cmd) File "/home/ziqing/miniconda3/envs/regionclip/lib/python3.9/site-packages/setuptools/dist.py", line 1208, in run_command super().run_command(command) File "/home/ziqing/miniconda3/envs/regionclip/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 987, in run_command cmd_obj.ensure_finalized() File "/home/ziqing/miniconda3/envs/regionclip/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 111, in ensure_finalized self.finalize_options() File "/home/ziqing/miniconda3/envs/regionclip/lib/python3.9/site-packages/setuptools/command/egg_info.py", line 219, in finalize_options parsed_version = parse_version(self.egg_version) File "/home/ziqing/miniconda3/envs/regionclip/lib/python3.9/site-packages/pkg_resources/_vendor/packaging/version.py", line 266, in init raise InvalidVersion(f"Invalid version: '{version}'") pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: 'RegionCLIP' [end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. 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.
I meet it too, and I solved it by downgrade the version of setuptools
:
pip install setuptools==59
from regionclip.
It looks like the error is related to the package metadata, and specifically the version specified in the setup.py file. The error message indicates that the version specified ('RegionCLIP') is not a valid version according to PEP 440.
To fix this issue, you should update the version specified in the setup.py file to a valid version string that conforms to the PEP 440 specification. This should resolve the error and allow you to install the package successfully.
For example, you could update the setup.py file to specify a version number like this:
arduino
setup(
name='RegionCLIP',
version='0.1.0',
...
)
This specifies a version number of '0.1.0', which is a valid version string according to PEP 440. You should replace '0.1.0' with the appropriate version number for your package.
Once you have updated the version string in the setup.py file, you can try running the installation command again and see if the issue is resolved.
from regionclip.
Thank you for RuoyuChen10's answer. I tested on Google Collab today and encountered a similar issue. The solution is to lower the version of setuptools, which is version 59.0.1!
pip install setuptools==59.0.1
from regionclip.
from regionclip.
Related Issues (20)
- How much GPU memory do we need to run RegionCLIP HOT 1
- I found that no 'TEXT_EMB_PATH' and no 'OPENSET_TEST_TEXT_EMB_PATH' are not effective for transferring learning HOT 3
- [Testing Transfer Learning] I cannot reproduce results on Novel classes only HOT 15
- Question on zero-shot inference with ViT based model
- runtime_error, when MODEL.ROI_HEADS.SOFT_NMS_ENABLED is True. HOT 1
- how to train Fully Supervised Object Detection using my own dataset? What is the specific process of training? HOT 1
- May you provide pretrained checkpoints for more backbones? HOT 1
- focal scaling v.s. original focal loss HOT 1
- Some model parameters or buffers are not found in the checkpoint HOT 5
- CUDA out of memory HOT 1
- How to resume training? HOT 2
- CLIP判别裁剪区域效果差 HOT 10
- Train detectors on own datasets HOT 1
- Training on Own Datasets with 8 A100-80g GPUs, but the Process is Excessively Slow HOT 1
- cc3m dataset HOT 1
- detect a specific category
- region features can't match text features while calculating similarity HOT 2
- How to finetune with my own dataset?
- Some of the accuracy in the reproduced paper is basically 0 HOT 2
- How to evaluate on lvis by using the fully-supervised setting?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from regionclip.