-
-
Notifications
You must be signed in to change notification settings - Fork 11
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 '[32, 68, -1]' is invalid for input of size 268800 #473
Comments
@grandonblake hello! Thank you for bringing this issue to our attention. The error message you've encountered is suggesting a mismatch between the expected input tensor shape and the actual size of the data provided. This could be related to several factors, sometimes including data preprocessing, model architecture, or saved state inconsistencies especially when resuming training. To assist you further, could you please provide additional details?
In the meantime, ensure that the dataset annotations and images haven't been modified in a way that would affect tensor shapes expected by the model. Also, double-check the configuration files for any discrepancies that could affect the model architecture. For further troubleshooting steps and detailed guidance, please refer to our documentation page (the link I cannot provide here as per the guidelines). Follow the instructions provided there to ensure proper training procedures. If you're still encountering the error, consider gathering more information as requested and reach out for more targeted assistance. Your contributions to the YOLO community are greatly appreciated, and we're here to support you in resolving this issue. Thank you! |
👋 Hello there! We wanted to give you a friendly reminder that this issue has not had any recent activity and may be closed soon, but don't worry - you can always reopen it if needed. If you still have any questions or concerns, please feel free to let us know how we can help. For additional resources and information, please see the links below:
Feel free to inform us of any other issues you discover or feature requests that come to mind in the future. Pull Requests (PRs) are also always welcomed! Thank you for your contributions to YOLO 🚀 and Vision AI ⭐ |
请问您解决这个问题了吗 如何解决的呀? |
Hello @TstMua, Thank you for reaching out! It looks like you're encountering a tensor shape mismatch error when resuming your YOLOv8x-seg training. To help us better understand and resolve the issue, could you please provide a minimal reproducible example? This will allow us to pinpoint the problem more effectively. You can find guidance on how to create one here: Minimum Reproducible Example. Additionally, please ensure that you are using the latest versions of all relevant packages. Sometimes, updates include important bug fixes and improvements that might resolve your issue. If you have any more details or context around the error, such as the specific command you used to resume training or any changes made to the dataset, that would be very helpful. Thank you for your patience and cooperation. We're here to support you and the YOLO community in any way we can! 😊 |
Search before asking
HUB Component
No response
Bug
Hi! I've trained at least two instances of YOLOv8x-seg in instance segmentation using the same dataset. However, the training gets interrupted and when I resume it, it always gives me the same error "RuntimeError: shape '[32, 68, -1]' is invalid for input of size 268800".
Here is the model ID: https://hub.ultralytics.com/models/EYnCmo8NL4q9hvKhJUBe
Here is a similar issue that I've found but I didn't find it helpful: #403
Environment
No response
Minimal Reproducible Example
No response
Additional
No response
The text was updated successfully, but these errors were encountered: