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

Error when i resume training #1045

Closed
1 task done
gin721 opened this issue Mar 4, 2025 · 2 comments
Closed
1 task done

Error when i resume training #1045

gin721 opened this issue Mar 4, 2025 · 2 comments
Assignees
Labels
bug Something isn't working HUB Ultralytics HUB issues info needed More information is required to proceed

Comments

@gin721
Copy link

gin721 commented Mar 4, 2025

Search before asking

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

HUB Component

Training

Bug

I get this error again when i try to resume my training i got it before too and got a fix for it but still it gives me error when i try to resume again

requirements: Ultralytics requirement ['hub-sdk>=0.0.12'] not found, attempting AutoUpdate...
Collecting hub-sdk>=0.0.12
  Downloading hub_sdk-0.0.18-py3-none-any.whl.metadata (10 kB)
Requirement already satisfied: requests in /usr/local/lib/python3.11/dist-packages (from hub-sdk>=0.0.12) (2.32.3)
Requirement already satisfied: charset-normalizer<4,>=2 in /usr/local/lib/python3.11/dist-packages (from requests->hub-sdk>=0.0.12) (3.4.1)
Requirement already satisfied: idna<4,>=2.5 in /usr/local/lib/python3.11/dist-packages (from requests->hub-sdk>=0.0.12) (3.10)
Requirement already satisfied: urllib3<3,>=1.21.1 in /usr/local/lib/python3.11/dist-packages (from requests->hub-sdk>=0.0.12) (2.3.0)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.11/dist-packages (from requests->hub-sdk>=0.0.12) (2025.1.31)
Downloading hub_sdk-0.0.18-py3-none-any.whl (42 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 42.9/42.9 kB 122.5 MB/s eta 0:00:00
Installing collected packages: hub-sdk
Successfully installed hub-sdk-0.0.18

requirements: AutoUpdate success ✅ 2.4s, installed 1 package: ['hub-sdk>=0.0.12']
requirements: ⚠️ Restart runtime or rerun command for updates to take effect

Ultralytics HUB: New authentication successful ✅
Ultralytics HUB: View model at https://hub.ultralytics.com/models/M84NgRRQf2qoOoUhxySU 🚀
Downloading https://storage.googleapis.com/ultralytics-hub.appspot.com/users/lVTtJwtXWBhAmgr1XcjfO5Bx7T73/models/M84NgRRQf2qoOoUhxySU/epoch-143.pt to 'weights/epoch-143.pt'...
⚠️ Download failure, retrying 1/3 https://storage.googleapis.com/ultralytics-hub.appspot.com/users/lVTtJwtXWBhAmgr1XcjfO5Bx7T73/models/M84NgRRQf2qoOoUhxySU/epoch-143.pt...
---------------------------------------------------------------------------
UnpicklingError                           Traceback (most recent call last)
[<ipython-input-3-09bf6904cf6a>](https://localhost:8080/#) in <cell line: 0>()
      1 hub.login('5f19c5f8675cca74bd1228f03b9f32c8a99da122bf')
      2 
----> 3 model = YOLO('https://hub.ultralytics.com/models/M84NgRRQf2qoOoUhxySU')
      4 results = model.train()

7 frames
[/usr/local/lib/python3.11/dist-packages/torch/serialization.py](https://localhost:8080/#) in _legacy_load(f, map_location, pickle_module, **pickle_load_args)
   1626         )
   1627 
-> 1628     magic_number = pickle_module.load(f, **pickle_load_args)
   1629     if magic_number != MAGIC_NUMBER:
   1630         raise RuntimeError("Invalid magic number; corrupt file?")

UnpicklingError: invalid load key, '<'.

Help would be appreciated

Environment

No response

Minimal Reproducible Example

No response

Additional

No response

@gin721 gin721 added the bug Something isn't working label Mar 4, 2025
@UltralyticsAssistant UltralyticsAssistant added HUB Ultralytics HUB issues info needed More information is required to proceed labels Mar 4, 2025
@UltralyticsAssistant
Copy link
Member

👋 Hello @gin721, thank you for raising an issue about Ultralytics HUB 🚀! Please visit our HUB Docs to learn more:

  • Quickstart. Start training and deploying YOLO models with HUB in seconds.
  • Datasets: Preparing and Uploading. Learn how to prepare and upload your datasets to HUB in YOLO format.
  • Projects: Creating and Managing. Group your models into projects for improved organization.
  • Models: Training and Exporting. Train YOLOv5 and YOLOv8 models on your custom datasets and export them to various formats for deployment.
  • Integrations. Explore different integration options for your trained models, such as TensorFlow, ONNX, OpenVINO, CoreML, and PaddlePaddle.
  • Ultralytics HUB App. Learn about the Ultralytics App for iOS and Android, which allows you to run models directly on your mobile device.
    • iOS. Learn about YOLO CoreML models accelerated on Apple's Neural Engine on iPhones and iPads.
    • Android. Explore TFLite acceleration on mobile devices.
  • Inference API. Understand how to use the Inference API for running your trained models in the cloud to generate predictions.

If this is a 🐛 Bug Report, please provide a clearer Minimum Reproducible Example (MRE) to help us investigate more effectively. This includes:

  1. Clear steps to reproduce the problem (e.g., code snippets, usage steps, command-line arguments, etc.).
  2. Relevant system/configuration details and the version of SDK or software you're using.
  3. Any associated logs or screenshots that demonstrate the issue.

If this is a ❓ Question, please provide as much detail as possible, including your dataset, model, environment details, and the exact use-case.

We try to respond to all issues promptly, and an Ultralytics engineer will assist you soon. Thank you for your patience! ✨

@sergiuwaxmann sergiuwaxmann self-assigned this Mar 4, 2025
@sergiuwaxmann
Copy link
Member

@gin721 You should be able to resume training now.
This issue occurs when you're training in an unstable environment. I suggest using a different environment to avoid this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working HUB Ultralytics HUB issues info needed More information is required to proceed
Projects
None yet
Development

No branches or pull requests

3 participants