Train YOLOv10 on Custom Dataset

  Рет қаралды 10,964

Code With Aarohi

Code With Aarohi

Ай бұрын

Learn to perform custom object detection using YOLOv10.
GitHub: github.com/AarohiSingla/YOLOv...
Dataset: Dataset is also present in GitHub repo.
What is introduced in YOLOv10 : • Learn What Is Introduc...
Email: aarohisingla1987@gmail.com
YOLOv10: Real-Time End-to-End Object Detection
Paper: arxiv.org/pdf/2405.14458
YOLOv10, developed by researchers at Tsinghua University introduces a novel approach to real-time object detection. This version addresses deficiencies in both post-processing and model architecture found in earlier YOLO versions. By removing non-maximum suppression (NMS) and optimizing various model components, YOLOv10 achieves state-of-the-art performance with significantly reduced computational overhead. Extensive experiments show its superior accuracy-latency trade-offs across multiple model scales.
#computervision #objectdetection #yolov9 #yolov8 #yolov10

Пікірлер: 87
@abubakarsaleem5167
@abubakarsaleem5167 Ай бұрын
How can we visualize the live training of YOLOv10, similar to how it is done for YOLOv5 using TensorBoard?
@icon_chatt
@icon_chatt 20 күн бұрын
hi can you please tell us from where you got the main pt file because i dont see it on their official site
@TekesteTesfay
@TekesteTesfay Ай бұрын
Thanks, I like your top-down approach from paper to code.
@CodeWithAarohi
@CodeWithAarohi Ай бұрын
Thank you!
@SA-oj3bo
@SA-oj3bo 16 күн бұрын
Is there a solution for sound recognition that you can recommend? Thx. For example how to recognize a particular dog barking when 10 dogs are barking at the same place.
@ferquiresma
@ferquiresma Ай бұрын
Hi, thanks for the excellent demostration!
@CodeWithAarohi
@CodeWithAarohi Ай бұрын
Glad you enjoyed it!
@user-jx2en8mo2b
@user-jx2en8mo2b 25 күн бұрын
Hi. I have encountered an error that persists. I have tried everything like using absolute/relative paths, but the issue persists. Could someone help me with the following error? RuntimeError: Dataset 'data.yaml' error 'data.yaml' does not exist P.S. - I have checked the file format, its contents, and its path, everything seems all right, but the issue persists.
@raaginikalaimani217
@raaginikalaimani217 Ай бұрын
I tried to follow the tutorial but got stuck when i got module not found error, no module named “huggingface_hub” while i tried to predict “!yolo task=detect mode=predict conf=0.25 save=True, any comments on that?
@sandhyamourya8041
@sandhyamourya8041 2 күн бұрын
Maam can you please tell me which yolo version will be best for training hand gestures/sign language detection properly??
@mh-ll
@mh-ll Ай бұрын
Aarohi, this is a great video. Thank you.
@CodeWithAarohi
@CodeWithAarohi Ай бұрын
Thank you!
@user-vb8um5hp9s
@user-vb8um5hp9s Ай бұрын
isn't that a yolov8?
@TomislavLevakovic
@TomislavLevakovic Ай бұрын
Great, as always ! Thank you ! I have one stupid question...Why Ultralytics says it is version ultralytics-8.1.34, i expect v10 will be V10?? Can you explain? Thanks !
@CodeWithAarohi
@CodeWithAarohi Ай бұрын
Because YOLOv10 is built on Ultralytics package. If you will open the official github repo of yolov10, you will see "ultralytics" folder there.
@TomislavLevakovic
@TomislavLevakovic Ай бұрын
@@CodeWithAarohi Thank you for answer, i understand that part. But, official package which you can install with pip, is on 8.2.23 version already. That is what confuses me. What is the difference between all those versions?? For example, why V10 cannot be installed on top of 8.2.23 version? Please, clafiry, beacuse for us, newcomers, it is very confusing all those versions and repos. Thank you !
@faizarehman2943
@faizarehman2943 Ай бұрын
Can you please guide me why other weights of YOLOV10 is not working on colab because small ansd nano are working.
@CodeWithAarohi
@CodeWithAarohi Ай бұрын
Not sure because haven't tried all the weights yet!
@faizarehman2943
@faizarehman2943 Ай бұрын
@@CodeWithAarohi can you please try other weights and guide me to solve my issue.
@rickyS-D76
@rickyS-D76 Ай бұрын
Very nice explanation, thank you! I tried to follow the tutorial but got stuck when i got, "'yolo' is not recognized as an internal or external command, operable program or batch file." while i tried to predict, "!yolo task=detect mode=predict conf=0.25 save=True......".... any comments on that?
@CodeWithAarohi
@CodeWithAarohi Ай бұрын
github.com/ultralytics/ultralytics/issues/6281
@g.s.3389
@g.s.3389 Ай бұрын
where can I find a license plate dataset for Italy? or the one you used works anyway?
@CodeWithAarohi
@CodeWithAarohi Ай бұрын
The one I have used is present in github repo. Link shared in description section.
@g.s.3389
@g.s.3389 Ай бұрын
@@CodeWithAarohi italian plates are different, will it work anyway?
@CodeWithAarohi
@CodeWithAarohi Ай бұрын
@@g.s.3389 if they are different then you need to prepare dataset according to that.
@AxelVinant
@AxelVinant Ай бұрын
Hello, thank you for the video. I'm actually using yolovn for my projects since years (ios and androids apps with live detection). I am currently a bit lost between all the new versions of yolo (v8, v9, v10...). Could you tell me what you think it is the best yolo for training and deploying models on ios and android ? Thank you for all your work !
@CodeWithAarohi
@CodeWithAarohi Ай бұрын
My viewpoint: For mobile deployment, YOLOv8 is currently the best option due to its excellent balance of performance, ease of use, and robust community support. It works well with both TensorFlow Lite for Android and Core ML for iOS, making it suitable for real-time applications on mobile devices.
@AxelVinant
@AxelVinant Ай бұрын
@@CodeWithAarohi Thank you for your answser !
@yeongnamtan
@yeongnamtan Ай бұрын
Thank you for the clear explanation. Can you do one incorporating DeepSort tracking ?
@CodeWithAarohi
@CodeWithAarohi Ай бұрын
Will try!
@jayathissaaral2598
@jayathissaaral2598 Ай бұрын
i have a little problem. why jupyter notebook all text display same color. this issue same as in my computer. do you know a way fix this ?
@nitinrai6093
@nitinrai6093 Ай бұрын
This may be because you may have converted the cell to markdown type, can you confirm if you can execute code on that cell? if not try converting it to code block again by 1. click on the cell > 2. hit esc button > 3. press M > 4. Press Y
@jayathissaaral2598
@jayathissaaral2598 Ай бұрын
​@@nitinrai6093 no bro, in this video arohi selected code cell type. But still same as markdown cell type look
@davidxu8352
@davidxu8352 Ай бұрын
I am getting this error after finishing training the model when I want to predict (inference): i !yolo task=detect mode=predict conf=0.25 save=True model=runs/detect/train/weights/best.pt source=test_images_1/veh2.jpg 32 try: 33 # Issuing `None` to a generator fires it up 34 with ctx_factory(): ---> 35 response = gen.send(None) 37 while True: 38 try: ... --> 216 bs = prediction.shape[0] # batch size 217 nc = nc or (prediction.shape[1] - 4) # number of classes 218 nm = prediction.shape[1] - nc - 4 AttributeError: 'dict' object has no attribute 'shape' Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...
@CodeWithAarohi
@CodeWithAarohi Ай бұрын
add prediction = prediction['one2many'][0] to File "yolov10-main\ultralytics\utils\ops.py", line 216, in non_max_suppression bs = prediction.shape[0] # batch size final code: prediction = prediction['one2many'][0] bs = prediction.shape[0]
@abubakarsaleem5167
@abubakarsaleem5167 Ай бұрын
Hello ma'am, could you please explain that how we get the overall mAP of the test dataset if we tested the best.pt on our test dataset?
@allanjobs3595
@allanjobs3595 Ай бұрын
Hi, I facing some error while I try to run this code in anaconda ! can you please share a video how to create a new env for that using GPU
@CodeWithAarohi
@CodeWithAarohi Ай бұрын
THis is how you can create environment: 1- Download and Install Python 2- Open your terminal (Command Prompt on Windows, Terminal on macOS/Linux). 3- Navigate to the directory where you want to create your project. 4- Then run these commands to create and activate environment: 5- python -m venv venv 6- venv\Scripts\activate
@aiforeveryone
@aiforeveryone Ай бұрын
Amazing👍
@CodeWithAarohi
@CodeWithAarohi Ай бұрын
Thanks!
@adibarnab8644
@adibarnab8644 Ай бұрын
Please make a video tutorial on Google Colab for YoloV10, Ma’am. It’s more convenient for us than Jupyter notebook.
@CodeWithAarohi
@CodeWithAarohi Ай бұрын
Noted!
@siddhant8709
@siddhant8709 22 күн бұрын
Hi, aarohi how can you test the model with Inference on webcam
@CodeWithAarohi
@CodeWithAarohi 22 күн бұрын
OK..Sure!
@abubakarsaleem5167
@abubakarsaleem5167 Ай бұрын
Hello ma'am, could you please explain what 'train/box_om', 'train/cls_om', 'train/dfl_om', 'train/box_oo', 'train/cls_oo', and 'train/dfl_oo' mean in the plot after the YOLOv10 training is completed?
@CodeWithAarohi
@CodeWithAarohi Ай бұрын
om is One-to-Many Head ( Generates multiple predictions per object during training to provide rich supervisory signals and improve learning accuracy) oo is One-to-One Head (Generates a single best prediction per object during inference to eliminate the need for NMS, thereby reducing latency and improving efficiency).
@abubakarsaleem5167
@abubakarsaleem5167 Ай бұрын
@@CodeWithAarohi thanks Maam
@user-lx6uy8pc9b
@user-lx6uy8pc9b Ай бұрын
Amazing video. How to integrate yolov10 with SAM model ?
@CodeWithAarohi
@CodeWithAarohi Ай бұрын
Will make a video
@m.abdullahgamer4494
@m.abdullahgamer4494 Ай бұрын
Can you please guide me how to setup virtual environment for yolov10 in anaconda. I am using jupyter notebook and made environment named yolov10 in anaconda. But yolov10 architecture gives error of yolo command not found.plz guide me
@CodeWithAarohi
@CodeWithAarohi Ай бұрын
conda create -n yolov10 python=3.8 conda activate yolov10 conda install numpy pandas matplotlib conda install -c conda-forge opencv conda install -c conda-forge jupyterlab pip install torch torchvision torchaudio git clone github.com/ultralytics/yolov10.git cd yolov10 pip install -r requirements.txt
@m.abdullahgamer4494
@m.abdullahgamer4494 Ай бұрын
Thank you mam. I will try
@m.abdullahgamer4494
@m.abdullahgamer4494 Ай бұрын
Glad to implement yolov10 from the above advised steps by using environment. However ultralytics link is not working.Instead I clone from repository and it works
@m.abdullahgamer4494
@m.abdullahgamer4494 Ай бұрын
Your practical demonstration is highly appreciate able
@arunmathur1668
@arunmathur1668 22 күн бұрын
Hi Aarohi, Can you please share the script to download the volov10 weight files that you had used in this video
@CodeWithAarohi
@CodeWithAarohi 21 күн бұрын
You can download pretreained weights from here:github.com/THU-MIG/yolov10/releases
@user-uq1qq7pj8h
@user-uq1qq7pj8h Ай бұрын
Hello Madam, Thank you for your continuous support to students like me. I'm curious if you've implemented real-time YOLO image detection using a mobile phone's back camera from a browser before. Specifically, when a user opens the Flask web app and clicks a button, the back camera should automatically open and display live predictions. Currently, I can achieve this with a laptop webcam by setting the source to 0, but it doesn't work on a mobile phone. Do you have any sample projects or resources on how to do this? Your guidance means a lot.
@CodeWithAarohi
@CodeWithAarohi Ай бұрын
You can install IPcamera app on your phone and pass that ip camera address in source. I think this will work.
@user-uq1qq7pj8h
@user-uq1qq7pj8h Ай бұрын
@@CodeWithAarohi I see, alright noted madam. Thanks a lot for your help Madam✨😇
@DrWonderVoll
@DrWonderVoll Ай бұрын
Hi mam, Amazing work by the way. I am new to this object detection concept. I want to create a custom dataset with images of different fruits. How do I make the labels of those images? Thank you :)
@CodeWithAarohi
@CodeWithAarohi Ай бұрын
Collect images of all types of fruits. Then use labelimg tool to label the images in yolo format which is txt format. check this: pypi.org/project/labelImg/
@DrWonderVoll
@DrWonderVoll Ай бұрын
@@CodeWithAarohi Thanks mam :)
@DrWonderVoll
@DrWonderVoll 9 күн бұрын
Hi, mam Great work. I have some questions: 1) When doing the inference on the pre-trained model, can we get the words instead of numbers. For example, "apple" instead of "47" 2) While custom-training the YOLOv10, what file structure should we use for multi-classes? For example, I have images of mushroom and cucumber and how should I keep my train folder format to custom train it? Thanks a lot for your help mam :)
@CodeWithAarohi
@CodeWithAarohi 9 күн бұрын
Hi, 1- You can do use the class names instead of numbers by mapping numbers to class names. 2- Put all the images ( mushroom and cucumber) in a folder together. Then using annotation like labelimg, You can annotate these images. For each image, you will have a separate txt file.
@DrWonderVoll
@DrWonderVoll 6 күн бұрын
@@CodeWithAarohi thanks mam :)
@jhicinternational
@jhicinternational Ай бұрын
very good
@CodeWithAarohi
@CodeWithAarohi Ай бұрын
Thanks
@SidSid-kp4ij
@SidSid-kp4ij 19 күн бұрын
Hi aarohi can you make a video on hyper parameter tuning in yolo10
@CodeWithAarohi
@CodeWithAarohi 18 күн бұрын
Noted!
@sandhyamourya8041
@sandhyamourya8041 2 күн бұрын
Maam can you please tell me which yolo version will be best for training hand gestures/sign language detection properly??
@harshays2873
@harshays2873 Ай бұрын
could you please make a video on yolo world custom dataset training
@CodeWithAarohi
@CodeWithAarohi Ай бұрын
For custom training of such models you need lot of data and variety of data which I don’t have to train custom yolo-world model. So, I can’t help you
@harshays2873
@harshays2873 Ай бұрын
@@CodeWithAarohi if possible could you please explain input data format so that we can try our own, it will be helpful, help us with initial training set up and data preparation.
@CodeWithAarohi
@CodeWithAarohi Ай бұрын
Check this page: docs.ultralytics.com/models/yolo-world/#set-prompts
@harshays2873
@harshays2873 Ай бұрын
@@CodeWithAarohi Thank you
@akhileshsharma5067
@akhileshsharma5067 Ай бұрын
Hello, I am not able to validate on test set, getting the following error: Traceback (most recent call last): File "/usr/local/bin/yolo", line 8, in sys.exit(entrypoint()) File "/usr/local/lib/python3.10/dist-packages/ultralytics/cfg/__init__.py", line 587, in entrypoint getattr(model, mode)(**overrides) # default args from model File "/usr/local/lib/python3.10/dist-packages/ultralytics/engine/model.py", line 518, in val validator(model=self.model) File "/usr/local/lib/python3.10/dist-packages/torch/utils/_contextlib.py", line 115, in decorate_context return func(*args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/ultralytics/engine/validator.py", line 187, in __call__ preds = self.postprocess(preds) File "/usr/local/lib/python3.10/dist-packages/ultralytics/models/yolo/detect/val.py", line 86, in postprocess return ops.non_max_suppression( File "/usr/local/lib/python3.10/dist-packages/ultralytics/utils/ops.py", line 216, in non_max_suppression bs = prediction.shape[0] # batch size AttributeError: 'dict' object has no attribute 'shape'
@CodeWithAarohi
@CodeWithAarohi Ай бұрын
Add prediction = prediction['one2many'][0] to File "yolov10-main\yolov10-main\ultralytics\utils\ops.py", line 216, in non_max_suppression bs = prediction.shape[0] # batch size final code: prediction = prediction['one2many'][0] bs = prediction.shape[0]
@pifordtechnologiespvtltd5698
@pifordtechnologiespvtltd5698 28 күн бұрын
Nice
@CodeWithAarohi
@CodeWithAarohi 27 күн бұрын
Thanks
@joserfjunior8940
@joserfjunior8940 24 күн бұрын
O minha delicia, da para fazer detectar a rua em quanto eu estiver dirigindo ? tipo um tesla copilot ? Otimo video minha delicia parabens !
@jayathissaaral2598
@jayathissaaral2598 Ай бұрын
🥰🥰
@nakulmali1413
@nakulmali1413 Ай бұрын
Hello mam first upon thanks for your all videos. Mam i request you please upload video on custom object classification using yolov8s . Model Training, validation and testing done with puthon script
@CodeWithAarohi
@CodeWithAarohi Ай бұрын
Okay sure
@nakulmali1413
@nakulmali1413 Ай бұрын
Thanks mam
@sandhyamourya8041
@sandhyamourya8041 2 күн бұрын
Maam can you please tell me which yolo version will be best for training hand gestures/sign language detection properly??
YOLOv10: Train a Custom Model and Run Inference on Live Webcam
24:37
Nicolai Nielsen
Рет қаралды 17 М.
LOVE LETTER - POPPY PLAYTIME CHAPTER 3 | GH'S ANIMATION
00:15
ЧУТЬ НЕ УТОНУЛ #shorts
00:27
Паша Осадчий
Рет қаралды 7 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:25
CRAZY GREAPA
Рет қаралды 39 МЛН
Я нашел кто меня пранкует!
00:51
Аришнев
Рет қаралды 5 МЛН
Learn What Is Introduced in YOLOv10  | YOLOv10 Paper Explained
10:28
Code With Aarohi
Рет қаралды 7 М.
Train YOLOv10 on Custom Dataset with Ultralytics
11:12
Nicolai Nielsen
Рет қаралды 1,7 М.
Comparison between YOLOv10, YOLOv9 and YOLOv8 on Real-world Videos
10:35
Nicolai Nielsen
Рет қаралды 3,9 М.
YOLOv10 Object Tracking on Live Webcam Step by Step Tutorial
18:58
Nicolai Nielsen
Рет қаралды 7 М.
Object detection Using Detection Transformer (Detr) on custom dataset
18:21
Generative AI in a Nutshell - how to survive and thrive in the age of AI
17:57
GPT-4o Deep Dive & Hidden Abilities you should know about
28:11
AI Search
Рет қаралды 208 М.
How to Train  YOLOv10 models on Your Custom Dataset
17:48
Tech Watt
Рет қаралды 3,8 М.
I Melted Wood With Friction
8:44
The Action Lab
Рет қаралды 820 М.
Todos os modelos de smartphone
0:20
Spider Slack
Рет қаралды 58 МЛН
iPhone, Galaxy или Pixel? 😎
0:16
serg1us
Рет қаралды 801 М.
iPhone socket cleaning #Fixit
0:30
Tamar DB (mt)
Рет қаралды 15 МЛН
Cheapest gaming phone? 🤭 #miniphone #smartphone #iphone #fy
0:19
Pockify™
Рет қаралды 4,2 МЛН
Копия iPhone с WildBerries
1:00
Wylsacom
Рет қаралды 832 М.
НЕ ПОКУПАЙ СМАРТФОН, ПОКА НЕ УЗНАЕШЬ ЭТО! Не ошибись с выбором…
15:23
Сколько реально стоит ПК Величайшего?
0:37