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).
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.
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.
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?
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 sir i have one probelm i train it on 100 epochs but when it perform detection on video or test images .. then detection have been completed but the predict folder cannot make ..means the output video or test images are no where
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.
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? :)
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?
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 am new into YOLO v8 and I am struggling with this error: Invalid NAL unit size (87283 > 70815). Error splitting the input into NAL units. stream 0, offset 0x304054: partial file. Can someone tell me what that means and how can I fix it? It happens when I try to run an mp4 after doing every step. Thanks for the video, awesome tutorial!!! :)
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!
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 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?
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?
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.
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?
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
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
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.
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. :(
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.
FileNotFoundError: Dataset 'C:\Users\elton\Car-Detection-3\data.yaml' not found \u26a0\ufe0f, missing paths ['C:\\yolo\\datasets\\datasets\\datasets\\Car-Detection-3\\valid\\images'] Sentry is attempting to send 2 pending error messages Waiting up to 2 seconds Press Ctrl-Break to quit Hi, I got this error code after I trained my data.What can I do?
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'
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?
@@fatihcihantaskin6328 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.
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.
Thanks for the video! Does yolo segment things in geometries that aren’t rectangles? For instance, if you wanted to segment different planar surfaces on a roof from aerial imagery.
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?
When you train a model, the weights are saved in the runs folder correct? We do not have to upload to roboflow? Also using v5 you used to be able to put custom data sets in a certain place in the directory structure which you reference with a data.yaml file. Is this not the case anymore? Where are the datasets stored now? Is it no longer on the local machine in the directory? Do we have to use roboflow and upload there? Thanks
Are there any footage requirements for inputting into YOLOV8? I am trying to use it for sports analysis and wondered whether you need the whole pitch/tactical wide lens?!how zoomed in does it need to be? Will it capture a ball being hit at really high speeds?
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.
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?
Hi, thanks for the great knowledge and information you have provided. Please could you help use the custom model created to create an app/UI using Streamlit or Flask with Webcamp?
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!
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.
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?
sir ,please give me code how to extract detected objects in an image and save those images in seperate files ,like if we detect 5 objects in an image using yolov8,and that image is saved in a file ,then i need the detected objects seperated please help sir
@@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
Hi , i have a problem , when training the yolo creates new dataset by itself and trains on that without training on my own custom datasety , how to fix it ?
Thanks for your video ! When I tried to train the polar panels dataset on roboflow, I got the following error. How can I fix it? Thanks !! Sizes of tensors must match except in dimension 1. Expected size 1364 but got size 0 for tensor number 1 in the list. Sentry is attempting to send 2 pending error messages
@@Roboflow %cd {HOME} !yolo task=detect mode=predict model={HOME}/runs/detect/train2/weights/last.pt conf=0.1 source=/content/25km.mp4 I run this code, but I can't see where the video is saved.
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!
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?