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

Can't train on google colab #597

Closed
1 task done
rolurq opened this issue Mar 3, 2024 · 3 comments
Closed
1 task done

Can't train on google colab #597

rolurq opened this issue Mar 3, 2024 · 3 comments
Labels
bug Something isn't working Stale

Comments

@rolurq
Copy link

rolurq commented Mar 3, 2024

Search before asking

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

HUB Component

Models, Training, API Key

Bug

I'm trying to train my model using the hub and colab, but it looks like there's an issue accessing the model in the hub from colab. I followed the instructions but when I try to run the train notebbok cell it throws an error trying to access the model link as a file.

Ultralytics HUB: New authentication successful ✅
---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
[<ipython-input-15-7f533467b2ac>](https://localhost:8080/#) in <cell line: 3>()
      1 hub.login('{hidden}')
      2 
----> 3 model = YOLO('https://hub.ultralytics.com/models/snDdCDprIAAHB9pujWec')
      4 results = model.train()

3 frames
[/usr/local/lib/python3.10/dist-packages/ultralytics/utils/checks.py](https://localhost:8080/#) in check_file(file, suffix, download, hard)
    496         files = glob.glob(str(ROOT / "cfg" / "**" / file), recursive=True)  # find file
    497         if not files and hard:
--> 498             raise FileNotFoundError(f"'{file}' does not exist")
    499         elif len(files) > 1 and hard:
    500             raise FileNotFoundError(f"Multiple files match '{file}', specify exact path: {files}")

FileNotFoundError: 'https:/hub.ultralytics.com/models/snDdCDprIAAHB9pujWec' does not exist

Environment

  • Computer: AMD Ryzen 7 5800X 8-Core Processor
  • Browser: Chrome 122.0.6261.70 (Official Build) (64-bit)

Minimal Reproducible Example

  1. Log in to hub
  2. Train a new model using colab
  3. Copy and paste the code in colab
  4. Run the training

Additional

No response

@rolurq rolurq added the bug Something isn't working label Mar 3, 2024
Copy link

github-actions bot commented Mar 3, 2024

👋 Hello @rolurq, 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 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!

@UltralyticsAssistant
Copy link
Member

@rolurq hello! It looks like you're encountering an issue with accessing a model from the Ultralytics HUB in Google Colab. The error you're seeing suggests that the model URL is being interpreted as a file path, which is not correct.

To resolve this, please ensure that you're using the latest version of the Ultralytics library in your Colab notebook. You might need to update the library to the latest version. Also, double-check the syntax used to load the model from the HUB. It should be correctly formatted according to the instructions in the Ultralytics HUB Docs.

If you've followed these steps and are still facing issues, it could be helpful to restart your Colab runtime and try again. Sometimes, runtime environments can hold onto outdated versions of libraries or encounter glitches that are resolved with a fresh start.

Remember, for detailed guidance on using the HUB with Colab, including code snippets and step-by-step instructions, refer to the Ultralytics HUB Docs. If the problem persists, please provide any additional details or error messages you encounter after trying the above steps, so we can assist you further. 😊

Copy link

github-actions bot commented Apr 4, 2024

👋 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 Apr 4, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 14, 2024
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

2 participants