-
Notifications
You must be signed in to change notification settings - Fork 128
在win10下路径错误 #197
Description
我在win10部署了项目,在标注的时候没有自动分割,后端报错:
[ WARN:0@99.675] global loadsave.cpp:268 cv::findDecoder imread_('C:\Users\寮犳澗\AppData\Local\label-studio\label-studio\media\upload\19\2f6b1277-cat.jpg'): can't open/reaile: check file path/integrity
Traceback (most recent call last):
File "D:\Programs\Anaconda\envs\label-studio\lib\site-packages\label_studio_ml\exceptions.py", line 39, in exception_f
return f(*args, **kwargs)
File "D:\Programs\Anaconda\envs\label-studio\lib\site-packages\label_studio_ml\api.py", line 51, in _predict
predictions, model = _manager.predict(tasks, project, label_config, force_reload, try_fetch, **params)
File "D:\Programs\Anaconda\envs\label-studio\lib\site-packages\label_studio_ml\model.py", line 617, in predict
predictions = cls._current_model.model.predict(tasks, **kwargs)
File "D:\Label_studio\SAM\playground\label_anything\sam\mmdetection.py", line 195, in predict
image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
cv2.error: OpenCV(4.11.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\color.cpp:199: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'
我注意到,我的电脑并没有C:\Users\寮犳澗\AppData\和D:\a\opencv-python\opencv-python这两个路径,感觉像是我电脑C盘用户下是中文名称导致的openCV报错,但是我也不可能修改我的用户名为英文。这个问题该怎样解决?