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

RuntimeError: shape '[32, 68, -1]' is invalid for input of size 268800 #473

Closed
1 task done
grandonblake opened this issue Nov 18, 2023 · 4 comments
Closed
1 task done
Labels
bug Something isn't working Stale

Comments

@grandonblake
Copy link

Search before asking

  • I have searched the HUB issues and found no similar bug report.

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".

image

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

@grandonblake grandonblake added the bug Something isn't working label Nov 18, 2023
@UltralyticsAssistant
Copy link
Member

@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?

  • What command or method are you using to resume training?
  • Are there any changes made to the dataset or preprocessing steps before resuming training?
  • Have you updated any part of the HUB infrastructure before resuming training?
  • Is there any additional stack trace or context around the error message that might help identify the exact point of failure?

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!

Copy link

👋 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 ⭐

@github-actions github-actions bot added the Stale label Dec 19, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 30, 2023
@TstMua
Copy link

TstMua commented Jun 24, 2024

请问您解决这个问题了吗 如何解决的呀?

@pderrenger
Copy link
Member

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! 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale
Projects
None yet
Development

No branches or pull requests

4 participants