报错·:[ WARN:0@0.075] global D:\a\opencv-python\opencv-python\opencv\modules\imgcodecs\src\loadsave.cpp (239) cv::findDecoder imread_(‘I:\datasets\WildDeepfake
wd_train_0.1\wd.fake139211.png’): can’t open/read file: check file path/integrity
Traceback (most recent call last):
File “kmeans.py”, line 10, in
images = [cv2.resize(cv2.imread(file), (32, 32)) for file in glob.glob(glob_dir)] #224, 224
File “kmeans.py”, line 10, in
images = [cv2.resize(cv2.imread(file), (32, 32)) for file in glob.glob(glob_dir)] #224, 224
cv2.error: OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\resize.cpp:4052: error: (-215:Assertion failed) !ssize.empty() in fun
ction ‘cv::resize’
修正:文件夹损坏了,重新复制一份,注意:ubuntu与win之间进行文件转换最好先压缩一下,否则文件夹容易损坏文章来源地址https://www.toymoban.com/news/detail-507695.html
文章来源:https://www.toymoban.com/news/detail-507695.html
到了这里,关于can‘t open/read file: check file path/integrity的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!