Good diction, i'm currently learning English, and I find your pronunciation much easier to understand compared to most people, not sure why. Great video!
Hello I have encountered this issue for command at 13:47 Dataset '/content/datasets/Football-1/data.yaml' images not found ⚠, missing path '/content/datasets/Football-1/Football-1/valid/images' Note dataset download directory is '/content/datasets'. You can update this in '/root/.config/Ultralytics/settings.json'
I ran the roboflow Yolov8 snippet and generated me this folder structure: datasets > objcts-to-detect > train > images ... When I ran the !yolo task=detect mode=train... step, it crashed with this error: Dataset not found ⚠, missing paths ['/content/datasets/pkslsp-and-tksrs-1/valid/images'] The roboflow snippet did not generate folder "valid" before "images". How can I fix this?
@@Roboflow Everytime I paste the link right here, it gets deleted. I am going to paste only what is after the roboflow domain, which is: /pc-solutions/pkslsp-and-tksrs/1. Let me know if this helps. 😕
@@ManuelHernandez-zq5em great, thanks! We didn't created that directory, because you don't have any valid and test images in your dataset. 4 images in train and 0 in valid and test. YOLOv8 requires you to have some validation set.
@@Roboflow Hi I'm having the same problem and tucked at Custom Training section, where it shows: Dataset not found ⚠, missing paths ['/content/datasets/PV-Temperature-detection--2/valid/images'] Traceback (most recent call last): File "/usr/local/bin/yolo", line 8, in sys.exit(entrypoint()) File "/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/cli.py", line 148, in entrypoint cli(cfg) File "/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/cli.py", line 84, in cli func(cfg) File "/usr/local/lib/python3.8/dist-packages/hydra/main.py", line 79, in decorated_main return task_function(cfg_passthrough) File "/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/v8/detect/train.py", line 207, in train model.train(**cfg) File "/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/engine/model.py", line 199, in train self.trainer = self.TrainerClass(overrides=overrides) File "/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/engine/trainer.py", line 126, in __init__ self.data = check_dataset_yaml(self.data) File "/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/data/utils.py", line 232, in check_dataset_yaml raise FileNotFoundError('Dataset not found ❌') FileNotFoundError: Dataset not found ❌ I have adjusted and having valid and test images in my Roboflow dataset. The link is "app(dot)roboflow(dot)com/apu-vbwqe/pv-temperature-detection/2" Appreciate if you could help me check
I am getting this error again and again during training Dataset not found ⚠, missing paths ['/content/datasets/football-players-detection-4/valid/images'] Error executing job with overrides: ['task=detect', 'mode=train', 'model=yolov8s.pt', 'data=/content/football-players-detection-4/data.yaml', 'epochs=25', 'imgsz=800'] Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/cli.py", line 56, in cli func(cfg) File "/usr/local/lib/python3.8/dist-packages/hydra/main.py", line 79, in decorated_main return task_function(cfg_passthrough) File "/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/v8/detect/train.py", line 207, in train model.train(**cfg) File "/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/engine/model.py", line 189, in train self.trainer = self.TrainerClass(overrides=overrides) File "/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/engine/trainer.py", line 126, in __init__ self.data = check_dataset_yaml(self.data) File "/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/data/utils.py", line 232, in check_dataset_yaml raise FileNotFoundError('Dataset not found ❌') FileNotFoundError: Dataset not found ❌ Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.
Hey so when I'm running the video, the model is detecting the objects and the count frame by frame. But I'm not able to see the video to see which objects it detect. Can you please help me out?
00:05 Yellow V8 is the latest object detection model that fine tunes much faster than its predecessors 02:29 Yellow V3 and Yellow V5 repositories have almost 45,000 stars on GitHub and will solve previous issues in the Yellow V8 project. 04:58 Importing Yolo from ultralytics and running inference 07:36 Creating a dataset for training the YOLO model using Roboflow 10:16 Use Cinema to label images and create a dataset for training 13:00 The training has been completed and the results are satisfactory. 15:41 Training the models could take longer and yield better results. 18:04 Yellow V8 model can be trained and deployed for inference using a single line of code. 20:16 Comparing yellow V8 to previous object detection models Crafted by Merlin AI.
Hey, for my dataset its taking so much time to train the model and i am running out of GPU limits, earlier i was getting error in training but i added batch size 8 ,now its training the model but taking too much time and GPU. Can u suggest what should i do?
Occured error:FileNotFoundError: Dataset '/home/elin/model_training/yolov8/ClassAction-1/data.yaml' not found ⚠, missing paths ['/home/elin/model_training/datasets/ClassAction-1/valid/images'] I don't know why and i given the attribute data.localtion+'/data.yaml' as data attribute of yolov8 trainer and it raised this
@@Roboflow I am using the same version in notebook which is 0.8.20 i remember is that,i download this notebook file.in my local wsl with no editing (expect API key,project name) And then it raised. Do we have a Discord or something which can share the screen yet,if so i'd really want you guys help me "face by face",that would be my pleasure and it must be key to push me finish my innovate research project currently of my college.
@@ElinLiu0823 we don't have Discord, but you can start a thread here: github.com/roboflow/notebooks/discussions/categories/q-a we will try to help you out ;D
Hi, thank you for the lovely video. Although I am getting this error when I initiate training: FileNotFoundError: Dataset '/content/project_name/data.yaml' not found ⚠, missing paths ['/content/datasets/project_name/valid/images']
This happens to a lot of the files for some reason, it also did it for 'predict3' and required a change to ''predict2'. I'm not sure whether this is intentional or not : |
@@Roboflow For me this occurred because the 'train' file (/runs/detect/train/weights/best.pt) was displaced for some reason. All the weights had saved to 'train3'rather than the preestablished location within the given code. Try and find where the files are saving and change the file destinations (i.e., from /runs/detect/train/weights/best.pt to /runs/detect/train3/weights/best.pt).
hello sir after detection there is no predict directory where my video and test images are stored... detection on video perform and completed successfully but predict directory is not
Hi it is Peter from video. I just pushed slightly updated version of our notebook. I think you should not experience that problem now. Could you take a look?
hello, i have some problems on confusion matrix part where the font size that shows number in that confusion matrix is too small and quite hard to read. is there any way that i can make the font size on that confusion matrix bigger? is there any modification on the code?
Hey, in the video at 11:26, u said that u have posted the links in the description but i couldn't find that link. Can u please check for that link? It will be very helpful for me.
Hello! Quick question, when trying to deploy the model, I'm getting the message "an error occured when getting the model upload URL: This version has a trained model. Please generate and train a new version in order to upload model to Roboflow." How can I fix this?
Hi, it is Peter from the video. 👋For now, we only allow one model version to be tied with one version of the dataset. Looks like you already have some models tied with that version of dataset.
@@Roboflow I'm not sure exactly. I ran the colab file pretty along with you following the video, except I made my own dataset how you showed it in the video and used the api information from that. Pretty much ran the rest of the colab file as is.
Hi Roboflow, i applied histogram equalization preprocessing image in my dataset to train yolov8 model then i will use this pretrain model to predict each frame in my web cam, so i want to ask you that how can i preprocessing my frame like roboflow's histogram equalization preprossing did.
Hello.. I trained a model on YOLOv8 and it worked very well. I had a question. Like I wanted to make some changes in the Predict file when I was running yolov8 in my system locally on CLI. I wanted to integrate a alarm system when any thing is detected. So I wanted the location of the Predict file. I have download the ultralytics repo in my pc.
Hello, I am trying to make the same application with a different dataset. In the "Training" section, I get the error "boolean index did not match indexed array along dimension 0; dimension is 1 but corresponding boolean dimension is 9" and train section stops. how can i solve this?
@@Fctxxx could you please create issue here: github.com/roboflow/notebooks/issues? It would help us to track this issue. Please make sure to give us as much detail as you can.
After extracting the downloaded dataset zip file (from my roboflow account), to which folder (following this video) should I upload the valid, train and test folders and, the data.yaml and README text files?
@@Roboflow I used manual download from the roboflow online app. I click the "Export Dataset" button. Then select "YOLO8" format. Then select "download zip to computer" option and finally click the "Continue" button. Trouble is, the snippet I copied/pasted into my Colab crashed when ran because it does not include a workspace name. :(
How can I exclude certain classes when generating weights? During my annotation process, I included all the classes I needed, but I only want the model to generate weights based on specific classes. How can I achieve this?
I am trying to download the final files to my pycharm and i can not do it.please, can you write over here the command i have to use for dowloading the final files to my google drive? in other words, how can i set my google drive as dircetory files and where i have to place it in the code in the notebook.thank you very much
I see that we are getting a lot of similar comments over the last 2 days. I’m actually quite curious why is that. Haha can you create a new thread here: github.com/roboflow/notebooks/discussions/categories/q-a Asking about that. I’ll try to create a small tutorial on how to do it.
Could you please create issue here: github.com/roboflow/notebooks/issues ? That could help us track that issue. And please provide as much details as you can.
can we run live inferencing on yolov8 models without using ultralytics library like we used to in previous version of yolov5? I want to setup the codebase for just running inferencing without using the ultralytics library.
Of course you can! Mode is saved in runs directory. And you can download it from colab. Take a look at this stackoverflow.com/questions/49394737/exporting-data-from-google-colab-to-local-machine to learn how to download stuff from colab to local.
I trained our network with custom dataset. The training period lasted a long time. I want to test the performance of my test set with the network I trained at another time. Is there any other solution than retraining the network?
When I ran the deployment command: project.version(dataset.version).deploy(model_type="yolov8", model_path=f"{HOME}/runs/detect/train7/") (mine is on folder "train7"), I had the following error: TypeError Traceback (most recent call last) in ----> 1 project.version(dataset.version).deploy(model_type="yolov8", model_path=f"{HOME}/runs/detect/train7/") 6 frames /usr/lib/python3.8/json/encoder.py in default(self, o) 177 178 """ --> 179 raise TypeError(f'Object of type {o.__class__.__name__} ' 180 f'is not JSON serializable') 181 TypeError: Object of type ContainerMetadata is not JSON serializable What am I missing? What did I do wrong? :)
How can I make yolov8 detect only the highest confidence interval class for a given class? IE. filter all the players and just display the player with most confidence interval?
while running inference on a custom dataset i get this error: TF-TRT Warning: Could not find TensorRT. After then it detects properly. I just don't get the visual of its detection!
when i did custom training i have an issue Note dataset download directory is '/content/datasets'. You can update this in '/root/.config/Ultralytics/settings.yaml'
@@SkalskiP I am using the yolo default weights in my own code for detection, but when I train a model on custom data set, it generates weights in pt extension which aren't useable unless in weights extension so is there a way?
@@moazamadrees5409 I try to follow what you are saying but I don't quite understand. .pt file is the standard PyTorch file extension. Is file in that extension not working for you?
@@SkalskiP well when I deploy the model in my code I used yolov7.weights file, but the one generated from custom model is Pt file, can it be changed into weights is my question
In Yolov5, there was "detect.py" from where I could change some line of code according to my need. It was under content/yolov5/detect.py. But in Yolov8 object detection file, I cannot found it. Can you please help me with that?
what is imgsz here in *****!yolo task=detect mode=train model=yolov8s.pt data={dataset.location}/data.yaml epochs=25 imgsz=800 plots=True*****. Does my value of imgsz depend on something according to my inputs?
@@Roboflow Hi, thanks for your help. This is my first project actually. I do almost everything same with you. Just I don't use same dataset with you.(I couldn't find your dataset). I use different football match images dateset from roboflow. Total 114 images and I annotated 5 of them.(I don't know which format are they.) Then I want to annotate others automatically like you but I can't see the Submit Images for review button.
@@Roboflow I also couldn't see Approved or Rejected options in Overview. Probably something may wrong about my dataset. But they are only images with unannotated
@@Roboflow I think I misunderstood. I guess we should manually annotate all the pictures that will be used for the model we will build first. Then we can easily label and annotate much more data with the model formed after that. I guess you meant it
Result of both training and detection is saved in runs directory. Take a look here stackoverflow.com/questions/49394737/exporting-data-from-google-colab-to-local-machine to learn how to download stuff from colab.
do we need to specify device=none parameter while training to access GPU even after changing GPU settings under Runtime bar in Colab? When i execute training even after changing to GPU settings under runtime tab, i get device=none mentioned in the output of training
How can I prepare dataset_params if I have a dataset structured as follows: Vid1/images and labels, Vid2/images and labels, and so on up to Vid100? The dataset consists of multiple videos, with each video stored in its own folder.
I have finished training my custom dataset using yolov8 and have successfully tested some images, so how can I get the coordinates of the bounding box of those images?
Hello, I collected data with video to use in my project. Can I use this video to train my model or do I need to train the model using only photos? If I can use it, how should I label the data in this video? I would appreciate it very much if you could help me on this issue.
Hello,i am training my model on 2500 imagesthen the precision is just 80 and i have sometimes an overfitiing , and i really need to improve results for my project really soonn, can you explain why
hello, Can we add the object trained with the custom dataset to the other 80 object YOLO weights? As a single weight of 80+1. Can we increase the weight of the existing 80 objects? thanks. normally yolo weight consists of 80 objects. Can we add new objects to objects of this weight by training with custom datasets?
I have uploaded video for object detection. However it takes a very long time to download the analyzed video. How can i shorten this time? Or how can i watch without downloading?
Thanks for the fantastic video. My prediction picture data won't store in /runs/detect/predict at the moment I run with mode=predict. What should I do? I repeatedly ran my code, but it failed to save. Your advice is essential. thank you in advance.
while deploying im getting "An error occured when getting the model upload URL: This version already has a trained model. Please generate and train a new version in order to upload model to Roboflow."
@@Anutosh13 for now you can only have one version of model assigned to any dataset version. Looks like you already have some model tied to specified dataset version.
Iam new to YOLO and object detection.... What is the relationship between YOLO and PyTorch? This video didn't mention PyTorch but in other tutorials on YOLO, PyTorch was brought up but it was not clear how they integrate or if that is even needed...Any help is greatly appreciated!
Hi, I have trained my model with 10 classes, but in case if I want to detect only a specific class by getting the input from the user what should be modified. I tried passing it as an argument and it worked out. But when I tried using # integer input class_to_be_detected = int(input())
# print type print(type(class_to_be_detected)) when I tried pass 'class_to_be_detected' in class argument I am getting error as 'TypeError: new(): invalid data type 'str'' Please help me with the same
Hello, thanks for the amazing tutorial. the older version of roboflow is working fine but I could not figure out why is the the roboflow 1.0.1 or later throwing following error just by importing it. TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
How did you added the labels at the video? When I try using a test video it does the process and shows the classification but the video remain the same
I am running the exact same python code as given in the video and yet post prediction, the output images have no bounding boxes and also output of the predict method doesn't give the location of the predicted images. Can someone help? I am using google collab
okay so using the cli command creates an output image but using model.predict doesn't save any output image i guess. model.predict() gives the data on the bounding boxes, any idea how can i create an output image myself using these bounding boxes?
okay found the fix, first you need to specifically mention the version while doing pip install pip install ultralytics==8.0.11, secondly when calling the model.predict method, use save=True as an argument in the function, this will start saving the output image as well
Finally is really simple to use for industrial projects!
Exactly!
Epic, waiting on the next parts. Cheering for Roboflow & Ultralytics teams !
Good diction, i'm currently learning English, and I find your pronunciation much easier to understand compared to most people, not sure why. Great video!
Lol I have noticed this too!, Its often easier for me to understand non-native english people
Hello I have encountered this issue for command at 13:47
Dataset '/content/datasets/Football-1/data.yaml' images not found ⚠, missing path '/content/datasets/Football-1/Football-1/valid/images'
Note dataset download directory is '/content/datasets'. You can update this in '/root/.config/Ultralytics/settings.json'
I changed the path in data.yaml and it seems worked
I ran the roboflow Yolov8 snippet and generated me this folder structure:
datasets > objcts-to-detect > train > images ...
When I ran the !yolo task=detect mode=train... step, it crashed with this error:
Dataset not found ⚠, missing paths ['/content/datasets/pkslsp-and-tksrs-1/valid/images']
The roboflow snippet did not generate folder "valid" before "images".
How can I fix this?
Could paste here a link to your dataset at Roboflow?
@@Roboflow Everytime I paste the link right here, it gets deleted. I am going to paste only what is after the roboflow domain, which is: /pc-solutions/pkslsp-and-tksrs/1. Let me know if this helps. 😕
@@ManuelHernandez-zq5em great, thanks! We didn't created that directory, because you don't have any valid and test images in your dataset. 4 images in train and 0 in valid and test. YOLOv8 requires you to have some validation set.
@@Roboflow Hi I'm having the same problem and tucked at Custom Training section, where it shows:
Dataset not found ⚠, missing paths ['/content/datasets/PV-Temperature-detection--2/valid/images']
Traceback (most recent call last):
File "/usr/local/bin/yolo", line 8, in
sys.exit(entrypoint())
File "/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/cli.py", line 148, in entrypoint
cli(cfg)
File "/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/cli.py", line 84, in cli
func(cfg)
File "/usr/local/lib/python3.8/dist-packages/hydra/main.py", line 79, in decorated_main
return task_function(cfg_passthrough)
File "/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/v8/detect/train.py", line 207, in train
model.train(**cfg)
File "/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/engine/model.py", line 199, in train
self.trainer = self.TrainerClass(overrides=overrides)
File "/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/engine/trainer.py", line 126, in __init__
self.data = check_dataset_yaml(self.data)
File "/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/data/utils.py", line 232, in check_dataset_yaml
raise FileNotFoundError('Dataset not found ❌')
FileNotFoundError: Dataset not found ❌
I have adjusted and having valid and test images in my Roboflow dataset. The link is "app(dot)roboflow(dot)com/apu-vbwqe/pv-temperature-detection/2"
Appreciate if you could help me check
You gotta change the paths for respective folders say test,train and val in data.yaml file. And try running it again, it should work. Hope this helps!
You are the best. Roboflow 💙
Is this working good in real time rtsp stream fetched from CCTV cameras??
Hi it is Peter from video! 👋Honestly I haven't checked that out, but it sounds like a very good topic for next tutorial video.
@@SkalskiP yes please do that for the next video.
@@afrahthahir7179just keep in mind that it works good mostly on big size objects
I am getting this error again and again during training
Dataset not found ⚠, missing paths ['/content/datasets/football-players-detection-4/valid/images']
Error executing job with overrides: ['task=detect', 'mode=train', 'model=yolov8s.pt', 'data=/content/football-players-detection-4/data.yaml', 'epochs=25', 'imgsz=800']
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/cli.py", line 56, in cli
func(cfg)
File "/usr/local/lib/python3.8/dist-packages/hydra/main.py", line 79, in decorated_main
return task_function(cfg_passthrough)
File "/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/v8/detect/train.py", line 207, in train
model.train(**cfg)
File "/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/engine/model.py", line 189, in train
self.trainer = self.TrainerClass(overrides=overrides)
File "/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/engine/trainer.py", line 126, in __init__
self.data = check_dataset_yaml(self.data)
File "/usr/local/lib/python3.8/dist-packages/ultralytics/yolo/data/utils.py", line 232, in check_dataset_yaml
raise FileNotFoundError('Dataset not found ❌')
FileNotFoundError: Dataset not found ❌
Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.
Hi it is Peter from the video! 👋Are you getting that error with our notebook?
@@SkalskiP Yes me to, I got the same error while custom training
same
Yes I am getting this error while using the notebook you provided in this video
I got same problem
on 18:08 you mentioned that you downloaded the result and played the video. Do you mind sharing how to do that?
did you find out?
Thank you Roboflow!! Always keeps us updated🤝🤝
Thank you for wanting to be updated!
Great video! Definitely useful to train your own dataset since yolov8 was originally trained on COCO so it may not work for special applications!
Hey so when I'm running the video, the model is detecting the objects and the count frame by frame. But I'm not able to see the video to see which objects it detect. Can you please help me out?
Do you pass show=True ?
what is the best.pt file? ı just downloaded it and closed everything else. did ı save my model? can ı use it?
Nicely explained!
Thank you!
Thank you Brother , The Roboflow is just Amazing and super easy to use.
Great video! very helpful to get started with Yolov8
00:05 Yellow V8 is the latest object detection model that fine tunes much faster than its predecessors
02:29 Yellow V3 and Yellow V5 repositories have almost 45,000 stars on GitHub and will solve previous issues in the Yellow V8 project.
04:58 Importing Yolo from ultralytics and running inference
07:36 Creating a dataset for training the YOLO model using Roboflow
10:16 Use Cinema to label images and create a dataset for training
13:00 The training has been completed and the results are satisfactory.
15:41 Training the models could take longer and yield better results.
18:04 Yellow V8 model can be trained and deployed for inference using a single line of code.
20:16 Comparing yellow V8 to previous object detection models
Crafted by Merlin AI.
Hi, how if i don't want to use yolov8n, and i want to change yolov8m, where should i change it? Someone pls help me thx
When you call the YOLO function, you can change your model input there as a string to your model name. Have to first import from ultralytics
Hey, for my dataset its taking so much time to train the model and i am running out of GPU limits, earlier i was getting error in training but i added batch size 8 ,now its training the model but taking too much time and GPU. Can u suggest what should i do?
Thanks!
I tested the model on some images I can see the results in text but the bounding boxes on the pictures won't save.
Hi it is Peter from the video. I just updated our notebook for object detection. Could you check one more time? The issue should be fixed now :)
Occured error:FileNotFoundError:
Dataset '/home/elin/model_training/yolov8/ClassAction-1/data.yaml' not found ⚠, missing paths ['/home/elin/model_training/datasets/ClassAction-1/valid/images']
I don't know why and i given the attribute data.localtion+'/data.yaml' as data attribute of yolov8 trainer and it raised this
Is that happening inside our notebook? What version of ultralytics are you using?
@@Roboflow I am using the same version in notebook which is 0.8.20 i remember is that,i download this notebook file.in my local wsl with no editing (expect API key,project name)
And then it raised.
Do we have a Discord or something which can share the screen yet,if so i'd really want you guys help me "face by face",that would be my pleasure and it must be key to push me finish my innovate research project currently of my college.
@@ElinLiu0823 we don't have Discord, but you can start a thread here: github.com/roboflow/notebooks/discussions/categories/q-a we will try to help you out ;D
Hi, thank you for the lovely video.
Although I am getting this error when I initiate training: FileNotFoundError:
Dataset '/content/project_name/data.yaml' not found ⚠, missing paths ['/content/datasets/project_name/valid/images']
Hi 👋🏻 could you create a bug report here: github.com/roboflow/notebooks? Please provide us with as many details as possible.
This happens to a lot of the files for some reason, it also did it for 'predict3' and required a change to ''predict2'. I'm not sure whether this is intentional or not : |
@@Roboflow For me this occurred because the 'train' file (/runs/detect/train/weights/best.pt) was displaced for some reason. All the weights had saved to 'train3'rather than the preestablished location within the given code. Try and find where the files are saving and change the file destinations (i.e., from /runs/detect/train/weights/best.pt to /runs/detect/train3/weights/best.pt).
hello sir after detection there is no predict directory where my video and test images are stored... detection on video perform and completed successfully but predict directory is not
Hi it is Peter from video. I just pushed slightly updated version of our notebook. I think you should not experience that problem now. Could you take a look?
This video has made my DL work so much easier! Thx for the great tutorial on YoloV8 and connecting it to Roboflow workflow😊😊
Hi! It's peter from the video. Thats what I wanted to hear! 💜
hello, i have some problems on confusion matrix part where the font size that shows number in that confusion matrix is too small and quite hard to read. is there any way that i can make the font size on that confusion matrix bigger? is there any modification on the code?
No. But you can use supervision confusion matrix: github.com/roboflow/supervision
Hey, in the video at 11:26, u said that u have posted the links in the description but i couldn't find that link. Can u please check for that link?
It will be very helpful for me.
Output of the predict method doesn't give the location of the predicted images, how can i fix it ?
Add save=True to your command
good job Roboflow and Ultralytics team... I want similar videos in docker... Thank you
It was soooo helpful! Thank you!
I love to hear that!
@@Roboflow could you do the same for OneFormer pls.
Hello! Quick question, when trying to deploy the model, I'm getting the message "an error occured when getting the model upload URL: This version has a trained model. Please generate and train a new version in order to upload model to Roboflow." How can I fix this?
Hi, it is Peter from the video. 👋For now, we only allow one model version to be tied with one version of the dataset. Looks like you already have some models tied with that version of dataset.
@@Roboflow I'm not sure exactly. I ran the colab file pretty along with you following the video, except I made my own dataset how you showed it in the video and used the api information from that. Pretty much ran the rest of the colab file as is.
@@roobeshbalaji9282 can you send me link to your dataset?
Hi Roboflow, i applied histogram equalization preprocessing image in my dataset to train yolov8 model then i will use this pretrain model to predict each frame in my web cam, so i want to ask you that how can i preprocessing my frame like roboflow's histogram equalization preprossing did.
Very simple and useful… Thank you so much
Stay tuned, we will soon post YOLOv8 instance segmentation too ;)
The option to export in yoloV8 format is now available. Do I still have to export the annotated dataset to yoloV5?
Good question. It is better if you'll export in YOLOv8 format.
Hello.. I trained a model on YOLOv8 and it worked very well. I had a question. Like I wanted to make some changes in the Predict file when I was running yolov8 in my system locally on CLI. I wanted to integrate a alarm system when any thing is detected. So I wanted the location of the Predict file. I have download the ultralytics repo in my pc.
Hi 👋It is Peter from video! If you want to do changes, I encourage you not to install via pip but clone repo and install it the old way.
Hello, I am trying to make the same application with a different dataset. In the "Training" section, I get the error "boolean index did not match indexed array along dimension 0; dimension is 1 but corresponding boolean dimension is 9" and train section stops. how can i solve this?
Hi! Are you using our notebook for training with no changes other than your dataset? Do you use dataset loaded from Roboflow?
Yes im using dataset from roboflow. Everything same except dataset. But i have a error.
@@Fctxxx could you please create issue here: github.com/roboflow/notebooks/issues? It would help us to track this issue. Please make sure to give us as much detail as you can.
After extracting the downloaded dataset zip file (from my roboflow account), to which folder (following this video) should I upload the valid, train and test folders and, the data.yaml and README text files?
Dou you use manual download or pip package?
@@Roboflow I used manual download from the roboflow online app. I click the "Export Dataset" button. Then select "YOLO8" format. Then select "download zip to computer" option and finally click the "Continue" button. Trouble is, the snippet I copied/pasted into my Colab crashed when ran because it does not include a workspace name. :(
easy tutorial to follow, thanks!
Awesome!
is there any detailed blog or tutorial for yolov8 classification. with custom dataset. am having problem with data parameter in model.train
Me too! It raises FileNotFound: None error
How can I exclude certain classes when generating weights? During my annotation process, I included all the classes I needed, but I only want the model to generate weights based on specific classes. How can I achieve this?
I am trying to download the final files to my pycharm and i can not do it.please, can you write over here the command i have to use for dowloading the final files to my google drive? in other words, how can i set my google drive as dircetory files and where i have to place it in the code in the notebook.thank you very much
I see that we are getting a lot of similar comments over the last 2 days. I’m actually quite curious why is that. Haha can you create a new thread here: github.com/roboflow/notebooks/discussions/categories/q-a Asking about that. I’ll try to create a small tutorial on how to do it.
Hii i have error in project deployment "
AttributeError: 'UltralyticsCFG' object has no attribute 'items'"
Could you please create issue here: github.com/roboflow/notebooks/issues ? That could help us track that issue. And please provide as much details as you can.
can we run live inferencing on yolov8 models without using ultralytics library like we used to in previous version of yolov5? I want to setup the codebase for just running inferencing without using the ultralytics library.
Sorry sir, permission to ask if the code that runs on google collab can be run on pycham
Hi all, please where can I get the football data used in this tutorial?
here’s the dataset: universe.roboflow.com/roboflow-jvuqo/football-players-detection-3zvbc :)
Thank you RoboFlow!
Please how to show in this case number of detected objects on the test image?
We have this exact example in the supervision readme. Take a look: github.com/roboflow/supervision?tab=readme-ov-file#-quickstart
how can we dowload the final models from the notebook for using in pycharm?
Of course you can! Mode is saved in runs directory. And you can download it from colab. Take a look at this stackoverflow.com/questions/49394737/exporting-data-from-google-colab-to-local-machine to learn how to download stuff from colab to local.
@@Roboflow can you explain how to set the runs directory please? for exaple ,my google drive. what is the relevant command?
How to get the google colab file for training
Hi it is Peter from the video! If you mean link to the Notebook, it is in description bellow ;)
That is a great tutorial! Thanks sir.
Thanks a lot!
I trained our network with custom dataset. The training period lasted a long time. I want to test the performance of my test set with the network I trained at another time. Is there any other solution than retraining the network?
When I ran the deployment command:
project.version(dataset.version).deploy(model_type="yolov8", model_path=f"{HOME}/runs/detect/train7/") (mine is on folder "train7"), I had the following error:
TypeError Traceback (most recent call last)
in
----> 1 project.version(dataset.version).deploy(model_type="yolov8", model_path=f"{HOME}/runs/detect/train7/")
6 frames
/usr/lib/python3.8/json/encoder.py in default(self, o)
177
178 """
--> 179 raise TypeError(f'Object of type {o.__class__.__name__} '
180 f'is not JSON serializable')
181
TypeError: Object of type ContainerMetadata is not JSON serializable
What am I missing? What did I do wrong? :)
i cant access the ultralytics command line to further process
Could you give me a bit more detail?
@@Roboflow i can't access that ultralytics page and set of commands on colab .
@@aswath_tamilan could you create bug report here: github.com/roboflow/notebooks/issues and describe your issues?
@@Roboflow ok
How can I make yolov8 detect only the highest confidence interval class for a given class? IE. filter all the players and just display the player with most confidence interval?
Is there something wrong with your code, or did recent ultralytics version change break the code?
Do you experience some problems now?
while running inference on a custom dataset i get this error: TF-TRT Warning: Could not find TensorRT.
After then it detects properly. I just don't get the visual of its detection!
when i did custom training i have an issue
Note dataset download directory is '/content/datasets'. You can update this in '/root/.config/Ultralytics/settings.yaml'
Same issue
hey how
can we use our own weights file it's generated in PT extension?
Hi it is Peter from video :) What would you like to do with them? Deploy in Roboflow? ;)
@@SkalskiP I am using the yolo default weights in my own code for detection, but when I train a model on custom data set, it generates weights in pt extension which aren't useable unless in weights extension so is there a way?
@@moazamadrees5409 I try to follow what you are saying but I don't quite understand. .pt file is the standard PyTorch file extension. Is file in that extension not working for you?
@@SkalskiP well when I deploy the model in my code I used yolov7.weights file, but the one generated from custom model is Pt file, can it be changed into weights is my question
Im looking for that answer to
Have you found a solution?
In Yolov5, there was "detect.py" from where I could change some line of code according to my need. It was under content/yolov5/detect.py. But in Yolov8 object detection file, I cannot found it. Can you please help me with that?
Modern libraries don’t have detect.py anymore. What would you like to change?
@@Roboflow I would like generate a text file which include the coordinates of the detected objects. Can you help me with that?
@@FatinIshraq-z4f hey i need something similar have you achieved it? if yes can you explain how?
i am getting error again and again if i use any other dataset
, my epochs are not running only.. suggest what to do
what is imgsz here in *****!yolo task=detect mode=train model=yolov8s.pt data={dataset.location}/data.yaml epochs=25 imgsz=800 plots=True*****. Does my value of imgsz depend on something according to my inputs?
I can't see the Submit Images For review section. Why?
Hi! 👋Do you have only images or images and annotations? If you have annotations in what format?
@@Roboflow Hi, thanks for your help. This is my first project actually. I do almost everything same with you. Just I don't use same dataset with you.(I couldn't find your dataset). I use different football match images dateset from roboflow. Total 114 images and I annotated 5 of them.(I don't know which format are they.) Then I want to annotate others automatically like you but I can't see the Submit Images for review button.
@@Roboflow I also couldn't see Approved or Rejected options in Overview. Probably something may wrong about my dataset. But they are only images with unannotated
@@Roboflow I think I misunderstood. I guess we should manually annotate all the pictures that will be used for the model we will build first. Then we can easily label and annotate much more data with the model formed after that. I guess you meant it
Guys. Can i know why cant i find the runs directory in the files? Im linking it to mydrive but there is no any files as runs in the drive too.
Did you pass save=True?
hi,how can i download the results from the colab?
Result of both training and detection is saved in runs directory. Take a look here stackoverflow.com/questions/49394737/exporting-data-from-google-colab-to-local-machine to learn how to download stuff from colab.
how to make the predication on RUclips video, i was doing this on Yolov5
It is not working with YOLOv8 CLI?
do we need to specify device=none parameter while training to access GPU even after changing GPU settings under Runtime bar in Colab? When i execute training even after changing to GPU settings under runtime tab, i get device=none mentioned in the output of training
How can I prepare dataset_params if I have a dataset structured as follows: Vid1/images and labels, Vid2/images and labels, and so on up to Vid100? The dataset consists of multiple videos, with each video stored in its own folder.
Just a quick question, upon completing training, can I download the newly created Yolo model?
yup! all weights are saved in google colab after training; you can download them to your hard drive.
is that possible for the yolov8 train model to implement in MATLAB?
I’m afraid not.
I have finished training my custom dataset using yolov8 and have successfully tested some images, so how can I get the coordinates of the bounding box of those images?
Hello, did you find a way?
keep getting a failed upload of my model. what could be the problem?
For now, you can only have one model per dataset version. Do you already have some model tied to your dataset version?
Hello, I collected data with video to use in my project. Can I use this video to train my model or do I need to train the model using only photos? If I can use it, how should I label the data in this video? I would appreciate it very much if you could help me on this issue.
What can I do to make the model I have trained to continue training again leter?
resume=True I believe :)
how can we change the hyperparameters according to our custom dataset
Do you mean hyperparameters of the model?
@@Roboflow yes
@@seroshmannan you can pass your training hyperparamiters as arguments to yolo CLI
How to download the dataset with python?
Hello,i am training my model on 2500 imagesthen the precision is just 80 and i have sometimes an overfitiing , and i really need to improve results for my project really soonn, can you explain why
hello,
Can we add the object trained with the custom dataset to the other 80 object YOLO weights? As a single weight of 80+1. Can we increase the weight of the existing 80 objects?
thanks.
normally yolo weight consists of 80 objects.
Can we add new objects to objects of this weight by training with custom datasets?
What algo you are using with yolo for image detection
I have uploaded video for object detection. However it takes a very long time to download the analyzed video. How can i shorten this time? Or how can i watch without downloading?
would higher epochs on training mean higher accuracy?
It may be more tricky. If you train for too long, you might overfit your model. Especially if your dataset is small.
@@Roboflow thank you, what would be your suggested number of epochs?
Thanks for the fantastic video. My prediction picture data won't store in /runs/detect/predict at the moment I run with mode=predict. What should I do? I repeatedly ran my code, but it failed to save. Your advice is essential. thank you in advance.
Try to use save=True parameter
guys after inferencing I am not getting where the results are storing. And after inferencing also it is not showing. Please help me through this
while deploying im getting "An error occured when getting the model upload URL: This version already has a trained model. Please generate and train a new version in order to upload model to Roboflow."
plz help
@@Anutosh13 for now you can only have one version of model assigned to any dataset version. Looks like you already have some model tied to specified dataset version.
Please how can I edit the code to count the number of objects detected instead of just drawing boxes?
We will do exactly that tutorial on Monday or Tuesday
What is the best way to resize images to 640x640? Is it stretching or resizing keepeing proporions?
so any AMD / Radeon support ? how to run this on your own hardware instead of colab?
PyTorch is supported on AMD, isn’t it?
Iam new to YOLO and object detection....
What is the relationship between YOLO and PyTorch? This video didn't mention PyTorch but in other tutorials on YOLO, PyTorch was brought up but it was not clear how they integrate or if that is even needed...Any help is greatly appreciated!
Hi it is Peter from video! PyTorch is a general framework used to build neural networks. YOLO is one of neural networks that is written in PyTorch.
@@SkalskiP oh! YOLO is written in pytorch! Didn't know that... So no other separate processing by pytorch is needed, thanks!
thank you for great video :)
Thanks a lot for watching :)
can you show with the coordinate please at the bounding box . I am very need that
TypeError: unhashable type: 'numpy.ndarray' (Having this error in custom training process)
Could you give me a bit more detail? When is that problem occuring?
I cannot use, get images not found error and missing path though I specified in yaml file already,.
!pip install ipython
from IPython.display import Image
%cd {HOME}
Image(filename=f'{HOME}/runs/detect/train/confusion_matrix.png', width=600)
@@banterbop ye thanks I got it working. I was def missing some packages. Btw if I want the box coords it’s possible in cv2 right?
How to fix ?
[Errno 2] No such file or directory: '{HOME}/datasets'
/content
/bin/bash: yolo: command not found
Thankyou
Looks like you didn’t run all the previous cells in notebook. I recommend running the notebook cell by cell.
Hi, I have trained my model with 10 classes, but in case if I want to detect only a specific class by getting the input from the user what should be modified. I tried passing it as an argument and it worked out. But when I tried using
# integer input
class_to_be_detected = int(input())
# print type
print(type(class_to_be_detected))
when I tried pass 'class_to_be_detected' in class argument I am getting error as 'TypeError: new(): invalid data type 'str''
Please help me with the same
can l create a project that can do crop counting using this
Doesn't work for me, i have an issue for the custom training step : "(...)/data.yaml' is not a valid YOLO argument."
Same problem
Is that happening in our notebook?
Hello, thanks for the amazing tutorial. the older version of roboflow is working fine but I could not figure out why is the the roboflow 1.0.1 or later throwing following error just by importing it.
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
Could you please create new issue here: github.com/roboflow/notebooks/issues and give me a bit more detail?
How did you added the labels at the video? When I try using a test video it does the process and shows the classification but the video remain the same
thank you, useful, great content
Thanks a lot!
@@Roboflow welcome sir, getting errors at code, please solve sir
@@RAZZKIRAN I'm happy to help. Could you please create a thread on ours discussions page: github.com/roboflow/notebooks/discussions/categories/q-a ?
hello, how can we watch the video? I just come to the video part before deploy. It works on code but i can not see the video?
Please follow instructions here stackoverflow.com/questions/48774285/how-to-download-file-created-in-colaboratory-workspace
I am running the exact same python code as given in the video and yet post prediction, the output images have no bounding boxes and also output of the predict method doesn't give the location of the predicted images. Can someone help? I am using google collab
okay so using the cli command creates an output image but using model.predict doesn't save any output image i guess. model.predict() gives the data on the bounding boxes, any idea how can i create an output image myself using these bounding boxes?
Are you using our Google Colab?
okay found the fix, first you need to specifically mention the version while doing pip install pip install ultralytics==8.0.11, secondly when calling the model.predict method, use save=True as an argument in the function, this will start saving the output image as well
@@kewalagrawal6539 how did you fix it , i am trying but doesnt work.Could you please share the working predict code?
All at once in the sense, rather than annotating all the images manually is there any way we could do it faster?
It always glitching on my machine because of dependencies conflict: numpy, pandas versions for v8, and pycocotools for yolo nas