Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with train.py on custom dataset #387

Open
wiky231 opened this issue May 10, 2022 · 0 comments
Open

Error with train.py on custom dataset #387

wiky231 opened this issue May 10, 2022 · 0 comments

Comments

@wiky231
Copy link

wiky231 commented May 10, 2022

Hi, I tried using train.py on a custom Roboflow dataset using the code: %%time %cd /content/ScaledYOLOv4/ !python train.py --img 416 --batch 16 --epochs 100 --data {dataset.location}/data.yaml --cfg ./models/yolov4-csp.yaml --weights '' --name yolov4-csp-results --cache

I got the following error: Optimizer groups: 111 .bias, 115 conv.weight, 108 other Traceback (most recent call last): File "train.py", line 443, in <module> train(hyp, opt, device, tb_writer) File "train.py", line 151, in train world_size=opt.world_size) File "/content/ScaledYOLOv4/utils/datasets.py", line 60, in create_dataloader pad=pad) File "/content/ScaledYOLOv4/utils/datasets.py", line 344, in __init__ labels, shapes = zip(*[cache[x] for x in self.img_files]) TypeError: zip argument #25 must support iteration CPU times: user 89.5 ms, sys: 19 ms, total: 109 ms Wall time: 9.97 s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant