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 training your own data set #436

Open
HtAgoni opened this issue Jan 5, 2024 · 0 comments
Open

Error training your own data set #436

HtAgoni opened this issue Jan 5, 2024 · 0 comments

Comments

@HtAgoni
Copy link

HtAgoni commented Jan 5, 2024

Traceback (most recent call last):
File "train.py", line 537, in
train(hyp, opt, device, tb_writer, wandb)
File "train.py", line 336, in train
results, maps, times = test.test(opt.data,
File "/data3/JXT/ours/yolov4/PyTorch_YOLOv4-master/test.py", line 125, in test
inf_out, train_out = model(img, augment=augment) # inference and training outputs
File "/home/super2/anaconda3/envs/python3.8+1.8/lib/python3.8/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
result = self.forward(*input, **kwargs)
File "/data3/JXT/ours/yolov4/PyTorch_YOLOv4-master/models/models.py", line 464, in forward
return self.forward_once(x)
File "/data3/JXT/ours/yolov4/PyTorch_YOLOv4-master/models/models.py", line 537, in forward_once
x = torch.cat(x, 1) # cat yolo outputs
RuntimeError: Sizes of tensors must match except in dimension 2. Got 9 and 85 (The offending index is 0)

@0xWEBMILK
Copy link

Can you give me an example of the code where the error is triggered?

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

2 participants