lyuwenyu / RT-DETR

[CVPR 2024] Official RT-DETR (RTDETR paddle pytorch), Real-Time DEtection TRansformer, DETRs Beat YOLOs on Real-time Object Detection. 🔥 🔥 🔥
Apache License 2.0
2.61k stars 303 forks source link

TypeError: expected str, bytes or os.PathLike object, not NoneType #392

Open lqh964165950 opened 3 months ago

lqh964165950 commented 3 months ago

Not init distributed mode. Traceback (most recent call last): File "train.py", line 50, in main(args) File "train.py", line 24, in main cfg = YAMLConfig( File "/home/gxu4090x2/桌面/lqh/program/RT-DETR-main/rtdetr_pytorch/tools/../src/core/yaml_config.py", line 18, in init cfg = load_config(cfg_path) File "/home/gxu4090x2/桌面/lqh/program/RT-DETR-main/rtdetr_pytorch/tools/../src/core/yaml_utils.py", line 155, in loadconfig , ext = os.path.splitext(file_path) File "/home/gxu4090x2/.conda/envs/lqh/lib/python3.8/posixpath.py", line 118, in splitext p = os.fspath(p) TypeError: expected str, bytes or os.PathLike object, not NoneType

lyuwenyu commented 3 months ago
cd  RT-DETR/rtdetrv2_pytorch

python tools/train.py -c path/to/config
lqh964165950 commented 3 months ago

请问一下,用自己的数据集训练rtdetr_r101vd_6x_coco模型,为什么无法在output文件夹得到输出结果?

lyuwenyu commented 3 months ago

有训练一个完整的吧epoch嘛