CLIPSelf icon indicating copy to clipboard operation
CLIPSelf copied to clipboard

Environment error when trying evaluation on F-ViT

Open Erosist opened this issue 3 months ago • 1 comments

Hello!I encounter problems when trying to use your code to test model's performance on OV.However,I have followed the readme, F-ViT: Build Open-Vocabulary Object Detectors Upon Frozen CLIP ViTs and get errors as follows: Traceback (most recent call last): File "", line 1, in File "/opt/conda/envs/OV/lib/python3.9/site-packages/setuptools/init.py", line 18, in from setuptools.dist import Distribution File "/opt/conda/envs/OV/lib/python3.9/site-packages/setuptools/dist.py", line 47, in from . import _reqs File "/opt/conda/envs/OV/lib/python3.9/site-packages/setuptools/_reqs.py", line 1, in import setuptools.extern.jaraco.text as text File "/opt/conda/envs/OV/lib/python3.9/site-packages/setuptools/_vendor/jaraco/text/init.py", line 11, in from setuptools.extern.jaraco.functools import compose, method_cache File "/opt/conda/envs/OV/lib/python3.9/site-packages/setuptools/_vendor/jaraco/functools/init.py", line 10, in import more_itertools ModuleNotFoundError: No module named 'more_itertools' (OV) root@63920379abb5:/home/CLR-CLIP/OV_Test/CLIPSelf/F-ViT/mmdetection# rm -rf build dist .egg-info rm -rf /tmp/pip- (OV) root@63920379abb5:/home/CLR-CLIP/OV_Test/CLIPSelf/F-ViT/mmdetection# export PIP_NO_BUILD_ISOLATION=1 pip install -e . --no-deps --no-build-isolation --no-use-pep517 -v Using pip 23.3.2 from /opt/conda/envs/OV/lib/python3.9/site-packages/pip (python 3.9) Obtaining file:///home/CLR-CLIP/OV_Test/CLIPSelf/F-ViT/mmdetection Running command python setup.py egg_info ERROR: Can not execute setup.py since setuptools is not available in the build environment. error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> See above for output. And failed to install MMDectection2.x

Erosist avatar Oct 27 '25 12:10 Erosist

This error is about MMDetection lib installation. Check the version between Torch, mmcv, Numpy, opencv might work for you. I further recommend using openmim for mmcv series installation.

Kimsure avatar Nov 06 '25 08:11 Kimsure