YOLOv8: How to Train Objection Model with Custom Dataset

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ก.ย. 2024

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

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

    Join My AI Career Program
    www.nicolai-nielsen.com/aicareer
    Enroll in My School and Technical Courses
    www.nicos-school.com

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

      how do we want to make detection prediction classs 12:07

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

      @@faisalhazry i show that in another video on my Channel with yolov8 class

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

      Sir please make a project tutorial like this, but with classifications custom dataset on roboflow.

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

    you are always doing the best congratulations!!

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

      Thanks a lot!

  • @neeraj.kumar.1
    @neeraj.kumar.1 ปีที่แล้ว +7

    Bro pls consider only one window of yourself because many information is getting hide.

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

    one mistake or update
    in the yolo training line
    data={dataset.location} wont work so try
    source="dataset location"

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

      thankssss , more people should see thiss

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

      this works

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

      data = "dataset location"

    • @777sevenable
      @777sevenable 4 หลายเดือนก่อน

      thanks for that

  • @HarsimranKaur-h2o
    @HarsimranKaur-h2o 6 หลายเดือนก่อน +1

    Thankyou so much, Your video was short and simple and it helped me out a lot

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

      Glad it helped!

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

    It seems it does not like the reflectivity of the std cup at the end. Make sense, tricky case really, even for deepnet models. Thanks for the video, very cool nontheless. I like especially when you show stuff which do not work perfect on the webcam, that is interesting and genuine.

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

      Yeah for sure. Also the std cup was underrepresented in the dataset doe. I could have tuned some confidence score thresholds or added a tracker. It will make some false predictions when moving the camera around and when it runs with 75+ fps

  • @ANiceGuy00
    @ANiceGuy00 22 วันที่ผ่านมา

    Interesting! Can you make a tutorial on trajectory prediction with OpenCV and/or other computer vision libraries?

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

    **UPDATE**
    !yolo checks
    change content in -> data.yaml -> to
    train: ../train/images
    val: ../valid/images
    Image(filename=f'/content/runs/detect/train7/confusion_matrix.png', width=600)

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

    Hello, I love your videos and was wondering if you could make a video that covers in depth training process and datapreprocessing (such as: data augmentation, hyperparameter tuning, evolve, data vizualization etc.)

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

      Hi thanks a lot for watching! I already have videos going over all those things in my deep learning playlist

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

      Data Preprocessing is the most asked thing in this field I experienced this as an intern. I would request you to take the data and normalize and convert them to to nparrary Or do some Preprocessing. Kindly make it from a granular level

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

    Any idea on how to deploy this on a cloud server? How would you connect the cameras?

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

    Thanks for the video! Will you be making a video on training a custom dataset for segmentation on Yolo v8?

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

      I already did! Check out the second latest video

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

      @@NicolaiAI I saw thank you! What I mean is using your own dataset containing your own images. Do you maybe have a suitable tool that I can use to draw the bounding polygons for segmentation? I have used LabelImg already, but it obv is not going to cut it for instance segmentation datasets.

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

      He has already made it!!! last video

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

      @@erikpetrosyan9662 that's my bad, I clearly didn't pay enough attention. Thanks

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

    Hi, you mention around 14:26 that you exported or downloaded the model so that you could use it with the webcam, but you don't describe that process at all. How do you get the pt file with your custom-trained model from Google Collab?

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

      also still trying to figure out what happened there... solution?

    • @Luca-yt2bg
      @Luca-yt2bg ปีที่แล้ว

      i am in the same question

    • @Luca-yt2bg
      @Luca-yt2bg ปีที่แล้ว +1

      @@sevenplyy I FOUND

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

      @@Luca-yt2bg NICE! please tell me

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

      @@Luca-yt2bghow?

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

    Hi. I was actually looking for the deployment process and skipped to that chapter in your video, but it looks like only inference is being shown. Where and how is it being deployed? Using kubernetes? TF serving?

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

    thanks for the vid! can you make a video on how we can test our model for custom dataset (like a bunch of images on my local pc)?

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

      The first video I have about yolov8 I show how to use the command line for testing the Yolov8 models. I show with the webcam as the source but u can just throw in the path to the images or an image folder instead. Thanks for watching!

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

    hello sir i followed your tutorial and it worked out great! Do you have a video on how to extract the coordinates of the bounding box so i can determine the centroid of the boxes?

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

      Thanks a lot for watching! Yeah I have a video where we implement it in a custom class

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

    Great video! Just wonder how to verify the evaluation results of mAP, Precision and recall in Roboflow using the results in Google colab?

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

    awesome vidoes

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

      Thanks a lot! Really appreciate the support

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

    At 5:58 the "!yolo task=detect mode=train model=yolov8m.pt data={dataset.location}/data.yaml epochs=30 imgsz=640" command is not appearing on the notebook I copied. Should I add it manually? Also the 2 commands afterwards (start with image(filename)) are missing also from the notebook. If I run the following command (!yolo task=detect..) it fails. The error is:
    Traceback (most recent call last):
    File "/usr/local/bin/yolo", line 8, in
    sys.exit(entrypoint())
    File "/usr/local/lib/python3.10/dist-packages/ultralytics/cfg/__init__.py", line 423, in entrypoint
    getattr(model, mode)(**overrides) # default args from model
    File "/usr/local/lib/python3.10/dist-packages/ultralytics/engine/model.py", line 372, in train
    self.trainer = trainer(overrides=overrides, _callbacks=self.callbacks)
    File "/usr/local/lib/python3.10/dist-packages/ultralytics/engine/trainer.py", line 127, in __init__
    raise RuntimeError(emojis(f"Dataset '{clean_url(self.args.data)}' error ❌ {e}")) from e
    RuntimeError: Dataset '/content/Loco1-1/data.yaml' error ❌
    Dataset '/content/Loco1-1/data.yaml' images not found ⚠, missing path '/content/Loco1-1/Loco1-1/valid/images'
    Note dataset download directory is '/content/datasets'. You can update this in '/root/.config/Ultralytics/settings.yaml'

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

      same problem with me here

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

      there a duplicate 'Loco1-1' here '/content/Loco1-1/Loco1-1/valid/images', you can delete the 'Loco1-1' in data.yaml train and val

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

      Hello, where you able to fix it?

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

      @@houdabekkourialami3581 No

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

    @NicolaiAI Sir, please make a video on: how many sample or images of an object for training and then implementing, epoches, batch confidence value for achive better result. #nicolainielsen #nicolaiaI

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

      Thanks for the tip, will put that on my list of next videos to create. :-)

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

      @@NicolaiAI thanks bro keep it up

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

      @muhammadasil9374 thanks bro!👊

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

    can you provide the colab notebook

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

    I get errors when passing to Install YOLO v8: ValueError: Invalid 'mode='. Valid modes are ('train', 'val', 'predict', 'export', 'track', 'benchmark').

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

    Superb informative! 🔥 May I ask for the Colab link? 🙏

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

      Thanks a lot! All the code is available on my GitHub

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

    hey, Can you provide me a script on how to deploy yolov8 model for intel Realsense Camera. Thanks in Advance! Btw your tutorials are very helpful. Keep up with the work!!

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

      Thanks a lot man! I already have a video where we implement a custom class with the yolo model and run inference on webcam then u will just have to swap the camera

  • @AdityaKumar-lv5st
    @AdityaKumar-lv5st ปีที่แล้ว

    Where can I find the complete code for using the trained model for prediction? Its not completely visible in the tutorial video.

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

    For users who are unable to run the training process, be assured to change the data.yaml from the yolk file downloaded in the Collab. Go into the code, on the most bottom line. Change the file directory to ../xxxx/xxxx

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

      Thanks!

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

      can you show me the steps on how to do this please ?

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

      How is that?

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

    Thanks for the good video. I will follow it. Can i get the coordinates of the detection objects real time? I would like to use them as an input for another program.

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

    thanks for the video. how can i tackle a task of counting objects in a video with moving camera? specifically sea animals in a big pool so i need to scan all the pool and accumalte the numbers

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

      Thanks for watching! My tracking course with Yolov8 can exactly be used for that

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

      @@NicolaiAI t
      Does this course have support chat or something?

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

    You videos are great ,I have been trying to count people at full screen or frames using yolov8 and with no success,what are the cods to do so I

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

    I’m constantly getting “FileNotFoundError”when training please what can i do

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

    Hello! I'm having trouble while trying to fix the epochs, i get an error that there are no images in the dataset although they are in fact existing in all of the train validation and test files. How can I fix ?

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

      There are some problems with the data.yml file. Replace the paths to the correct ones in there

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

      Thank you so much. However I hvae another problem. When I run the vscode script I do get the results running in the terminal but the webcam isn't displayed. My webcam is activated and it does show up when I try functions like cv2.imshow()..

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

      Never mind it works fine now. I had to update my environement.

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

    Can you please do a tutorial video detecting potholes and crack using raspberry pi

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

    my problem is stoping the session in kaggle or google colab and my volum dataset is 4005 image can you help me pleas Because I have my graduation thesis and I don't have much time

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

    Thanks a lot. In your code, line 5, how did you export and get the .pt file? I exported from roboflow as yolov8 but I don't get any pt file.
    thanks again :)

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

      U need to train the model as i do in this video. I then show how to download the model

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

    I have some problem with my virtual environment
    I installed all the required files and when I try to import YOLO from ultralytics for example from jupyter notepad using VScode, the import gets stuck and looks like it will never finish
    Maybe some of you have had a similar problem or know what is wrong with my environment?

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

    I have trained how you do in the video but do not see how to export? can you help

  • @8PassCharlie1
    @8PassCharlie1 ปีที่แล้ว

    hey can you tell is there anything else after import detection in line 2 of the code?

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

    Thanks for this. However, the last part of the video isn't really "deploying" the model anywhere - it is about using it locally.

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

      Yes u can deploy models locally

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

    How did you get the results to save to 'runs/detect/predict/'? I have been struggling with this feat every time.

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

      It should do that automatically if u run the predict command

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

      you have to add the argument save=True

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

    I using gtx1650,and why always using cpu intel core i5 gen 10 ram 16 gb process in my detection?how to optimize?
    Anybody can explain?

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

    im getting error while training the model

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

    How do i deploy it to mobile devices using flutter?

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

    permission to learn and download dataset in roboflow sir. thank you

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

    sir if i place rtsp link instead of webcam source 0 , it freezes . Any solution for this sir.. Thank u

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

    how can I export the mode and get the path to it 14:30

  • @every-thing-is-ai
    @every-thing-is-ai ปีที่แล้ว

    tell me how to deploy yolov8 model on webcamp in colab

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

    hi, what webcam do you use in your projects

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

      I’m just using a cheap budget webcam

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

    Hi, I was struggling with the python script to use it , so, thank you very much for uploading this tutorial! 😄
    But, I still have one question, how can we deploy it using flask or some other framework?

    • @AdityaKumar-lv5st
      @AdityaKumar-lv5st ปีที่แล้ว

      HI, could you post the link to the python script for using the trained model for prediction. The complete code is not visible in video

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

    may I ask sir, what code ediitor your are using?

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

    Where can I find the Colab scripts used in this TH-cam video? Thanks.

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

      Thansk for watching! Think i deleted it when i updated the description. It is not added again. colab.research.google.com/drive/1q0GqWbYjACs9uVTjhsQfVQkfF0hhLHsq?usp=sharing

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

      @@NicolaiAI Thank you.

  • @SaurabhSingh-mu5td
    @SaurabhSingh-mu5td ปีที่แล้ว

    Hii, very good work but how can i convert output in audio form so that it can be used by blind person

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

    Hi, Where is the code at 14:25 ?

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

    @NicolaiAI thanks for the video! can I see the python code that you used in 14:25?

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

    how can tunning hyperparameters for yolov8?

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

    Hello Brother I want the output results in json format do help me

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

      If u Watch my tracking video u Can see how to extract the results

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

      @@NicolaiAI Thanks for the reply brother

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

      @@joart333 of course!

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

    thank you very much

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

      Thanks for watching! Glad that it could help u

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

    This is really amazing. I really love your video. Kindly make a video on multiple video stiching and like making it live.