-
-
Notifications
You must be signed in to change notification settings - Fork 15
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 in access permission to start training from last.pt in Google Colab #565
Comments
👋 Hello @maxwouters, thank you for raising an issue about Ultralytics HUB 🚀! Please visit our HUB Docs to learn more:
If this is a 🐛 Bug Report, please provide screenshots and steps to reproduce your problem to help us get started working on a fix. If this is a ❓ Question, please provide as much information as possible, including dataset, model, environment details etc. so that we might provide the most helpful response. We try to respond to all issues as promptly as possible. Thank you for your patience! |
@maxwouters hello! It seems like you're encountering an issue with resuming training from a checkpoint in Google Colab. The error message indicates that the Here are a few steps you can take to troubleshoot this issue:
If you continue to face issues, please refer to the Ultralytics HUB Docs for more detailed guidance on setting up and resuming training. If the problem persists, feel free to provide additional details, and we'll be happy to help you further. Keep up the great work with your model training! 😊👍 |
@maxwouters It looks like your weights may be corrupted. Are you able to share your model id so that I can look into this in more detail?
|
This is the link to my model: https://hub.ultralytics.com/models/djv7U1Yyt75Xdq9uOf3e?tab=train |
@maxwouters I can't find any issue there. Could you share the entire output you are getting from Colab taking care to remove your API Key? |
Ultralytics HUB: New authentication successful ✅
|
@maxwouters thank you for providing the detailed error message. It appears that there's an issue with downloading the checkpoint file due to access permissions. The error message from the Google API indicates that the request is being made by an anonymous caller, which suggests that the authentication may not be properly configured or that the session has expired. Here's what you can do to resolve this:
If you've checked these points and the issue persists, you may need to look into the permissions set on the Google Cloud Storage bucket to ensure that your authenticated user has the Keep in mind that sharing your API key or any sensitive information publicly can compromise the security of your data, so always be cautious about that. If you need further assistance, please reach out with additional details while ensuring your API key remains confidential. Good luck with your training! 🚀 |
👋 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 ⭐ |
Search before asking
HUB Component
Training
Bug
I wanted to train my model in the Google Colab. I had to restart it a couple of times and it always started retraing from the last epoch. Now I can the error I don't have access to the last.pt anymore.
I receive this error:⚠️ Unable to automatically guess model task, assuming 'task=detect'. Explicitly define task for your model, i.e. 'task=detect', 'segment', 'classify','pose' or 'obb'.
WARNING
UnpicklingError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/ultralytics/engine/trainer.py in check_resume(self, overrides)
632 # Check that resume data YAML exists, otherwise strip to force re-download of dataset
--> 633 ckpt_args = attempt_load_weights(last).args
634 if not Path(ckpt_args["data"]).exists():
7 frames
UnpicklingError: invalid load key, '<'.
The above exception was the direct cause of the following exception:
FileNotFoundError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/ultralytics/engine/trainer.py in check_resume(self, overrides)
643
644 except Exception as e:
--> 645 raise FileNotFoundError(
646 "Resume checkpoint not found. Please pass a valid checkpoint to resume from, "
647 "i.e. 'yolo train resume model=path/to/last.pt'"
FileNotFoundError: Resume checkpoint not found. Please pass a valid checkpoint to resume from, i.e. 'yolo train resume model=path/to/last.pt'
Environment
OS Ventura.
Google Colab
Minimal Reproducible Example
No response
Additional
No response
The text was updated successfully, but these errors were encountered: