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

Поделиться
HTML-код
  • Опубликовано: 23 янв 2025

Комментарии • 435

  • @AndroidDjRealEDM
    @AndroidDjRealEDM 2 года назад +14

    Finally is really simple to use for industrial projects!

  • @goodtechdoor
    @goodtechdoor 2 года назад +15

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

  • @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 3 месяца назад

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

  • @benephr
    @benephr 3 месяца назад +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 3 месяца назад

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

  • @ManuelHernandez-zq5em
    @ManuelHernandez-zq5em 2 года назад +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  2 года назад

      Could paste here a link to your dataset at Roboflow?

    • @ManuelHernandez-zq5em
      @ManuelHernandez-zq5em 2 года назад +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  2 года назад +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 2 года назад

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

  • @ozgurkan
    @ozgurkan 2 года назад +4

    You are the best. Roboflow 💙

  • @afrahthahir7179
    @afrahthahir7179 2 года назад +9

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

    • @SkalskiP
      @SkalskiP 2 года назад +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 года назад +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

  • @ML.ArtificialIntelligence
    @ML.ArtificialIntelligence 2 года назад +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 2 года назад

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

    • @mohammadhaadiakhter2869
      @mohammadhaadiakhter2869 2 года назад +1

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

    • @treudden
      @treudden 2 года назад

      same

    • @ML.ArtificialIntelligence
      @ML.ArtificialIntelligence 2 года назад

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

    • @golasa7646
      @golasa7646 2 года назад

      I got same problem

  • @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 4 месяца назад

      did you find out?

  • @ayanpaul2210
    @ayanpaul2210 2 года назад +9

    Thank you Roboflow!! Always keeps us updated🤝🤝

    • @Roboflow
      @Roboflow  2 года назад +2

      Thank you for wanting to be updated!

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

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

  • @Mc.Gucket
    @Mc.Gucket 11 месяцев назад +2

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

  • @muhammadrizwanmunawar
    @muhammadrizwanmunawar 2 года назад +7

    Nicely explained!

    • @SkalskiP
      @SkalskiP 2 года назад +2

      Thank you!

  • @anujjain4406
    @anujjain4406 Год назад +1

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

  • @shivamgoel0897
    @shivamgoel0897 Год назад +1

    Great video! very helpful to get started with Yolov8

  • @giridharidash9528
    @giridharidash9528 8 месяцев назад +4

    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.

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

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

  • @FatemehZaremehrjardi
    @FatemehZaremehrjardi 2 года назад +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 2 года назад +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 :)

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

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

  • @entertainmentvideos1281
    @entertainmentvideos1281 2 года назад +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 2 года назад

      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?

  • @sujinyang4373
    @sujinyang4373 2 года назад +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 2 года назад

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

  • @muhdirshat9858
    @muhdirshat9858 Год назад +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  11 месяцев назад

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

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

  • @narsilberkay
    @narsilberkay 2 года назад +1

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

    • @Roboflow
      @Roboflow  2 года назад

      Add save=True to your command

  • @dineshe90
    @dineshe90 8 месяцев назад +1

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

  • @aleksandramelnik4862
    @aleksandramelnik4862 Год назад +3

    It was soooo helpful! Thank you!

    • @Roboflow
      @Roboflow  Год назад +1

      I love to hear that!

    • @kelemawiguzo9611
      @kelemawiguzo9611 4 месяца назад

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

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

  • @HoAnLocK18DN
    @HoAnLocK18DN 2 месяца назад

    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.

  • @hggaming911
    @hggaming911 2 года назад +2

    Very simple and useful… Thank you so much

    • @Roboflow
      @Roboflow  2 года назад +1

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

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

  • @rohanpokale4651
    @rohanpokale4651 2 года назад +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 2 года назад

      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.

  • @Fctxxx
    @Fctxxx 2 года назад +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  2 года назад

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

    • @Fctxxx
      @Fctxxx 2 года назад +1

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

    • @Roboflow
      @Roboflow  2 года назад

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

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

  • @tryingtobeproductive
    @tryingtobeproductive Год назад +2

    easy tutorial to follow, thanks!

  • @venkatasubramaniat7163
    @venkatasubramaniat7163 2 года назад +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 2 года назад

      Me too! It raises FileNotFound: None error

  • @TerukiVAL
    @TerukiVAL 4 месяца назад

    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?

  • @צדוקאברהם
    @צדוקאברהם Год назад +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.

  • @muza886
    @muza886 2 года назад +1

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

    • @Roboflow
      @Roboflow  2 года назад +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.

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

  • @sholehuye2737
    @sholehuye2737 Год назад +1

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

  • @edumaba
    @edumaba 2 месяца назад +1

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

    • @Roboflow
      @Roboflow  2 месяца назад

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

  • @kuaranir2440
    @kuaranir2440 10 месяцев назад +1

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

    • @Roboflow
      @Roboflow  10 месяцев назад +1

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

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

  • @AjayReddy1
    @AjayReddy1 Год назад +1

    How to get the google colab file for training

    • @SkalskiP
      @SkalskiP Год назад

      Hi it is Peter from the video! If you mean link to the Notebook, it is in description bellow ;)

  • @lynguyenminhOfficial
    @lynguyenminhOfficial Год назад +1

    That is a great tutorial! Thanks sir.

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

  • @ManuelHernandez-zq5em
    @ManuelHernandez-zq5em 2 года назад +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? :)

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

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

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

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

  • @farhanriyandi8791
    @farhanriyandi8791 Год назад

    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'

  • @moazamadrees5409
    @moazamadrees5409 2 года назад +2

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

    • @SkalskiP
      @SkalskiP 2 года назад

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

    • @moazamadrees5409
      @moazamadrees5409 2 года назад +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 2 года назад +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 2 года назад

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

  • @FatinIshraq-z4f
    @FatinIshraq-z4f 11 месяцев назад

    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?

    • @Roboflow
      @Roboflow  11 месяцев назад

      Modern libraries don’t have detect.py anymore. What would you like to change?

    • @FatinIshraq-z4f
      @FatinIshraq-z4f 11 месяцев назад

      @@Roboflow I would like generate a text file which include the coordinates of the detected objects. Can you help me with that?

    • @Eigenartigsten
      @Eigenartigsten 8 месяцев назад

      @@FatinIshraq-z4f hey i need something similar have you achieved it? if yes can you explain how?

  • @AkankshyaParida-z1m
    @AkankshyaParida-z1m 3 месяца назад

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

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

  • @MrCantyousea
    @MrCantyousea 2 года назад +1

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

    • @Roboflow
      @Roboflow  2 года назад

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

    • @MrCantyousea
      @MrCantyousea 2 года назад

      ​@@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 2 года назад

      @@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 2 года назад

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

  • @ravienraj3327
    @ravienraj3327 Год назад

    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.

    • @Roboflow
      @Roboflow  Год назад

      Did you pass save=True?

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

  • @moahaimen
    @moahaimen 2 года назад +1

    how to make the predication on RUclips video, i was doing this on Yolov5

    • @Roboflow
      @Roboflow  2 года назад

      It is not working with YOLOv8 CLI?

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

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

  • @sevenscapes
    @sevenscapes 5 месяцев назад +1

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

    • @Roboflow
      @Roboflow  5 месяцев назад +1

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

  • @rachealcr6752
    @rachealcr6752 Год назад +1

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

  • @CuongLeTrung-hf3uv
    @CuongLeTrung-hf3uv Год назад

    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?

  • @jpatrx
    @jpatrx 2 года назад +1

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

    • @Roboflow
      @Roboflow  2 года назад

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

  • @fatmanursefer1482
    @fatmanursefer1482 10 месяцев назад

    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.

  • @akifakbulut765
    @akifakbulut765 Год назад +1

    What can I do to make the model I have trained to continue training again leter?

    • @Roboflow
      @Roboflow  Год назад

      resume=True I believe :)

  • @seroshmannan
    @seroshmannan Год назад +1

    how can we change the hyperparameters according to our custom dataset

    • @Roboflow
      @Roboflow  Год назад

      Do you mean hyperparameters of the model?

    • @seroshmannan
      @seroshmannan Год назад

      @@Roboflow yes

    • @Roboflow
      @Roboflow  Год назад

      @@seroshmannan you can pass your training hyperparamiters as arguments to yolo CLI

  • @watanabeyou3446
    @watanabeyou3446 4 месяца назад +1

    How to download the dataset with python?

  • @ikramessafi9560
    @ikramessafi9560 6 месяцев назад

    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

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

  • @thearpitkatiyar637
    @thearpitkatiyar637 Год назад

    What algo you are using with yolo for image detection

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

  • @tonyzedlav
    @tonyzedlav 6 месяцев назад +1

    would higher epochs on training mean higher accuracy?

    • @Roboflow
      @Roboflow  6 месяцев назад

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

    • @tonyzedlav
      @tonyzedlav 6 месяцев назад

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

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

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

  • @Anutosh13
    @Anutosh13 Год назад

    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
      @Anutosh13 Год назад +1

      plz help

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

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

  • @728239
    @728239 11 месяцев назад

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

  • @christopherstaples6758
    @christopherstaples6758 Год назад +1

    so any AMD / Radeon support ? how to run this on your own hardware instead of colab?

    • @Roboflow
      @Roboflow  Год назад

      PyTorch is supported on AMD, isn’t it?

  • @hchattaway
    @hchattaway 2 года назад +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 2 года назад +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 2 года назад

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

  • @meryem8634
    @meryem8634 Год назад +1

    thank you for great video :)

    • @Roboflow
      @Roboflow  Год назад

      Thanks a lot for watching :)

  • @muhdnajhan886
    @muhdnajhan886 8 месяцев назад

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

  • @aryachowkekar2769
    @aryachowkekar2769 3 месяца назад +1

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

    • @Roboflow
      @Roboflow  3 месяца назад

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

  • @ezpznoob8092
    @ezpznoob8092 11 месяцев назад

    I cannot use, get images not found error and missing path though I specified in yaml file already,.

    • @banterbop
      @banterbop 11 месяцев назад

      !pip install ipython
      from IPython.display import Image
      %cd {HOME}
      Image(filename=f'{HOME}/runs/detect/train/confusion_matrix.png', width=600)

    • @ezpznoob8092
      @ezpznoob8092 11 месяцев назад

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

  • @alfyanadjie8035
    @alfyanadjie8035 Год назад

    How to fix ?
    [Errno 2] No such file or directory: '{HOME}/datasets'
    /content
    /bin/bash: yolo: command not found
    Thankyou

    • @Roboflow
      @Roboflow  Год назад

      Looks like you didn’t run all the previous cells in notebook. I recommend running the notebook cell by cell.

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

  • @AggaiPanashe
    @AggaiPanashe Месяц назад

    can l create a project that can do crop counting using this

  • @janaud14
    @janaud14 Год назад

    Doesn't work for me, i have an issue for the custom training step : "(...)/data.yaml' is not a valid YOLO argument."

    • @arunesh_7
      @arunesh_7 Год назад

      Same problem

    • @Roboflow
      @Roboflow  Год назад

      Is that happening in our notebook?

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

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

  • @RAZZKIRAN
    @RAZZKIRAN Год назад +1

    thank you, useful, great content

    • @Roboflow
      @Roboflow  Год назад

      Thanks a lot!

    • @RAZZKIRAN
      @RAZZKIRAN Год назад +1

      @@Roboflow welcome sir, getting errors at code, please solve sir

    • @Roboflow
      @Roboflow  Год назад

      @@RAZZKIRAN I'm happy to help. Could you please create a thread on ours discussions page: github.com/roboflow/notebooks/discussions/categories/q-a ?

  • @meryem8634
    @meryem8634 Год назад

    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?

    • @Roboflow
      @Roboflow  Год назад

      Please follow instructions here stackoverflow.com/questions/48774285/how-to-download-file-created-in-colaboratory-workspace

  • @kewalagrawal6539
    @kewalagrawal6539 2 года назад

    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

    • @kewalagrawal6539
      @kewalagrawal6539 2 года назад

      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?

    • @Roboflow
      @Roboflow  2 года назад

      Are you using our Google Colab?

    • @kewalagrawal6539
      @kewalagrawal6539 2 года назад +1

      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

    • @narsilberkay
      @narsilberkay 2 года назад

      @@kewalagrawal6539 how did you fix it , i am trying but doesnt work.Could you please share the working predict code?

  • @navyabaireddy5920
    @navyabaireddy5920 7 месяцев назад

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

  • @CantPickTheNameIwant
    @CantPickTheNameIwant Год назад

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