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

when I train with widerface,error occured #18

Open
futureflsl opened this issue May 31, 2021 · 4 comments
Open

when I train with widerface,error occured #18

futureflsl opened this issue May 31, 2021 · 4 comments

Comments

@futureflsl
Copy link

Traceback (most recent call last):
File "train.py", line 513, in
train(hyp, opt, device, tb_writer, wandb)
File "train.py", line 299, in train
scaler.step(optimizer) # optimizer.step
File "/home/fut/miniconda3/lib/python3.8/site-packages/torch/cuda/amp/grad_scaler.py", line 321, in step
retval = optimizer.step(*args, **kwargs)
File "/home/fut/miniconda3/lib/python3.8/site-packages/torch/optim/lr_scheduler.py", line 67, in wrapper
return wrapped(*args, **kwargs)
File "/home/fut/miniconda3/lib/python3.8/site-packages/torch/autograd/grad_mode.py", line 26, in decorate_context
return func(*args, **kwargs)
File "/home/fut/miniconda3/lib/python3.8/site-packages/torch/optim/sgd.py", line 106, in step
buf.mul_(momentum).add_(d_p, alpha=1 - dampening)
RuntimeError: The size of tensor a (32) must match the size of tensor b (24) at non-singleton dimension 0

@futureflsl futureflsl changed the title when I train widerface,error occured when I train with widerface,error occured May 31, 2021
@Bohrhh
Copy link

Bohrhh commented Jun 9, 2021

+1

@yongjingli
Copy link

@derronqi same question

@ssmy199
Copy link

ssmy199 commented Jul 1, 2021

+1

@ssmy199
Copy link

ssmy199 commented Jul 1, 2021

Change yolov5s-face.pt to yolov5 official file>>yolov5s.pt,this is my solution

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

4 participants