|
发表于 2023-3-4 18:21:39
|
显示全部楼层
切脸的图片准备直方图排序时报错,这是什么原因
Error while processing data: Traceback (most recent call last):
File "F:\WORKSPACE\DeepFaceLab_DirectX12\_internal\DeepFaceLab\core\joblib\SubprocessorBase.py", line 71, in _subprocess_run
result = self.process_data (data)
File "F:\WORKSPACE\DeepFaceLab_DirectX12\_internal\DeepFaceLab\mainscripts\Sorter.py", line 208, in process_data
cv2.calcHist([img], [1], None, [256], [0, 256]),
cv2.error: OpenCV(4.1.0) C:\projects\opencv-python\opencv\modules\imgproc\src\histogram.cpp:153: error: (-215:Assertion failed) j < nimages in function 'cv::histPrepareImages'
Traceback (most recent call last):
File "F:\WORKSPACE\DeepFaceLab_DirectX12\_internal\DeepFaceLab\main.py", line 343, in <module>
arguments.func(arguments)
File "F:\WORKSPACE\DeepFaceLab_DirectX12\_internal\DeepFaceLab\main.py", line 69, in process_sort
Sorter.main (input_path=Path(arguments.input_dir), sort_by_method=arguments.sort_by_method)
File "F:\WORKSPACE\DeepFaceLab_DirectX12\_internal\DeepFaceLab\mainscripts\Sorter.py", line 935, in main
img_list, trash_img_list = func(input_path)
File "F:\WORKSPACE\DeepFaceLab_DirectX12\_internal\DeepFaceLab\mainscripts\Sorter.py", line 289, in sort_by_hist
img_list = HistSsimSubprocessor(pathex.get_image_paths(input_path)).run()
File "F:\WORKSPACE\DeepFaceLab_DirectX12\_internal\DeepFaceLab\core\joblib\SubprocessorBase.py", line 234, in run
self.on_data_return (cli.host_dict, obj['data'] )
File "F:\WORKSPACE\DeepFaceLab_DirectX12\_internal\DeepFaceLab\mainscripts\Sorter.py", line 276, in on_data_return
raise Exception("Fail to process data. Decrease number of images and try again.")
Exception: Fail to process data. Decrease number of images and try again.
Sorting: 0%| | 1/1740 [00:13<6:17:36, 13.03s/it]
请按任意键继续. . . |
|