PaddleX icon indicating copy to clipboard operation
PaddleX copied to clipboard

训练开启时候报错

Open FIR2022start opened this issue 3 years ago • 4 comments

问题日志如下:

This log file path is D:\program files\PaddleX_GUI_2.1.0_win10\projects\P0016\T0050\err.log 注意:标志为WARNING/INFO类的仅为警告或提示类信息,非错误信息 D:\program files\PaddleX_GUI_2.1.0_win10\PaddleX_GUI_2.1.0_win10\paddle\tensor\creation.py:130: DeprecationWarning: np.object is a deprecated alias for the builtin object. To silence this warning, use object by itself. Doing this will not modify any behavior and is safe. Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations if data.dtype == np.object: Process Process-1:6: Traceback (most recent call last): File "multiprocessing\process.py", line 297, in _bootstrap File "multiprocessing\process.py", line 99, in run File "paddlexui\pms\model_tasks\tasks.py", line 73, in _call_paddlex_train File "paddlexui\pms\model_tasks\train\segmentation.py", line 132, in train File "paddlexui\pms\model_tasks\train\segmentation.py", line 64, in build_datasets File "D:\program files\PaddleX_GUI_2.1.0_win10\PaddleX_GUI_2.1.0_win10\paddlex\cv\datasets\seg_dataset.py", line 64, in init " file_list[{}] has a space in the image or label path.".format(line, file_list)) Exception: A space is defined as the delimiter to separate the image and label path, so the space cannot be in the image or label path, but the line[JPEGImages\1007 (2).jpg Annotations\1007 (2).png ] of file_list[D:\program files\PaddleX_GUI_2.1.0_win10\datasets\D0015\train_list.txt] has a space in the image or label path.

GUI 版本:2.1.0 Windows系统 CUDA/CUDNN: 11.2/8.1.0

FIR2022start avatar Jun 12 '22 14:06 FIR2022start

我的paddlex也是这样,报 if data.dtype == np.object:
基本上一训练就出错的, 似乎使用cpu不报错。

simonchf avatar Jul 13 '22 09:07 simonchf

has a space in the image or label path. 训练的样本文件名中不能有空格或者中文

lailuboy avatar Aug 06 '22 01:08 lailuboy

我的paddlex也是这样,报 if data.dtype == np.object: 基本上一训练就出错的, 似乎使用cpu不报错。

请把完整错误信息发一下

lailuboy avatar Aug 06 '22 01:08 lailuboy

非常感谢各位的解答!我检查了一下之前的数据集,应该是存在空格的原因。

FIR2022start avatar Aug 08 '22 04:08 FIR2022start