ly19965 / EasyFace

Apache License 2.0
72 stars 13 forks source link

The model: damo/cv_ddsar_face-detection_iclr23-damofd has no valid revision #1

Open hzane opened 1 year ago

hzane commented 1 year ago
import cv2
from modelscope.pipelines import pipeline
from modelscope.utils.constant import  Tasks

face_detection = pipeline(task=Tasks.face_detection, model='damo/cv_ddsar_face-detection_iclr23-damofd')

img_path = 'https://modelscope.oss-cn-beijing.aliyuncs.com/test/images/face_detection2.jpeg'
result = face_detection(img_path)

throws exception: The model: damo/cv_ddsar_face-detection_iclr23-damofd has no valid revision

ly19965 commented 1 year ago

You should install EasyFace first~

conda create --offline -n  EasyFace python=3.8
conda activate EasyFace
# pytorch >= 1.3.0
pip install torch==1.8.1+cu102  torchvision==0.9.1+cu102  --extra-index-url https://download.pytorch.org/whl/cu102
git clone https://github.com/ly19965/FaceMaas
cd FaceMaas
pip install -r requirements.txt
mim install mmcv-full
sunyx6 commented 8 months ago

cannot import name 'Config' from 'mmcv' The mmcv >= 2.0.0 revomed the config, but the model require the mmcv must >= 2.0.0

OrdinaryChen commented 8 months ago

cannot import name 'Config' from 'mmcv' The mmcv >= 2.0.0 revomed the config, but the model require the mmcv must >= 2.0.0

do you solve this problem??? I cant install most of mmcv>2.0.0 and raise error“ERROR: Could not build wheels for mmcv, which is required to install pyproject.toml-based projects” . and when I install mmcv==2.1.0 it tell me“ImportError: FaceDetectionPipeline: DamoFdDetect: cannot import name 'Config' from 'mmcv' (/root/anaconda3/envs/easyface/lib/python3.8/site-packages/mmcv/init.py) ”