Code Monkey home page Code Monkey logo

hub's Introduction

YOLO Vision banner

中文 | 한국어 | 日本語 | Русский | Deutsch | Français | Español | Português | हिन्दी | العربية

Ultralytics CI Ultralytics Code Coverage YOLOv8 Citation Docker Pulls Discord
Run on Gradient Open In Colab Open In Kaggle

Ultralytics YOLOv8 is a cutting-edge, state-of-the-art (SOTA) model that builds upon the success of previous YOLO versions and introduces new features and improvements to further boost performance and flexibility. YOLOv8 is designed to be fast, accurate, and easy to use, making it an excellent choice for a wide range of object detection and tracking, instance segmentation, image classification and pose estimation tasks.

We hope that the resources here will help you get the most out of YOLOv8. Please browse the YOLOv8 Docs for details, raise an issue on GitHub for support, and join our Discord community for questions and discussions!

To request an Enterprise License please complete the form at Ultralytics Licensing.

YOLOv8 performance plots

Ultralytics GitHub space Ultralytics LinkedIn space Ultralytics Twitter space Ultralytics YouTube space Ultralytics TikTok space Ultralytics Instagram space Ultralytics Discord

Documentation

See below for a quickstart installation and usage example, and see the YOLOv8 Docs for full documentation on training, validation, prediction and deployment.

Install

Pip install the ultralytics package including all requirements in a Python>=3.8 environment with PyTorch>=1.8.

PyPI version Downloads

pip install ultralytics

For alternative installation methods including Conda, Docker, and Git, please refer to the Quickstart Guide.

Usage

CLI

YOLOv8 may be used directly in the Command Line Interface (CLI) with a yolo command:

yolo predict model=yolov8n.pt source='https://ultralytics.com/images/bus.jpg'

yolo can be used for a variety of tasks and modes and accepts additional arguments, i.e. imgsz=640. See the YOLOv8 CLI Docs for examples.

Python

YOLOv8 may also be used directly in a Python environment, and accepts the same arguments as in the CLI example above:

from ultralytics import YOLO

# Load a model
model = YOLO("yolov8n.yaml")  # build a new model from scratch
model = YOLO("yolov8n.pt")  # load a pretrained model (recommended for training)

# Use the model
model.train(data="coco8.yaml", epochs=3)  # train the model
metrics = model.val()  # evaluate model performance on the validation set
results = model("https://ultralytics.com/images/bus.jpg")  # predict on an image
path = model.export(format="onnx")  # export the model to ONNX format

See YOLOv8 Python Docs for more examples.

Notebooks

Ultralytics provides interactive notebooks for YOLOv8, covering training, validation, tracking, and more. Each notebook is paired with a YouTube tutorial, making it easy to learn and implement advanced YOLOv8 features.

Docs Notebook YouTube
YOLOv8 Train, Val, Predict and Export Modes Open In Colab Ultralytics Youtube Video
Ultralytics HUB QuickStart Open In Colab Ultralytics Youtube Video
YOLOv8 Multi-Object Tracking in Videos Open In Colab Ultralytics Youtube Video
YOLOv8 Object Counting in Videos Open In Colab Ultralytics Youtube Video
YOLOv8 Heatmaps in Videos Open In Colab Ultralytics Youtube Video
Ultralytics Datasets Explorer with SQL and OpenAI Integration 🚀 New Open In Colab Ultralytics Youtube Video

Models

YOLOv8 Detect, Segment and Pose models pretrained on the COCO dataset are available here, as well as YOLOv8 Classify models pretrained on the ImageNet dataset. Track mode is available for all Detect, Segment and Pose models.

Ultralytics YOLO supported tasks

All Models download automatically from the latest Ultralytics release on first use.

Detection (COCO)

See Detection Docs for usage examples with these models trained on COCO, which include 80 pre-trained classes.

Model size
(pixels)
mAPval
50-95
Speed
CPU ONNX
(ms)
Speed
A100 TensorRT
(ms)
params
(M)
FLOPs
(B)
YOLOv8n 640 37.3 80.4 0.99 3.2 8.7
YOLOv8s 640 44.9 128.4 1.20 11.2 28.6
YOLOv8m 640 50.2 234.7 1.83 25.9 78.9
YOLOv8l 640 52.9 375.2 2.39 43.7 165.2
YOLOv8x 640 53.9 479.1 3.53 68.2 257.8
  • mAPval values are for single-model single-scale on COCO val2017 dataset.
    Reproduce by yolo val detect data=coco.yaml device=0
  • Speed averaged over COCO val images using an Amazon EC2 P4d instance.
    Reproduce by yolo val detect data=coco.yaml batch=1 device=0|cpu
Detection (Open Image V7)

See Detection Docs for usage examples with these models trained on Open Image V7, which include 600 pre-trained classes.

Model size
(pixels)
mAPval
50-95
Speed
CPU ONNX
(ms)
Speed
A100 TensorRT
(ms)
params
(M)
FLOPs
(B)
YOLOv8n 640 18.4 142.4 1.21 3.5 10.5
YOLOv8s 640 27.7 183.1 1.40 11.4 29.7
YOLOv8m 640 33.6 408.5 2.26 26.2 80.6
YOLOv8l 640 34.9 596.9 2.43 44.1 167.4
YOLOv8x 640 36.3 860.6 3.56 68.7 260.6
  • mAPval values are for single-model single-scale on Open Image V7 dataset.
    Reproduce by yolo val detect data=open-images-v7.yaml device=0
  • Speed averaged over Open Image V7 val images using an Amazon EC2 P4d instance.
    Reproduce by yolo val detect data=open-images-v7.yaml batch=1 device=0|cpu
Segmentation (COCO)

See Segmentation Docs for usage examples with these models trained on COCO-Seg, which include 80 pre-trained classes.

Model size
(pixels)
mAPbox
50-95
mAPmask
50-95
Speed
CPU ONNX
(ms)
Speed
A100 TensorRT
(ms)
params
(M)
FLOPs
(B)
YOLOv8n-seg 640 36.7 30.5 96.1 1.21 3.4 12.6
YOLOv8s-seg 640 44.6 36.8 155.7 1.47 11.8 42.6
YOLOv8m-seg 640 49.9 40.8 317.0 2.18 27.3 110.2
YOLOv8l-seg 640 52.3 42.6 572.4 2.79 46.0 220.5
YOLOv8x-seg 640 53.4 43.4 712.1 4.02 71.8 344.1
  • mAPval values are for single-model single-scale on COCO val2017 dataset.
    Reproduce by yolo val segment data=coco-seg.yaml device=0
  • Speed averaged over COCO val images using an Amazon EC2 P4d instance.
    Reproduce by yolo val segment data=coco-seg.yaml batch=1 device=0|cpu
Pose (COCO)

See Pose Docs for usage examples with these models trained on COCO-Pose, which include 1 pre-trained class, person.

Model size
(pixels)
mAPpose
50-95
mAPpose
50
Speed
CPU ONNX
(ms)
Speed
A100 TensorRT
(ms)
params
(M)
FLOPs
(B)
YOLOv8n-pose 640 50.4 80.1 131.8 1.18 3.3 9.2
YOLOv8s-pose 640 60.0 86.2 233.2 1.42 11.6 30.2
YOLOv8m-pose 640 65.0 88.8 456.3 2.00 26.4 81.0
YOLOv8l-pose 640 67.6 90.0 784.5 2.59 44.4 168.6
YOLOv8x-pose 640 69.2 90.2 1607.1 3.73 69.4 263.2
YOLOv8x-pose-p6 1280 71.6 91.2 4088.7 10.04 99.1 1066.4
  • mAPval values are for single-model single-scale on COCO Keypoints val2017 dataset.
    Reproduce by yolo val pose data=coco-pose.yaml device=0
  • Speed averaged over COCO val images using an Amazon EC2 P4d instance.
    Reproduce by yolo val pose data=coco-pose.yaml batch=1 device=0|cpu
OBB (DOTAv1)

See OBB Docs for usage examples with these models trained on DOTAv1, which include 15 pre-trained classes.

Model size
(pixels)
mAPtest
50
Speed
CPU ONNX
(ms)
Speed
A100 TensorRT
(ms)
params
(M)
FLOPs
(B)
YOLOv8n-obb 1024 78.0 204.77 3.57 3.1 23.3
YOLOv8s-obb 1024 79.5 424.88 4.07 11.4 76.3
YOLOv8m-obb 1024 80.5 763.48 7.61 26.4 208.6
YOLOv8l-obb 1024 80.7 1278.42 11.83 44.5 433.8
YOLOv8x-obb 1024 81.36 1759.10 13.23 69.5 676.7
  • mAPtest values are for single-model multiscale on DOTAv1 dataset.
    Reproduce by yolo val obb data=DOTAv1.yaml device=0 split=test and submit merged results to DOTA evaluation.
  • Speed averaged over DOTAv1 val images using an Amazon EC2 P4d instance.
    Reproduce by yolo val obb data=DOTAv1.yaml batch=1 device=0|cpu
Classification (ImageNet)

See Classification Docs for usage examples with these models trained on ImageNet, which include 1000 pretrained classes.

Model size
(pixels)
acc
top1
acc
top5
Speed
CPU ONNX
(ms)
Speed
A100 TensorRT
(ms)
params
(M)
FLOPs
(B) at 640
YOLOv8n-cls 224 69.0 88.3 12.9 0.31 2.7 4.3
YOLOv8s-cls 224 73.8 91.7 23.4 0.35 6.4 13.5
YOLOv8m-cls 224 76.8 93.5 85.4 0.62 17.0 42.7
YOLOv8l-cls 224 76.8 93.5 163.0 0.87 37.5 99.7
YOLOv8x-cls 224 79.0 94.6 232.0 1.01 57.4 154.8
  • acc values are model accuracies on the ImageNet dataset validation set.
    Reproduce by yolo val classify data=path/to/ImageNet device=0
  • Speed averaged over ImageNet val images using an Amazon EC2 P4d instance.
    Reproduce by yolo val classify data=path/to/ImageNet batch=1 device=0|cpu

Integrations

Our key integrations with leading AI platforms extend the functionality of Ultralytics' offerings, enhancing tasks like dataset labeling, training, visualization, and model management. Discover how Ultralytics, in collaboration with Roboflow, ClearML, Comet, Neural Magic and OpenVINO, can optimize your AI workflow.


Ultralytics active learning integrations

Roboflow ClearML ⭐ NEW Comet ⭐ NEW Neural Magic ⭐ NEW
Label and export your custom datasets directly to YOLOv8 for training with Roboflow Automatically track, visualize and even remotely train YOLOv8 using ClearML (open-source!) Free forever, Comet lets you save YOLOv8 models, resume training, and interactively visualize and debug predictions Run YOLOv8 inference up to 6x faster with Neural Magic DeepSparse

Ultralytics HUB

Experience seamless AI with Ultralytics HUB ⭐, the all-in-one solution for data visualization, YOLOv5 and YOLOv8 🚀 model training and deployment, without any coding. Transform images into actionable insights and bring your AI visions to life with ease using our cutting-edge platform and user-friendly Ultralytics App. Start your journey for Free now!

Ultralytics HUB preview image

Contribute

We love your input! YOLOv5 and YOLOv8 would not be possible without help from our community. Please see our Contributing Guide to get started, and fill out our Survey to send us feedback on your experience. Thank you 🙏 to all our contributors!

Ultralytics open-source contributors

License

Ultralytics offers two licensing options to accommodate diverse use cases:

  • AGPL-3.0 License: This OSI-approved open-source license is ideal for students and enthusiasts, promoting open collaboration and knowledge sharing. See the LICENSE file for more details.
  • Enterprise License: Designed for commercial use, this license permits seamless integration of Ultralytics software and AI models into commercial goods and services, bypassing the open-source requirements of AGPL-3.0. If your scenario involves embedding our solutions into a commercial offering, reach out through Ultralytics Licensing.

Contact

For Ultralytics bug reports and feature requests please visit GitHub Issues, and join our Discord community for questions and discussions!


Ultralytics GitHub space Ultralytics LinkedIn space Ultralytics Twitter space Ultralytics YouTube space Ultralytics TikTok space Ultralytics Instagram space Ultralytics Discord

hub's People

Contributors

dependabot[bot] avatar glenn-jocher avatar kalenmike avatar pderrenger avatar pre-commit-ci[bot] avatar sergiuwaxmann avatar ultralyticsassistant avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hub's Issues

HUB- local agent: CUDA not detected

Search before asking

Question

Hello,

When using the HUB local agent (on Windows)- how can I get it to utilise the graphics card ?
I get an error 'CUDA not detected' message
image

  • I have tried COLAB (I have a Pro subscription)- but as is my usual experience with COLAB- it gets 90% finished, then disconnects, and won't let me back on with a GPU- very annoying....!
  • I do also have a Linux/RTX3060 machine which I can try, when it has finished on another job

thank you

Andrew

Additional

No response

Upload dataset

Search before asking

Question

Dataset upload shows error. but what error not clear. make dataset as per coco6 example. coco6 is uploading correct but , other could not be upload.

Additional

No response

Not all models are available for training

Search before asking

  • I have searched the HUB issues and found no similar feature requests.

Description

I can't train the models: YOLOv5n6, YOLOv5s6, YOLOv5m6, YOLOv5l6, YOLOv5x6
image

Use case

No response

Additional

No response

Model won’t complete download on app

Search before asking

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

HUB Component

Models, Export

Bug

I have the Ultralytics app downloaded on an iOS device running iOS 15.1. The app works great when running the Ultralytics demo models. But when I try to download my own trained model the model seems to stall out repeatedly when 3/4 of the way complete and eventually a red exclamation point appears. I have checked the available memory on my device and should have plenty available.
AD91DAD9-D650-4D3A-823E-CA8ED39EBCDB

Environment

-mobile device iPhone XR RUNNING iOS 15.1

Minimal Reproducible Example

Download Ultralytics app from AppStore sign into my Ultralytics hub account and download custom model. This is where I eventually stall out.

Additional

Keep up the awesome work!

Do datasets have a size limit?

Search before asking

Question

Sorry for another question but I am not sure what the limit is on the dataset size ? I have a dataset of around 14GB and I uploaded it but the interface shows "Processing ... " for more than 4 h . Is that normal ? Can I actually train such a dataset ? with 100k images ? Image size I am seeking to train is 640 px. Please let me know or please point me in the right direction where the limits are set.

Additional

No response

Pixel 3i

Search before asking

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

HUB Component

Datasets

Bug

Does not load downloaded data sets and does not start recognition

Environment

No response

Minimal Reproducible Example

No response

Additional

No response

Product Roadmap Feature List

Hi All,

We are always looking to improve the Ultralytics HUB and to provide features that are most useful to our users. 🚀

In Progress

  • Ultralytics Cloud training with GPU (K80, P4, T4, P100, V100, A100)
  • Plan upgrades to meet your requirements
  • Custom Dataset Validation. We are working to improve the validation of your custom datasets to prevent simple errors.
  • UI/UX Updates.

Coming Soon

  • Marketplace. A one stop shop to datasets and models created by other users, or share your creations with the world.
  • Teams. Collaborate within your team by sharing projects, models and datasets privately.
  • Public Previews. Share your model publicly with limited access so your friends can see what you have created.
  • Resume Training. If your training stops midway resume from the last checkpoint to prevent lost time.
  • Concat Datasets. Combine datasets or create a custom one by selecting only the classes you need from existing datasets.

Can't get step 2 on Colab to work. Needs more than API key?

Search before asking

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

HUB Component

Training, API Key

Bug

Must the model name also be included in step 2 in the Google Colab? With API key inserted, it produces error, saying "Name is not defined."

Environment

Computer: PC, i7 with 16 Gig RAM, SSD
Ubuntu 20.04
Firefox browser, updated.

Minimal Reproducible Example

Started new model, selected format, selected dataset, went to Colab to train.

Additional

Ultralytics HUB Version
v0.1.14-beta.12
Client User Agent
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0
Operating System
Linux x86_64
Browser Window Size
1271 x 968
Server Timestamp
1658112208

No Storage Available

Search before asking

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

HUB Component

Datasets

Bug

When uploading a dataset, upload fails with the error "No Storage Available".

This happens even after deleting all my datasets and all models save one then trying to re-upload a dataset that previously worked.

Additionally my dashboard shows 177.3 GB / 100.0 GB for Storage Used. I currently have zero datasets uploaded and a single model that lists its size as 146 MB.

ultralytics-dashboard

Environment

Linux (Arch)
Brave

Minimal Reproducible Example

  1. Login to my Hub account
  2. Try to upload a dataset
  3. Get incorrect storage used numbers and an error message mentioning "No Storage"

Additional

No response

Feature Roadmap May 2022

Search before asking

  • I have searched the HUB issues and found no similar feature requests.

Description

  • Hard drive space check before dataset download
  • Exponential standoff in final checkpoint upload fails with time cutoff, i.e. 60 min.
  • HUB training CI for ultralytics staged changes and for official package
  • Re-submit metrics on next metrics sync (TODO: requires payload/backend changes)

Use case

No response

Additional

No response

Can't Login in Android App Ultralytics

Search before asking

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

HUB Component

No response

Bug

I can't log in my acc in gmail and also github acc. My log in details are correct, I'm sure. Can you help me please?

280092802_1070239823604009_693940214641229170_n

Environment

No response

Minimal Reproducible Example

No response

Additional

No response

How to raise an Ultralytics HUB Issue

Ultralytics HUB Issues

Hello from the Ultralytics Team! We've been working hard to launch Ultralytics HUB, a new web tool for training and deploying YOLOv5 🚀 models.

If you are a new Ultralytics HUB user and have questions or comments for Ultralytics, you are in the right place! Please click the New Issue button in the Issues tab and let us know what we can do to improve your experience on Ultralytics HUB 😃!

Mobile app sign in freezes

Search before asking

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

HUB Component

Signin

Bug

Tried to create a user thought the app ([email protected]). No error messages just did not progress. Managed to use the Google button to sign in with my g-account.

Environment

Android on Samsung s21+

Minimal Reproducible Example

Install the app
Select create account

Additional

No response

How to raise an Ultralytics HUB Issue

Search before asking

Question

Hello from the Ultralytics Team! We've been working hard to launch Ultralytics HUB, a new web tool for training and deploying YOLOv5 🚀 models.

If you are a new Ultralytics HUB user and have questions or comments for Ultralytics, you are in the right place! Please click the New Issue button in the Issues tab in this ultralytics/hub repo and let us know what we can do to improve your experience on Ultralytics HUB 😃!

Additional

No response

How to raise an Issue about Ultralytics HUB

Search before asking

Question

If you are a new Ultralytics HUB user and have questions or comments for Ultralytics, you are in the right place! Please click the New Issue button in the Issues tab and let us know what we can do to improve your experience on Ultralytics HUB 😃!

Additional

No response

Dataset processing

Search before asking

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

HUB Component

Datasets

Bug

Processing times are over 48 hours to upload relatively small datasets <500 images. Datasets have been downloaded straight from Roboflow using the YOLOv5 PyTorch option. I have had to manually change the .YAML file name to match the dataset and zipped file name. While trying to trouble shoot the issue I noticed that the downloaded file from Roboflow has a different file structure than the COCO6 dataset used as an example of what our dataset should look like. I understand that Ultralytics has no control over how the Roboflow datasets are configured....

Correcting the file structure would take manual file dragging and dropping while requiring edits to the .YAML file. If this is what is required I will just have to suck it up.. Perhaps I am missing something right in front of my face at the same time...

Environment

Ultralytics HUB Version
v0.1.10-beta.2
Client User Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15
Operating System
MacIntel
Browser Window Size
1850 x 878
Server Timestamp
1641964834

Minimal Reproducible Example

No response

Additional

No response

Unable to Edit Model Training Parameters

Search before asking

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

HUB Component

Models, Training

Bug

I'm not able to edit training parameters here. When I click the edit icon the fields become editable, but then when I click the cursor in the edit field the field disappears and is replaced with the text value.

Screen Shot 2022-01-11 at 2 01 21 PM

Environment

Ultralytics HUB Version
v0.1.10-beta.2
Client User Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36
Operating System
MacIntel
Browser Window Size
1311 x 705
Server Timestamp
1641945930

Minimal Reproducible Example

No response

Additional

First reported in #9

Timeframe for TensorRT export from HUB ??

Search before asking

Question

Hi,

The TensorRT export from HUB currently says' coming soon'
I was wondering what the timeframe for this is ?
Also, I'm assuming it will export a .engine file ?
image

thanks

Andrew

Additional

No response

Problems using custom model with Pytorch

Search before asking

Question

Hello,
I trained a model via Ultralytics Hub and a custom dataset that I uploaded. I am now looking to utilize the model via Pytorch or Tensorflow to predict images. I exported the model via Pytorch and Tensorflow saved model but I can't make it work. I tried the functions torch.load("path") but I keep obtaining the same error which is : ModuleNotFoundError: No module named 'models'.

Can you help me ?

Thanks for reading me,
Adam.

Additional

No response

The hub does not work for Russian users.

Search before asking

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

HUB Component

Signin, Datasets

Bug

It is impossible to download dataset and also to log in or register to the account from the Russian IP address.

Environment

  • Windows 11
  • Chrome 100.0.4896.127

Minimal Reproducible Example

  1. Login to hub #use russian ip

Additional

No response

Dataset upload fails with large number of images

Search before asking

Question

Hello,

I am having a problem uploading a dataset:

  • I've followed the instructions, and I'm pretty certain I've got the folder structure and naming correct, because a test set with 20 images/1 class works fine.
  • However, exactly the same data structure, YAML file etc but with 4000 images/4 classes fails- with a 'processing error'
    i.e in the first screenshot below constructaiv6 & constructaiv7 are identical, except for the number of images and labels
  • The same dataset works fine with a local yolov5 (Docker)
  • I've been through the file naming, counts etc, class IDs etc and I can't see anything wrong

I'm loving yolov5 and finding it very easy to use- but would like to try the hub option.
(A separate question- but I was wondering if there was any way to use a locally trained model on the phone app ?)

I'd be very grateful for any help with this

image
image
image

Andrew

Additional

No response

Connect Google Colab JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Search before asking

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

HUB Component

Models

Bug

First Step: I have create colab and run:

%pip install ultralytics  # install
import ultralytics
ultralytics.checks()  # checks

-> Success

Second step:

ultralytics.start('XXXXXX')  # my API key

-> Get error

[/usr/local/lib/python3.7/dist-packages/ultralytics/__init__.py](https://localhost:8080/#) in start(key)
     59     # key = 'ac0ab020186aeb50cc4c2a5272de17f58bbd2c0.RqFCDNBxgU4mOLmaBrcd'  # example
     60     # api_key='ac0ab020186aeb50cc4c2a5272de17f58bbd2c0', model_key='RqFCDNBxgU4mOLmaBrcd'  # example
---> 61     train_model(api_key=api_key, model_key=model_key)

[/usr/local/lib/python3.7/dist-packages/ultralytics/main.py](https://localhost:8080/#) in train_model(api_key, model_key)
     15     # connect_to_hub(api_key=api_key)  # deprecated
     16     AUTH.api_key = api_key
---> 17     trainer = Trainer(model_id=model_key, auth=AUTH)  # No model so next in train queue is fetched
     18     if trainer.model is not None:
     19         trainer.start()

[/usr/local/lib/python3.7/dist-packages/ultralytics/trainer.py](https://localhost:8080/#) in __init__(self, model_id, auth)
     12     def __init__(self, model_id, auth):
     13         self.auth = auth
---> 14         self.model = self._get_model(model_id)
     15         if self.model is not None:
     16             self._connect_callbacks()

[/usr/local/lib/python3.7/dist-packages/ultralytics/trainer.py](https://localhost:8080/#) in _get_model(self, model_id)
     33         try:
     34             r = requests.post(api_url, json=payload)
---> 35             res = r.json()
     36 
     37             if res["data"] is None:

[/usr/local/lib/python3.7/dist-packages/requests/models.py](https://localhost:8080/#) in json(self, **kwargs)
    896                     # used.
    897                     pass
--> 898         return complexjson.loads(self.text, **kwargs)
    899 
    900     @property

[/usr/lib/python3.7/json/__init__.py](https://localhost:8080/#) in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
    346             parse_int is None and parse_float is None and
    347             parse_constant is None and object_pairs_hook is None and not kw):
--> 348         return _default_decoder.decode(s)
    349     if cls is None:
    350         cls = JSONDecoder

[/usr/lib/python3.7/json/decoder.py](https://localhost:8080/#) in decode(self, s, _w)
    335 
    336         """
--> 337         obj, end = self.raw_decode(s, idx=_w(s, 0).end())
    338         end = _w(s, end).end()
    339         if end != len(s):

[/usr/lib/python3.7/json/decoder.py](https://localhost:8080/#) in raw_decode(self, s, idx)
    353             obj, end = self.scan_once(s, idx)
    354         except StopIteration as err:
--> 355             raise JSONDecodeError("Expecting value", s, err.value) from None
    356         return obj, end

JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Environment

Ultralytics HUB Version
v0.1.14-beta.1
Client User Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36
Operating System
Win32
Browser Window Size
1920 x 969
Server Timestamp
1653926780

Minimal Reproducible Example

No response

Additional

No response

Dataset Processing failed

Search before asking

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

HUB Component

Datasets

Bug

I am working on a new dataset and tried to upload it to the HUB. The dataset seemed to upload just fine and quickly reached the processing stage. Shortly after beginning the processing stage the progress bar turned red and failed with the text "processing error" appearing below. I'm trying to determine if there is something wrong with my dataset(very possible as I'm new to this) or if the processing error is on the HUB's end. Any guidance would be greatly appreciated! I have attached the screenshot as well as my zipped dataset file below.
Image 7-8-22 at 9 51 PM
07.zip
.

Environment

-Computer: Mac Mini Late 2014. Processor: 2.6 GHz Dual-Core Intel Core i5. Memory: 8GB 1600 MHz DDR3. MacOS: Big Sur. Graphics: Intel Iris 1536 MB

Minimal Reproducible Example

Uploaded new dataset, let it reach 100%, Processing begins and shortly fails.

Additional

Keep up the AWESOME work and tools! This technology is helping so many people with various tasks and makes machine learning to the average Joe.

Dataset upload yaml file missing

Search before asking

Question

I am new to the Ultralytics HUB. I thought I give it a try and I uploaded a custom dataset after creating a project etc. The upload finished (big dataset around 14 GB), then I had the "processing " phase for a few minutes then it failed saying that it didn't find the yaml file for my dataset. That's is right because I didn't upload. My dataset comes in the format required by the colab example. I didn't know up front that the yaml has to be included and now that I know that I have no idea where to add it?

Can you please clarify at what stage or where to upload the yaml file. I'll try again once that is clear because the upload take quite a while like 2h .Apart from that this looks awesome I can hardly wait to see if I can train a model.

Additional

No response

Slow Inference on XIAOMI 11T Pro

Search before asking

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

HUB Component

No response

Bug

Hello, we purchased a XIAOMI 11T pro in order to replicate the tests that you have perfomrmed and for which you sent a video https://user-images.githubusercontent.com/26566365/165805393-5e632cb1-7bbb-4b7e-8489-cfcef6341a1e.mp4

However on our XIAOMI 11T pro we get slower inferences and no indication on inference time:
https://drive.google.com/file/d/1-4GuUWYiGMX5ztwgE6G-0QMEz-xn7ecL/view?usp=sharing

what could it be due to?

The phone is the same and the app is from the play store.

Note that on a Pixel 3i and another Pixel 4x we do get to see the inference time

Thaks

Environment

XIAOMI 11T pro

Minimal Reproducible Example

See video

Additional

None

Filter Datasets by Class

Search before asking

  • I have searched the HUB issues and found no similar feature requests.

Description

It would be great to be able to filter the classes shown in the dataset preview. At the moment there is a lot of scrolling involved to get to even the second class. I would like to be able to toggle classes on and off so that I can look at specific images and identify problems.

Use case

No response

Additional

No response

How should I format my custom dataset?

Search before asking

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

HUB Component

No response

Bug

Every time I upload my dataset i get an error says Zip Formatted Incorrectly
I tried to modify my zip file and the same I even tried to download some random dataset from roboflow and upload it and still same problem

Environment

Browser Chorme last version windows 10

Minimal Reproducible Example

Zip Formatted Incorrectly

Additional

No response

Object Counter

Search before asking

  • I have searched the HUB issues and found no similar feature requests.

Description

Hi,
I would like to use Ultralytics app as real time traffic counter. - I would like to count how many different objects (cars, bicycles, pedestrians,...) cross the street.

Use case

This feature should be potentionally use for urban development and smart cities. I would like to measure where is efficient to built a bicycle lanes, other infrastructure etc. - based on the counter.

Additional

No response

How to Use

Search before asking

Question

Hi is there a detailed guide on how to use this program for beginners? I am trying to annotate a dataset, train a custom model, and have yolo identify and count objects in a set of photos

Additional

No response

Dataset Guidelines

Ultralytics HUB datasets are just like YOLOv5 🚀 datasets, they use the same structure and the same label formats to keep everything simple.

1. Upload a Dataset

When you upload a dataset to Ultralytics HUB, make sure to place your dataset YAML inside the dataset root directory as in the example shown below, and then zip for upload to https://hub.ultralytics.com/. Your dataset YAML, directory and zip should all share the same name. For example, if your dataset is called 'coco6' as in our example ultralytics/hub/coco6.zip, then you should have a coco6.yaml inside your coco6/ directory, which should zip to create coco6.zip for upload:

zip -r coco6.zip coco6

The example coco6.zip dataset in this repository can be downloaded and unzipped to see exactly how to structure your custom dataset.

The dataset YAML is the same standard YOLOv5 YAML format. See the YOLOv5 Train Custom Data tutorial for full details.

# Train/val/test sets as 1) dir: path/to/imgs, 2) file: path/to/imgs.txt, or 3) list: [path/to/imgs1, path/to/imgs2, ..]
path:  # dataset root dir (leave empty for HUB)
train: images/train  # train images (relative to 'path') 8 images
val: images/val  # val images (relative to 'path') 8 images
test:  # test images (optional)

# Classes
names:
  0: person
  1: bicycle
  2: car
  3: motorcycle
  ...

After zipping your dataset, sign in to Ultralytics HUB and click the Datasets tab. Click 'Upload Dataset' to upload, scan and visualize your new dataset before training new YOLOv5 models on it!

HUB Dataset Upload

Model upload

Search before asking

Question

can I upload my already trained model to your service?

Additional

didn't see how to do it

Training Models to Show More Information

Search before asking

  • I have searched the HUB issues and found no similar feature requests.

Description

When a model is in training it would be helpful to see how many epochs are completed versus the total. It would also be awesome to see an estimated time to completion and perhaps a total train time to date. It would be great to preview the model as it is in the last uploaded epoch.

  • See current epoch
  • See estimated training completion time
  • Preview models currently in training

Use case

No response

Additional

No response

Automatically cache dataset

Search before asking

  • I have searched the HUB issues and found no similar feature requests.

Description

I have found myself training a model in Google Colab without any caching strategy enabled. The model trains quite slow, and I have also found myself with about 20GB of free disk space and 9GB of free RAM. From my point of view, making an automatic choice for caching when available would be quite useful instead of keeping the default off

Use case

This feature would be used by people that want to train their models faster

Additional

No response

Datasets Processing Error

Search before asking

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

HUB Component

Datasets

Bug

@ultralytics HUB Recently,I have uploaded my custom dataset completely.But it can't be unzipped and is shown failed,processing error.I wanna to konw what leads to fail.Meanwhile,I tried to prepare my custom datasets correctly.But the result is still failed.

Snipaste_2022-05-18_01-49-45

Environment

Environment
Ultralytics HUB Version
v0.1.14-beta.1
Client User Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36
Operating System
Win32
Browser Window Size
1536 x 746
Server Timestamp
1652809519

Minimal Reproducible Example

No response

Additional

No response

EdgeTpu Export model inference

Search before asking

Question

How can we use Exported edgetpu model for inference. In windows 10 with google coral usb accelerator.

Additional

No response

Minor GUI comments on HUB

Search before asking

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

HUB Component

No response

Bug

Minor comments on HUB GUI (not really a bug)

  1. 'Sign Up' button should possibly say 'Sign In' i.e. if you've already got an account
    image

  2. In the models page- the 'Device' and 'Cache' items don't seem to be correct- I'm certain I used GPU and RAM cache (with a local agent). Without an overload of info, it might be useful to display which method was used (COLAB. local agent etc & how long training took) I haven't used WandB with the agent- but perhaps a link to this ?image

Andrew

Environment

No response

Minimal Reproducible Example

No response

Additional

No response

Linear Regression Head

Search before asking

  • I have searched the HUB issues and found no similar feature requests.

Description

Easy to make linear regression head and object detection head. A way to find an object in a picture and give you a linear regression model about the characteristics of that model.

Use case

If you want to find a rose and how many days until it is fully bloomed would be a great example.

Additional

No response

Can I upload existing models to Ultralytics Hub?

Search before asking

Question

Hey,

I have already done some training with yolov5s to use it with the tensorflowlite app. I have some models already trained, with their weights (best.pt and respective *.tflite). Is there a way to upload the models I have already trained? They were all trained with the steps of Yolov5 from Git Hub.

Thanks

Additional

No response

Unable to upload dataset

Search before asking

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

HUB Component

Datasets

Bug

After selecting a custom dataset "custom.zip" or the sample one "coco6.zip" included in the tutorial create a dataset, a dialog screen appears with this content: Datasets must be uploaded as a zip or yaml file!

Environment

Ultralytics HUB Version
v0.1.13-beta.2
Client User Agent
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36
Operating System
Win32
Browser Window Size
1366 x 657
Server Timestamp
1649275461

Minimal Reproducible Example

Steps to reproduce the problem:

  1. Sign in to HUB
  2. Click on the Datasets tab.
  3. Click 'Upload Dataset'
  4. Select the file coco6.zip

Additional

No response

Dataset not Processing

Search before asking

Question

i want to train my dataset why is my dataset is processing take time too much

Additional

No response

Upload not working dataset

Search before asking

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

HUB Component

No response

Bug

error: Dataset Error : data.yaml/images/train not found, data.yaml/labels/train not found, data.yaml/images/valid not found, data.yaml/labels/valid not found
i tried to make the data file exactly like in the coco6.yalm
data.yalm :

path:
train: images/train
val: images/valid

nc: 4
names: ['black_measles', 'black_root', 'blight', 'healthy']

one document annotation:
1 0.60703125 0.45 0.03671875 0.034375
1 0.5375 0.490625 0.034375 0.03125
1 0.6875 0.534375 0.04375 0.04765625
1 0.63984375 0.55703125 0.03515625 0.03203125
1 0.4390625 0.559375 0.02890625 0.025
1 0.671875 0.64140625 0.03203125 0.02734375
1 0.6140625 0.6421875 0.03203125 0.03125
1 0.82109375 0.71640625 0.053125 0.05
1 0.44375 0.16640625 0.0421875 0.0359375
1 0.453125 0.275 0.03203125 0.0328125
1 0.43984375 0.359375 0.04296875 0.03515625

I tried to make the zip file with the same name with the yalm file still not working and getting the same error

Environment

No response

Minimal Reproducible Example

No response

Additional

No response

Sign on

Search before asking

Question

I would like biometrics enable to sign in. Thank you.
I use an IPad Pro, Linux Ubuntu, kali, window all.
But I am sick and I am just going to suffer a long incurable tortures life. So the less I have to navigate to get to my distractions from my continuous walk hell of nonstop total body pain the better. Yours suffering and really grumpy.

Additional

Apple facial, android finger print and the recent build has facial recognition.

Converting a custom model to mlmodel is 100% no matter what object it recognizes

Search before asking

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

HUB Component

Inference

Bug

Hi, I found a strange problem. It is normal for the customized models on the Hub to be converted into online test recognition. The models downloaded from the Ultralytics App are 100% recognized, and objects beyond the model can be recognized. The same is true for exporting Ultralytics iOS models. If you have any ideas or answers, please let me know, thank you very much!

this is datasets.
key.zip
)
image
image
image

IMG_1873

Environment

Macbook Pro,Xcode

Minimal Reproducible Example

No response

Additional

No response

Dataset upload is not working with non standard annotations

Search before asking

Question

Hi, I'm trying to upload my dataset on Ultralytics Hub but I keep getting the processing error. Am pretty sure I have already followed all the steps according to coco6.zip but it still doesnt work. My yaml file is written like this:

`path:
train: images/train
val: images/val

nc: 16
names: ['animal_crab', 'animal_eel', 'animal_etc', 'animal_fish', 'animal_shells', 'animal_starfish', 'plant', 'rov', 'trash_etc', 'trash_fabric', 'trash_fishing_gear', 'trash_metal', 'trash_paper', 'trash_plastic', 'trash_rubber', 'trash_wood']`

Additional

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.