Closed parsibox closed 2 years ago
@parsibox Hi, try it with python 3.9 or 3.8
i change it to Python 3.8.0 run this code
python train.py --img 640 --batch 16 --epochs 50 --data dataset.yaml --weights yolov5m.pt
train: weights=yolov5m.pt, cfg=, data=dataset.yaml, hyp=data/hyps/hyp.scratch.yaml, epochs=50, batch_size=16, imgsz=640, rect=False, resume=False, nosave=False, noval=False, noautoanchor=False, evolve=None, bucket=, cache=None, image_weights=False, device=, multi_scale=False, single_cls=False, adam=False, sync_bn=False, workers=8, project=runs/train, entity=None, name=exp, exist_ok=False, quad=False, linear_lr=False, label_smoothing=0.0, upload_dataset=False, bbox_interval=-1, save_period=-1, artifact_alias=latest, local_rank=-1, freeze=0, patience=30
github: skipping check (not a git repository), for updates see https://github.com/ultralytics/yolov5
Traceback (most recent call last):
File "train.py", line 611, in <module>
main(opt)
File "train.py", line 487, in main
opt.data, opt.cfg, opt.hyp = check_file(opt.data), check_file(opt.cfg), check_file(opt.hyp) # check files
File "D:\python\test\Vehicle-Detection-main\utils\general.py", line 260, in check_file
assert len(files), f'File not found: {file}' # assert file was found
AssertionError: File not found: dataset.yaml
this is my downloade dataset folder
@parsibox You need to create file dataset.yaml related to your dataset and place it in the main folder. To use the dataset that I put the link in readme.md , you can use this.
thank you deare i get this warnig after creation of dataset.yaml is it important?
:\Python\Python38\lib\site-packages\torch\autocast_mode.py:141: UserWarning: User provided device_type of 'cuda', but CUDA is not available. Disabling
warnings.warn('User provided device_type of \'cuda\', but CUDA is not available. Disabling')
@parsibox You're welcome. No it's not. Because you run it on the CPU.
hi i can not install it