YOLOv8: How to Train for Object Detection on a Custom Dataset

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ธ.ค. 2024

ความคิดเห็น • 434

  • @matheusmartins1000
    @matheusmartins1000 ปีที่แล้ว +7

    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!

    • @AndrewTSq
      @AndrewTSq 2 หลายเดือนก่อน

      Lol I have noticed this too!, Its often easier for me to understand non-native english people

  • @AndroidDjRealEDM
    @AndroidDjRealEDM ปีที่แล้ว +13

    Finally is really simple to use for industrial projects!

    • @SkalskiP
      @SkalskiP ปีที่แล้ว

      Exactly!

  • @goodtechdoor
    @goodtechdoor ปีที่แล้ว +12

    Epic, waiting on the next parts. Cheering for Roboflow & Ultralytics teams !

  • @giridharidash9528
    @giridharidash9528 7 หลายเดือนก่อน +1

    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.

  • @kevinwoodrobotics
    @kevinwoodrobotics ปีที่แล้ว +2

    Great video! Definitely useful to train your own dataset since yolov8 was originally trained on COCO so it may not work for special applications!

  • @afrahthahir7179
    @afrahthahir7179 ปีที่แล้ว +9

    Is this working good in real time rtsp stream fetched from CCTV cameras??

    • @SkalskiP
      @SkalskiP ปีที่แล้ว +2

      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.

    • @afrahthahir7179
      @afrahthahir7179 ปีที่แล้ว +2

      @@SkalskiP yes please do that for the next video.

    • @CantPickTheNameIwant
      @CantPickTheNameIwant ปีที่แล้ว

      ​@@afrahthahir7179just keep in mind that it works good mostly on big size objects

  • @benephr
    @benephr 2 หลายเดือนก่อน +1

    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'

    • @benephr
      @benephr 2 หลายเดือนก่อน

      I changed the path in data.yaml and it seems worked

  • @ML.ArtificialIntelligence
    @ML.ArtificialIntelligence ปีที่แล้ว +4

    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.

    • @SkalskiP
      @SkalskiP ปีที่แล้ว

      Hi it is Peter from the video! 👋Are you getting that error with our notebook?

    • @mohammadhaadiakhter2869
      @mohammadhaadiakhter2869 ปีที่แล้ว +1

      @@SkalskiP Yes me to, I got the same error while custom training

    • @treudden
      @treudden ปีที่แล้ว

      same

    • @ML.ArtificialIntelligence
      @ML.ArtificialIntelligence ปีที่แล้ว

      Yes I am getting this error while using the notebook you provided in this video

    • @golasa7646
      @golasa7646 ปีที่แล้ว

      I got same problem

  • @dineshe90
    @dineshe90 7 หลายเดือนก่อน +1

    good job Roboflow and Ultralytics team... I want similar videos in docker... Thank you

  • @FatemehZaremehrjardi
    @FatemehZaremehrjardi ปีที่แล้ว +2

    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.

    • @SkalskiP
      @SkalskiP ปีที่แล้ว +1

      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 :)

  • @Mc.Gucket
    @Mc.Gucket 10 หลายเดือนก่อน +2

    what is the best.pt file? ı just downloaded it and closed everything else. did ı save my model? can ı use it?

  • @jojis4950
    @jojis4950 ปีที่แล้ว +3

    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']

    • @Roboflow
      @Roboflow  ปีที่แล้ว

      Hi 👋🏻 could you create a bug report here: github.com/roboflow/notebooks? Please provide us with as many details as possible.

    • @themuppetman3671
      @themuppetman3671 ปีที่แล้ว

      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 : |

    • @themuppetman3671
      @themuppetman3671 ปีที่แล้ว

      @@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).

  • @poushalinag7942
    @poushalinag7942 ปีที่แล้ว +2

    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?

  • @ManuelHernandez-zq5em
    @ManuelHernandez-zq5em ปีที่แล้ว +3

    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
      @Roboflow  ปีที่แล้ว

      Could paste here a link to your dataset at Roboflow?

    • @ManuelHernandez-zq5em
      @ManuelHernandez-zq5em ปีที่แล้ว +1

      @@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. 😕

    • @Roboflow
      @Roboflow  ปีที่แล้ว +1

      @@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.

    • @yiksengtee8402
      @yiksengtee8402 ปีที่แล้ว

      @@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

    • @gomathinalla3575
      @gomathinalla3575 ปีที่แล้ว +2

      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!

  • @fatrat1184
    @fatrat1184 ปีที่แล้ว +1

    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

    • @kevinwoodrobotics
      @kevinwoodrobotics ปีที่แล้ว

      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

  • @anujjain4406
    @anujjain4406 ปีที่แล้ว +1

    Thank you Brother , The Roboflow is just Amazing and super easy to use.

  • @rohanpokale4651
    @rohanpokale4651 ปีที่แล้ว +3

    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.

    • @SkalskiP
      @SkalskiP ปีที่แล้ว

      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.

  • @serverxeon
    @serverxeon ปีที่แล้ว +2

    Is there something wrong with your code, or did recent ultralytics version change break the code?

    • @Roboflow
      @Roboflow  ปีที่แล้ว

      Do you experience some problems now?

  • @liao-g9v
    @liao-g9v หลายเดือนก่อน

    Hello! I really enjoy your series of tutorials; they are particularly detailed and clear! However, when applying them in practice, I encountered a problem. The target I want to detect is partly included in the YOLO pre-trained model, and the other part is not. For the targets not included, I have trained a custom dataset. How can I combine the custom model with the pre-trained model to recognize all the targets I want in a single image?Thank you!!!

  • @shivamgoel0897
    @shivamgoel0897 ปีที่แล้ว +1

    Great video! very helpful to get started with Yolov8

  • @MehulGupta-b5k
    @MehulGupta-b5k ปีที่แล้ว +2

    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?

    • @Roboflow
      @Roboflow  ปีที่แล้ว

      Do you pass show=True ?

  • @MarceloSEO
    @MarceloSEO ปีที่แล้ว +2

    on 18:08 you mentioned that you downloaded the result and played the video. Do you mind sharing how to do that?

    • @Amy_desu
      @Amy_desu 3 หลายเดือนก่อน

      did you find out?

  • @iMJKhan
    @iMJKhan ปีที่แล้ว +2

    Thanks for your efforts. How to generate a confusion matrix if the training is stopped due to no improvements in loss?

  • @kuaranir2440
    @kuaranir2440 9 หลายเดือนก่อน +1

    Thank you RoboFlow!
    Please how to show in this case number of detected objects on the test image?

    • @Roboflow
      @Roboflow  9 หลายเดือนก่อน +1

      We have this exact example in the supervision readme. Take a look: github.com/roboflow/supervision?tab=readme-ov-file#-quickstart

  • @razorphone77
    @razorphone77 ปีที่แล้ว +1

    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

  • @HoAnLocK18DN
    @HoAnLocK18DN หลายเดือนก่อน

    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.

  • @omerkaya5669
    @omerkaya5669 ปีที่แล้ว +1

    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?

  • @pruthvidarshanss1586
    @pruthvidarshanss1586 ปีที่แล้ว +1

    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.

  • @ManuelHernandez-zq5em
    @ManuelHernandez-zq5em ปีที่แล้ว +1

    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? :)

  • @entertainmentvideos1281
    @entertainmentvideos1281 ปีที่แล้ว +1

    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

    • @SkalskiP
      @SkalskiP ปีที่แล้ว

      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?

  • @abd-alrhmanabdallah8388
    @abd-alrhmanabdallah8388 ปีที่แล้ว

    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.

  • @muhammadrizwanmunawar
    @muhammadrizwanmunawar ปีที่แล้ว +7

    Nicely explained!

    • @SkalskiP
      @SkalskiP ปีที่แล้ว +2

      Thank you!

  • @wptgroup
    @wptgroup ปีที่แล้ว +2

    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.

    • @Roboflow
      @Roboflow  ปีที่แล้ว +1

      Try to use save=True parameter

  • @Agronomistapolo
    @Agronomistapolo ปีที่แล้ว +4

    Could you explain how to edit the bounding box to visualize them with a better appearance?

    • @Roboflow
      @Roboflow  ปีที่แล้ว +1

      Did you try our supervision pip package? We offer custom annotators for bounding boxes there.

  • @hggaming911
    @hggaming911 ปีที่แล้ว +2

    Very simple and useful… Thank you so much

    • @Roboflow
      @Roboflow  ปีที่แล้ว +1

      Stay tuned, we will soon post YOLOv8 instance segmentation too ;)

  • @robparatore1940
    @robparatore1940 6 หลายเดือนก่อน

    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?

  • @ozgurkan
    @ozgurkan ปีที่แล้ว +4

    You are the best. Roboflow 💙

  • @sholehuye2737
    @sholehuye2737 ปีที่แล้ว +1

    Sorry sir, permission to ask if the code that runs on google collab can be run on pycham

  • @AmmarAbbasi-l2n
    @AmmarAbbasi-l2n ปีที่แล้ว

    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.

  • @ayanpaul2210
    @ayanpaul2210 ปีที่แล้ว +9

    Thank you Roboflow!! Always keeps us updated🤝🤝

    • @Roboflow
      @Roboflow  ปีที่แล้ว +2

      Thank you for wanting to be updated!

  • @TerukiVAL
    @TerukiVAL 3 หลายเดือนก่อน

    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?

  • @navyabaireddy5920
    @navyabaireddy5920 6 หลายเดือนก่อน

    All at once in the sense, rather than annotating all the images manually is there any way we could do it faster?

  • @judesequeira1643
    @judesequeira1643 ปีที่แล้ว

    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

  • @tryingtobeproductive
    @tryingtobeproductive ปีที่แล้ว +2

    easy tutorial to follow, thanks!

    • @Roboflow
      @Roboflow  ปีที่แล้ว +1

      Awesome!

  • @bryceayoung
    @bryceayoung 6 หลายเดือนก่อน

    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.

  • @ElinLiu0823
    @ElinLiu0823 ปีที่แล้ว +1

    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
      @Roboflow  ปีที่แล้ว

      Is that happening inside our notebook? What version of ultralytics are you using?

    • @ElinLiu0823
      @ElinLiu0823 ปีที่แล้ว +1

      @@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.

    • @Roboflow
      @Roboflow  ปีที่แล้ว

      @@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

  • @edumaba
    @edumaba หลายเดือนก่อน +1

    Hi all, please where can I get the football data used in this tutorial?

    • @Roboflow
      @Roboflow  หลายเดือนก่อน

      here’s the dataset: universe.roboflow.com/roboflow-jvuqo/football-players-detection-3zvbc :)

  • @MrCantyousea
    @MrCantyousea ปีที่แล้ว +1

    I can't see the Submit Images For review section. Why?

    • @Roboflow
      @Roboflow  ปีที่แล้ว

      Hi! 👋Do you have only images or images and annotations? If you have annotations in what format?

    • @MrCantyousea
      @MrCantyousea ปีที่แล้ว

      ​@@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.

    • @MrCantyousea
      @MrCantyousea ปีที่แล้ว

      @@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

    • @MrCantyousea
      @MrCantyousea ปีที่แล้ว

      @@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

  • @debeshbiswas1672
    @debeshbiswas1672 ปีที่แล้ว

    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!

  • @muhdnajhan886
    @muhdnajhan886 7 หลายเดือนก่อน

    can you show with the coordinate please at the bounding box . I am very need that

  • @BinodKhatri-i4x
    @BinodKhatri-i4x ปีที่แล้ว +1

    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'

    • @Roboflow
      @Roboflow  ปีที่แล้ว

      Could you please create new issue here: github.com/roboflow/notebooks/issues and give me a bit more detail?

  • @muhdirshat9858
    @muhdirshat9858 11 หลายเดือนก่อน +1

    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?

    • @Roboflow
      @Roboflow  10 หลายเดือนก่อน

      No. But you can use supervision confusion matrix: github.com/roboflow/supervision

  • @sevenscapes
    @sevenscapes 4 หลายเดือนก่อน +1

    Just a quick question, upon completing training, can I download the newly created Yolo model?

    • @Roboflow
      @Roboflow  4 หลายเดือนก่อน +1

      yup! all weights are saved in google colab after training; you can download them to your hard drive.

  • @narsilberkay
    @narsilberkay ปีที่แล้ว +1

    Output of the predict method doesn't give the location of the predicted images, how can i fix it ?

    • @Roboflow
      @Roboflow  ปีที่แล้ว

      Add save=True to your command

  • @roobeshbalaji9282
    @roobeshbalaji9282 ปีที่แล้ว +1

    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?

    • @Roboflow
      @Roboflow  ปีที่แล้ว +1

      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.

    • @roobeshbalaji9282
      @roobeshbalaji9282 ปีที่แล้ว +1

      @@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.

    • @Roboflow
      @Roboflow  ปีที่แล้ว

      @@roobeshbalaji9282 can you send me link to your dataset?

  • @seanolivieri4829
    @seanolivieri4829 ปีที่แล้ว

    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?

  • @pcsolutionsezcloudsystems5929
    @pcsolutionsezcloudsystems5929 ปีที่แล้ว +1

    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
      @Roboflow  ปีที่แล้ว

      Dou you use manual download or pip package?

    • @pcsolutionsezcloudsystems5929
      @pcsolutionsezcloudsystems5929 ปีที่แล้ว

      @@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. :(

  • @hbrt10
    @hbrt10 ปีที่แล้ว

    hi, thank you for the documentation.
    I have a problem about predict images. i trained my model and predict image grayscale but i come into view error : ValueError: axes don't match array.
    What should I do? I must predict image grayscale.

  • @watanabeyou3446
    @watanabeyou3446 3 หลายเดือนก่อน +1

    How to download the dataset with python?

  • @ranggayogiswara5148
    @ranggayogiswara5148 ปีที่แล้ว +1

    The option to export in yoloV8 format is now available. Do I still have to export the annotated dataset to yoloV5?

    • @Roboflow
      @Roboflow  ปีที่แล้ว +1

      Good question. It is better if you'll export in YOLOv8 format.

  • @muza886
    @muza886 ปีที่แล้ว +1

    Hii i have error in project deployment "
    AttributeError: 'UltralyticsCFG' object has no attribute 'items'"

    • @Roboflow
      @Roboflow  ปีที่แล้ว +1

      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.

  • @moahaimen
    @moahaimen ปีที่แล้ว +1

    how to make the predication on TH-cam video, i was doing this on Yolov5

    • @Roboflow
      @Roboflow  ปีที่แล้ว

      It is not working with YOLOv8 CLI?

  • @anren7445
    @anren7445 ปีที่แล้ว

    at 13:45 you can utilize gpu by typing "device=0" so it can train faster

    • @Roboflow
      @Roboflow  ปีที่แล้ว

      Doesn’t it train by default on GPU if it is accessible?

  • @venkatasubramaniat7163
    @venkatasubramaniat7163 ปีที่แล้ว +1

    is there any detailed blog or tutorial for yolov8 classification. with custom dataset. am having problem with data parameter in model.train

    • @esooghazy
      @esooghazy ปีที่แล้ว

      Me too! It raises FileNotFound: None error

  • @luizgarcia3878
    @luizgarcia3878 ปีที่แล้ว

    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

  • @kemalkartal366
    @kemalkartal366 ปีที่แล้ว

    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?

  • @AbdulAziz-cj4hg
    @AbdulAziz-cj4hg 3 หลายเดือนก่อน

    Im a complete beginner, studied in art and design school, is there any recomendation that will guide me step by step learning about terms and all?

  • @aryachowkekar2769
    @aryachowkekar2769 2 หลายเดือนก่อน +1

    TypeError: unhashable type: 'numpy.ndarray' (Having this error in custom training process)

    • @Roboflow
      @Roboflow  2 หลายเดือนก่อน

      Could you give me a bit more detail? When is that problem occuring?

  • @fatmanursefer1482
    @fatmanursefer1482 9 หลายเดือนก่อน

    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.

  • @fatihcihantaskin6328
    @fatihcihantaskin6328 ปีที่แล้ว +1

    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?

    • @Roboflow
      @Roboflow  ปีที่แล้ว

      Hi! Are you using our notebook for training with no changes other than your dataset? Do you use dataset loaded from Roboflow?

    • @fatihcihantaskin6328
      @fatihcihantaskin6328 ปีที่แล้ว +1

      Yes im using dataset from roboflow. Everything same except dataset. But i have a error.

    • @Roboflow
      @Roboflow  ปีที่แล้ว

      @@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.

  • @728239
    @728239 10 หลายเดือนก่อน

    What is the best way to resize images to 640x640? Is it stretching or resizing keepeing proporions?

  • @navedmeraz5748
    @navedmeraz5748 ปีที่แล้ว

    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?

  • @hchattaway
    @hchattaway ปีที่แล้ว +1

    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!

    • @SkalskiP
      @SkalskiP ปีที่แล้ว +1

      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.

    • @hchattaway
      @hchattaway ปีที่แล้ว

      @@SkalskiP oh! YOLO is written in pytorch! Didn't know that... So no other separate processing by pytorch is needed, thanks!

  • @iyshwaryakannan6677
    @iyshwaryakannan6677 ปีที่แล้ว

    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

  • @omerkaya5669
    @omerkaya5669 ปีที่แล้ว

    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?

  • @ikramessafi9560
    @ikramessafi9560 5 หลายเดือนก่อน

    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

  • @AkankshyaParida-z1m
    @AkankshyaParida-z1m 2 หลายเดือนก่อน

    i am getting error again and again if i use any other dataset
    , my epochs are not running only.. suggest what to do

  • @mohammadhaadiakhter2869
    @mohammadhaadiakhter2869 ปีที่แล้ว +1

    Did you use pre-train model on COCO dataset and just updated the weights or did you actually created a new instance YOLOv8?

    • @Roboflow
      @Roboflow  ปีที่แล้ว

      Hi! If I understand your question correctly, you ask if we used transfer learning or not?

    • @mohammadhaadiakhter2869
      @mohammadhaadiakhter2869 ปีที่แล้ว +1

      @@Roboflow No no, it was something else, but now I am encountering the same error as Rachaer CR ERROR-Error executing job with overrides
      I also used my own dataset.
      Please help

    • @Roboflow
      @Roboflow  ปีที่แล้ว

      @@mohammadhaadiakhter2869 could you create a issue here: github.com/roboflow/notebooks/issues? It would be great if you could include link to your version of notebook.

    • @mohammadhaadiakhter2869
      @mohammadhaadiakhter2869 ปีที่แล้ว +1

      @@Roboflow Just one more thing
      from ultralytics import YOLO
      model = YOLO("yolov8n.pt")
      import cv2
      import numpy as np
      cap=cv2.VideoCapture(0)
      while cap.isOpened():
      ret,frame=cap.read()
      results=model(frame)
      cv2.imshow('frame',np.squeeze(results.render))
      if cv2.waitKey(10)& 0xFF==ord('q'):
      break
      cap.release()
      cv2.destroyAllWindows()
      I am encountering an OS error, any idea how to solve it?

    • @Roboflow
      @Roboflow  ปีที่แล้ว

      @@mohammadhaadiakhter2869 is that your help request here: github.com/roboflow/notebooks/discussions/44

  • @צדוקאברהם
    @צדוקאברהם ปีที่แล้ว +1

    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

    • @Roboflow
      @Roboflow  ปีที่แล้ว

      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.

  • @aleksandramelnik4862
    @aleksandramelnik4862 ปีที่แล้ว +3

    It was soooo helpful! Thank you!

    • @Roboflow
      @Roboflow  ปีที่แล้ว +1

      I love to hear that!

    • @kelemawiguzo9611
      @kelemawiguzo9611 3 หลายเดือนก่อน

      @@Roboflow could you do the same for OneFormer pls.

  • @blackwhalestudio
    @blackwhalestudio ปีที่แล้ว +1

    if you want to seperate the teams would you do that in the labelling (annotation) when preparing the dataset or later in the algorithm based on for example the jersey color? Thanks for the great video!

    • @red-bluelife
      @red-bluelife ปีที่แล้ว

      Yes, you would need to do the annotation, but the model will predict poorly on new teams.

  • @roni1422
    @roni1422 ปีที่แล้ว +1

    how can we dowload the final models from the notebook for using in pycharm?

    • @Roboflow
      @Roboflow  ปีที่แล้ว +1

      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.

    • @roni1422
      @roni1422 ปีที่แล้ว

      @@Roboflow can you explain how to set the runs directory please? for exaple ,my google drive. what is the relevant command?

  • @tzadokavraham
    @tzadokavraham ปีที่แล้ว +2

    hi,how can i download the results from the colab?

    • @Roboflow
      @Roboflow  ปีที่แล้ว

      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.

  • @hiteshpradhan4246
    @hiteshpradhan4246 5 หลายเดือนก่อน

    can i make a object detection machine model just from this video or I have to watch the whole tutorial? fast replies would be appreciated!

  • @俊凱-c8x
    @俊凱-c8x ปีที่แล้ว +2

    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

  • @sujinyang4373
    @sujinyang4373 ปีที่แล้ว +3

    This video has made my DL work so much easier! Thx for the great tutorial on YoloV8 and connecting it to Roboflow workflow😊😊

    • @SkalskiP
      @SkalskiP ปีที่แล้ว

      Hi! It's peter from the video. Thats what I wanted to hear! 💜

  • @luffysenpai4243
    @luffysenpai4243 ปีที่แล้ว +2

    does anyone know how to make the program detect in real time instead of detecting videos or images?

    • @北极-q4j
      @北极-q4j 7 หลายเดือนก่อน

      i also want to know😂

  • @Himanthkumarpanga
    @Himanthkumarpanga ปีที่แล้ว

    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

  • @jpatrx
    @jpatrx ปีที่แล้ว +1

    keep getting a failed upload of my model. what could be the problem?

    • @Roboflow
      @Roboflow  ปีที่แล้ว

      For now, you can only have one model per dataset version. Do you already have some model tied to your dataset version?

  • @tonyzedlav
    @tonyzedlav 5 หลายเดือนก่อน +1

    would higher epochs on training mean higher accuracy?

    • @Roboflow
      @Roboflow  5 หลายเดือนก่อน

      It may be more tricky. If you train for too long, you might overfit your model. Especially if your dataset is small.

    • @tonyzedlav
      @tonyzedlav 5 หลายเดือนก่อน

      @@Roboflow thank you, what would be your suggested number of epochs?

  • @AmaBaidoo
    @AmaBaidoo ปีที่แล้ว +1

    Please how can I edit the code to count the number of objects detected instead of just drawing boxes?

    • @Roboflow
      @Roboflow  ปีที่แล้ว

      We will do exactly that tutorial on Monday or Tuesday

  • @CantPickTheNameIwant
    @CantPickTheNameIwant ปีที่แล้ว

    It always glitching on my machine because of dependencies conflict: numpy, pandas versions for v8, and pycocotools for yolo nas

  • @farhanriyandi8791
    @farhanriyandi8791 11 หลายเดือนก่อน

    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'

    • @Freezebiii
      @Freezebiii 9 หลายเดือนก่อน

      Same issue

  • @sathwiksathish2242
    @sathwiksathish2242 ปีที่แล้ว

    Hey man! Still trying to figure out where you drag and dropped the images from.If anybody knows,do let me know. Thanks in advance :)

  • @wordpreneur6059
    @wordpreneur6059 10 หลายเดือนก่อน

    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?

  • @moazamadrees5409
    @moazamadrees5409 ปีที่แล้ว +2

    hey how
    can we use our own weights file it's generated in PT extension?

    • @SkalskiP
      @SkalskiP ปีที่แล้ว

      Hi it is Peter from video :) What would you like to do with them? Deploy in Roboflow? ;)

    • @moazamadrees5409
      @moazamadrees5409 ปีที่แล้ว +1

      @@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?

    • @SkalskiP
      @SkalskiP ปีที่แล้ว +1

      @@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?

    • @moazamadrees5409
      @moazamadrees5409 ปีที่แล้ว

      @@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

    • @kaka0199
      @kaka0199 ปีที่แล้ว +2

      Im looking for that answer to
      Have you found a solution?

  • @HashirAKhan
    @HashirAKhan ปีที่แล้ว +1

    My question is, once we train on custom classes will Yolo only predict those classes or the pre-existing classes in Yolo will also be there in our predictions?

    • @Roboflow
      @Roboflow  ปีที่แล้ว

      It will only detect the new classes.

    • @HashirAKhan
      @HashirAKhan ปีที่แล้ว +1

      @@Roboflow so how can we add custom classes to yolov8?

    • @Roboflow
      @Roboflow  ปีที่แล้ว

      @@HashirAKhan so you want to keep the old and add new?

    • @HashirAKhan
      @HashirAKhan ปีที่แล้ว

      @@Roboflow yes exactly! Like keep the old classes and add the new ones.

    • @HashirAKhan
      @HashirAKhan ปีที่แล้ว +1

      @@Roboflow So basically reinforcement learning, using the old weights and new weights, do you have any tutorial on that?

  • @aswath_tamilan
    @aswath_tamilan ปีที่แล้ว +1

    i cant access the ultralytics command line to further process

    • @Roboflow
      @Roboflow  ปีที่แล้ว

      Could you give me a bit more detail?

    • @aswath_tamilan
      @aswath_tamilan ปีที่แล้ว +1

      @@Roboflow i can't access that ultralytics page and set of commands on colab .

    • @Roboflow
      @Roboflow  ปีที่แล้ว

      @@aswath_tamilan could you create bug report here: github.com/roboflow/notebooks/issues and describe your issues?

    • @aswath_tamilan
      @aswath_tamilan ปีที่แล้ว

      @@Roboflow ok

  • @rachealcr6752
    @rachealcr6752 ปีที่แล้ว +1

    is that possible for the yolov8 train model to implement in MATLAB?

    • @Roboflow
      @Roboflow  ปีที่แล้ว +1

      I’m afraid not.

  • @robinchriqui2407
    @robinchriqui2407 ปีที่แล้ว +2

    Thank you very much it worked very well with my own custom dataset, I have a question how do you download the result on the video?

    • @Roboflow
      @Roboflow  ปีที่แล้ว

      You mean from Colab?

    • @robinchriqui2407
      @robinchriqui2407 ปีที่แล้ว +1

      I just had save and it worked, yes from collab

    • @omerkaya5669
      @omerkaya5669 ปีที่แล้ว

      Could you send the video? predict part is not coming.

    • @Roboflow
      @Roboflow  ปีที่แล้ว

      @@omerkaya5669 could you be a bit more specific?

    • @omerkaya5669
      @omerkaya5669 ปีที่แล้ว

      @@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.