C:\Users\23228\PyCharmMiscProject\.venv\Scripts\python.exe D:\commodity_sorting_system\train.py
Running training command: python D:\commodity_sorting_system\yolov5\train.py --img 640 --batch 16 --epochs 30 --data "D:\commodity_sorting_system\data\data.yaml" --weights yolov5s.pt --device cpu --project "D:\commodity_sorting_system\输出" --name yolov5_results --optimizer AdamW
requirements: Ultralytics requirement ['gitpython'] not found, attempting AutoUpdate...
[notice] A new release of pip is available: 23.2.1 -> 25.1.1
[notice] To update, run: python.exe -m pip install --upgrade pip
Collecting gitpython
Obtaining dependency information for gitpython from https://files.pythonhosted.org/packages/1d/9a/4114a9057db2f1462d5c8f8390ab7383925fe1ac012eaa42402ad65c2963/GitPython-3.1.44-py3-none-any.whl.metadata
Downloading GitPython-3.1.44-py3-none-any.whl.metadata (13 kB)
Collecting gitdb<5,>=4.0.1 (from gitpython)
Obtaining dependency information for gitdb<5,>=4.0.1 from https://files.pythonhosted.org/packages/a0/61/5c78b91c3143ed5c14207f463aecfc8f9dbb5092fb2869baf37c273b2705/gitdb-4.0.12-py3-none-any.whl.metadata
Downloading gitdb-4.0.12-py3-none-any.whl.metadata (1.2 kB)
Collecting smmap<6,>=3.0.1 (from gitdb<5,>=4.0.1->gitpython)
Obtaining dependency information for smmap<6,>=3.0.1 from https://files.pythonhosted.org/packages/04/be/d09147ad1ec7934636ad912901c5fd7667e1c858e19d355237db0d0cd5e4/smmap-5.0.2-py3-none-any.whl.metadata
Downloading smmap-5.0.2-py3-none-any.whl.metadata (4.3 kB)
Downloading GitPython-3.1.44-py3-none-any.whl (207 kB)
-------------------------------------- 207.6/207.6 kB 421.7 kB/s eta 0:00:00
Downloading gitdb-4.0.12-py3-none-any.whl (62 kB)
---------------------------------------- 62.8/62.8 kB ? eta 0:00:00
Downloading smmap-5.0.2-py3-none-any.whl (24 kB)
Installing collected packages: smmap, gitdb, gitpython
Successfully installed gitdb-4.0.12 gitpython-3.1.44 smmap-5.0.2
requirements: AutoUpdate success 7.9s
WARNING requirements: Restart runtime or rerun command for updates to take effect
train: weights=yolov5s.pt, cfg=, data=D:\commodity_sorting_system\data\data.yaml, hyp=yolov5\data\hyps\hyp.scratch-low.yaml, epochs=30, batch_size=16, imgsz=640, rect=False, resume=False, nosave=False, noval=False, noautoanchor=False, noplots=False, evolve=None, evolve_population=yolov5\data\hyps, resume_evolve=None, bucket=, cache=None, image_weights=False, device=cpu, multi_scale=False, single_cls=False, optimizer=AdamW, sync_bn=False, workers=8, project=D:\commodity_sorting_system\, name=yolov5_results, exist_ok=False, quad=False, cos_lr=False, label_smoothing=0.0, patience=100, freeze=[0], save_period=-1, seed=0, local_rank=-1, entity=None, upload_dataset=False, bbox_interval=-1, artifact_alias=latest, ndjson_console=False, ndjson_file=False
github: skipping check (offline), for updates see https://github.com/ultralytics/yolov5
requirements: Ultralytics requirement ['thop>=0.1.1'] not found, attempting AutoUpdate...
[notice] A new release of pip is available: 23.2.1 -> 25.1.1
[notice] To update, run: python.exe -m pip install --upgrade pip
Collecting thop>=0.1.1
Obtaining dependency information for thop>=0.1.1 from https://files.pythonhosted.org/packages/bb/0f/72beeab4ff5221dc47127c80f8834b4bcd0cb36f6ba91c0b1d04a1233403/thop-0.1.1.post2209072238-py3-none-any.whl.metadata
Downloading thop-0.1.1.post2209072238-py3-none-any.whl.metadata (2.7 kB)
Requirement already satisfied: torch in c:\users\23228\pycharmmiscproject\.venv\lib\site-packages (from thop>=0.1.1) (2.6.0)
Requirement already satisfied: filelock in c:\users\23228\pycharmmiscproject\.venv\lib\site-packages (from torch->thop>=0.1.1) (3.18.0)
Requirement already satisfied: typing-extensions>=4.10.0 in c:\users\23228\pycharmmiscproject\.venv\lib\site-packages (from torch->thop>=0.1.1) (4.13.2)
Requirement already satisfied: networkx in c:\users\23228\pycharmmiscproject\.venv\lib\site-packages (from torch->thop>=0.1.1) (3.4.2)
Requirement already satisfied: jinja2 in c:\users\23228\pycharmmiscproject\.venv\lib\site-packages (from torch->thop>=0.1.1) (3.1.6)
Requirement already satisfied: fsspec in c:\users\23228\pycharmmiscproject\.venv\lib\site-packages (from torch->thop>=0.1.1) (2025.3.2)
Requirement already satisfied: setuptools in c:\users\23228\pycharmmiscproject\.venv\lib\site-packages (from torch->thop>=0.1.1) (78.1.0)
Requirement already satisfied: sympy==1.13.1 in c:\users\23228\pycharmmiscproject\.venv\lib\site-packages (from torch->thop>=0.1.1) (1.13.1)
Requirement already satisfied: mpmath<1.4,>=1.1.0 in c:\users\23228\pycharmmiscproject\.venv\lib\site-packages (from sympy==1.13.1->torch->thop>=0.1.1) (1.3.0)
Requirement already satisfied: MarkupSafe>=2.0 in c:\users\23228\pycharmmiscproject\.venv\lib\site-packages (from jinja2->torch->thop>=0.1.1) (3.0.2)
Downloading thop-0.1.1.post2209072238-py3-none-any.whl (15 kB)
Installing collected packages: thop
Successfully installed thop-0.1.1.post2209072238
requirements: AutoUpdate success 6.0s
WARNING requirements: Restart runtime or rerun command for updates to take effect
Traceback (most recent call last):
File "D:\commodity_sorting_system\yolov5\train.py", line 986, in <module>
main(opt)
File "D:\commodity_sorting_system\yolov5\train.py", line 656, in main
check_file(opt.data),
^^^^^^^^^^^^^^^^^^^^
File "D:\commodity_sorting_system\yolov5\utils\general.py", line 506, in check_file
assert len(files), f"File not found: {file}" # assert file was found
^^^^^^^^^^
AssertionError: File not found: D:\commodity_sorting_system\data\data.yaml
Training failed with exit code: 1
进程已结束,退出代码为 0 怎么解决给出完整代码