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.
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.
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.
from regionclip.
Related Issues (20)
- 您好,huggingface不能用了,什么时候更新下呀? HOT 3
- 您好,训练自己的数据集可以提供详细的教程吗?这对于我们做下游任务会非常有帮助。 HOT 4
- Do you also maintain the base / novel splits during pretraining? HOT 3
- Very poor result when evaluate on Pascal VOC dataset
- KeyError: 'Non-existent config key: MODEL.CLIP' HOT 3
- How to zero-shot inference my own label class instead of COCO or LVIS HOT 3
- The result of RPN is close to 0 for zero-shot inference of own dataset, however, the result of GT is very good. What should I do? HOT 5
- How to train the RPN? HOT 1
- How to apply my own dataset in zero-shot inference HOT 1
- About custom data set RPN training. HOT 3
- Version 'RegionCLIP' is not valid according to PEP 440. HOT 1
- 'Non-existent config key: MODEL.CLIP'. HOT 3
- Reproduction of Region classification in Fig.1 HOT 1
- Pretraining dataset HOT 1
- Demo on Hugging Face not working HOT 4
- 迁移学习训练新类结果很低 HOT 1
- Transfer learning training novel classes results are very low HOT 4
- could you share the scripts spliting coco datasets into base and novel class datasets? and the contents of 'concepts.txt' file? Thanks advance! HOT 1
- How much GPU memory do we need to run RegionCLIP HOT 1
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.