-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
RuntimeError: shape '[1, 3, 29, 76, 76]' is invalid for input of size 1472880 #138
Comments
You can choose how to build the model. Lines 17 to 18 in af00822
if you use cfg file,
and you need to change the class parameter of the yolo layer of the cfg file according to your data set. pytorch-YOLOv4/cfg/yolov4-custom.cfg Lines 966 to 980 in af00822
pytorch-YOLOv4/cfg/yolov4-custom.cfg Lines 1053 to 1068 in af00822
pytorch-YOLOv4/cfg/yolov4-custom.cfg Lines 1140 to 1156 in af00822
|
Did you solve it? According to the author's reply, I still receive the error "RuntimeError: shape'[1, 3, 8, 76, 76]' is invalid for input of size 1472880" |
@Tianxiaomo, Thanks. Do we need to edit the parameters like anchors when we use custom dataset? @SenWang-NEU I solved the problem by choosing I trained the model for about 10 hours by 2x 2080 Ti, The training courses look like this, The losses reduce a lot, while still remain relatively big values like, @Tianxiaomo I have one question, what is the acceptable loss range for us to get good inference results? |
Thanks, based on your reply, I solved the problem and the model has started training. |
The validation section code has been added, and you can infer in the training is to see when it works best. |
I am not so sure why I need to comment use_darknet_cfg to make the code run correctly?
|
Lines 607 to 612 in 74347ac
|
Hey, I had a similar error, can you tell us how to change it according to the dataset? I have no idea how to change and what to change. Thank you very much! |
not only classes, but also the filters in [convolutional] just before [yolo],
it should be 255 / 85 * (5 + classes) |
the layer output channels before [yolo] should be set 3*(5+classes) instead of 255! |
I had the same issue. |
I have met same issue while deal with scale 19201080, the problem is the during upsampling, the x size is [batch, 128, 68, 80] while target_size is [batch, 256,135, 160], the 682 != 135, so for PyTorch, a possible way is to get x[:,:,:135,:]. |
Hello, When I started training on my own dataset, it shows error like.
Does anyone face the same problem?
The text was updated successfully, but these errors were encountered: