Object Detection Using YOLO v4 on Custom Dataset | Practical Implementation

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

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

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

    Thank you so much!
    Your setup video with 1 line command and this tutorial on training yolo worked perfectly 1st try for me 🎉
    I used LabelImg for annotations instead tho.
    Best teacher out there for YOLO :)

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

    Hey Aroshi, I want to thank you.
    you saved me in the final year project❤

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

    mam, your way of teaching is Exellent, Ossm

  • @CodeWithAarohi
    @CodeWithAarohi  3 года назад +9

    You can use LabelIMG tool for Annotation. It is easier to annotate images in yolo format with it.

    • @hasibulislamsquads513
      @hasibulislamsquads513 3 года назад

      How to use?

    • @hasibulislamsquads513
      @hasibulislamsquads513 3 года назад +1

      Mam you said that After running the precess.py file we wil get train.py and text.py file.But I am not getting those file after run process.py.....
      I follow all the procedure that you given ... But HereI am getting error ..please help

    • @hasibulislamsquads513
      @hasibulislamsquads513 3 года назад +1

      Mam you said that After running the precess.py file we wil get train.py and text.py file.But I am not getting those file after run process.py.....
      I follow all the procedure that you given ... But HereI am getting error ..please help

    • @CodeWithAarohi
      @CodeWithAarohi  3 года назад

      @@hasibulislamsquads513 aarohisingla1987@gmail.com

    • @suchakbarik-0812
      @suchakbarik-0812 3 года назад

      How many classes do we need to give while using LabellImg

  • @vikramreddy5631
    @vikramreddy5631 3 года назад +2

    Most awaited video ...thanks so much mam for the video ...

  • @darshan2678
    @darshan2678 3 года назад

    best explanation on internet on yolo model thank u so much.

  • @Sunil-ez1hx
    @Sunil-ez1hx 7 месяцев назад

    Superb video maam

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

    Kudos for this content

  • @ganeshchalamalasetti2884
    @ganeshchalamalasetti2884 3 года назад

    Thank you very much Aarohi for making up this video. Very useful.

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

    thanks it's great tutorial
    but i wanted to ask if there's a way to work with yolov4 locally in vscode or in jupyter?

  • @Nirex_
    @Nirex_ 3 года назад +2

    Thank you for the amazing tutorial, you left nothing uncovered! I wish I could have subscribed and liked more than once!

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

    Hii mam .We tried as same as your way but at last while prediction imshow it just giving same image as output without any bounding box and prediction class..Can you pls help on this

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

      If you are not getting any bounding boxes that means you model is not yet trained for recognizing the objects. You need to run more more epochs for training. You can also try to increase the number of images if your dataset is small.

  • @venkatesanr9455
    @venkatesanr9455 3 года назад

    Thanks for your efforts and for sharing your knowledge

  • @danithmihiran5271
    @danithmihiran5271 3 года назад

    Thank you so much.. Explain clearly..

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

    Thak you very much! Is this implementation similar to yolov4 in darknet please? Or your implementation is different?

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

      This implementation is yolov4 in darknet framework only

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

      @@CodeWithAarohi Thank you. Can you please implementation from scratch of YOLOv4 using PyTorch if possible?
      I guess what you did is data augmentation for the dataset and then you used a YOLOv4 implementation from darknet?

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

    Hello sir
    Good work , i have a question the labels of yolov5 is it the same in yolo v4 and yolov3 italk about annotation ( the file.txt)
    i hope to answer me
    Thanks.

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

    Hi Aarohi, thank you for the video.
    Wondering I used Git clone to download bbox-label-tool package, but inside it I could not see the three files you said "bbox tool""convert""and proces", wondering if they have been removed? thank you.

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

      Maybe. I haven't used this tool after this video. So no idea.

  • @DileepJ-j2g
    @DileepJ-j2g Год назад +1

    Hi Aarohi, It's an excellent effort to share your knowledge. Nice Video. I was working on the same. I could not able to train my model. I am using windows 10 Operating system. i got this error.: ./darknet: error while loading shared libraries: libcuda.so.1: cannot open shared object file: No such file or directory. Can you please help me to sort out this problem

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

      Please check this video for darknet installation: ruclips.net/video/MEB0SEgmtKg/видео.html

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

      I am getting the same error. Could you please tell me what you did to rectify it ?
      it's urgent for me. could you please tell me?

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

    Hi Aarohi, is it okay that have an image for laptop called 1.jpg and an image for phone called 1.jpg or is this an issue because both classes images will be combined in the multiple images folder. Should the names of the images not overlap? For example is 1_phone.jpg and 1_laptop.jpg a better way to go? Thank you and great video!

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

      1_phone.jpg and 1_laptop.jpg is a better way

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

    Thank you for the wonderful video.I have a a question... How to get the bounding box coordinate in predicted image ?

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

    When selecting folder for annotation, it was not displaying picture for bounding boxes.Then how should i get the coordinates of my picture mam

  • @servicepeinture
    @servicepeinture 3 года назад

    Thank you Ms aarohi for your efforts

  • @yeongjong9395
    @yeongjong9395 3 года назад +2

    Thanks for the video! I have a question here, as we know YOLO pre-trained weights are trained on the COCO dataset right, but in my case I am only interested in a few classes only from the COCO dataset and I have a few custom object dataset. During custom object detector training, do I need to include images of those few classes (from the COCO dataset) as well? Thanks!

    • @CodeWithAarohi
      @CodeWithAarohi  3 года назад +2

      if you want to perform object detection on the objects which are present in coco dataset and you have pretrained weights on full coco dataset.Then there is no need to have training dataset because you already have weights and you can add code while detection that you want to detect specific classes only.

    • @yeongjong9395
      @yeongjong9395 3 года назад

      @@CodeWithAarohi just to clarify, once we train YOLO on our own custom dataset with pre-trained weights, we can specify which classes to detect using code including those classes in the coco dataset? is that right? Thanks!

    • @CodeWithAarohi
      @CodeWithAarohi  3 года назад +1

      @@yeongjong9395 right

    • @AllahKbiir
      @AllahKbiir 3 года назад +2

      this actually should be possible, I mean downloading for example 1000 image for given costume classes such as 'car bus tree ....'

    • @laibakhan4067
      @laibakhan4067 3 года назад +1

      Dear I have the same question, so if u have the solution plz can u share....

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

    Mam I am doing fake or real logo detection project with the help of yolo4 algorithm. Can u please suggest me which yolo version is better? for my project

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

      Try to work with yolov8 or yolov9 or YOLO-NAS. YOLOv9 is good for small object detection and for the objects which are farther from camera.

  • @shankn3520
    @shankn3520 3 года назад

    Thanx, for this wonderful video, Do we have option to get coordinates of the detected objects in yolov4 or yolov5.

    • @CodeWithAarohi
      @CodeWithAarohi  3 года назад +1

      Never tried that so don't know right now

    • @shankn3520
      @shankn3520 3 года назад

      @@CodeWithAarohi Thanks for your prompt reply.

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

    Ma'am, How to evalute YOLOV4 after training with multilables?

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

    Thanks Mam for this detailed video.
    I am working on an object detection problem where it is required to detect objects at two levels. At the first level, it has classes and at the second level, it has subclasses. For example, classes are birds or animals or flowers. And subclasses for animals are e.g., dog, cat or lion. For subclass level detection, it is required to add extra CNN and Dense layers to the subclass level detection. In the present YOLOv4, I am not able to update the neural network layer architecture.
    Kindly guide in implementation. Thanks in advance.

  • @lokusharma-he6ec
    @lokusharma-he6ec Год назад

    hi mam,
    how can i increase the font size of the label? because they are not readable, so want to increase

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

    Thank you great explanation 🤡

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

    Hi ma'am while training the model I am getting the wrong annotation error. Plz, help me out here. thanks!

  • @АлексейВикторов-ы6ц

    Thanks for this best guide ma'am. Do you know where I may find coco dataset with txt-files like in piford in the video? (mean files with info like )?

    • @CodeWithAarohi
      @CodeWithAarohi  3 года назад

      You can check the official site of coco dataset. There you will get it but not sure

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

    Thank you madam for this tutorial, its very useful
    I have question about prediction using video as input
    When i put the path of the video, it display this message ( cannot load image)
    How can i resolve this problem please

  • @SourabhSoni-fh4gu
    @SourabhSoni-fh4gu Год назад

    Weights are not setting up in backup folder. Not getting weights anywhere. ,How to resolve

  • @SwathiShanmugam-t2y
    @SwathiShanmugam-t2y 7 месяцев назад

    Hi mam I tried to train my model but its showing the error as darknet error location. Is there any way to resolve it mam

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

    Nice tutorial..
    I want to run object detection in raspberry pi .what will be changes

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

      Glad my video is helpful and I never executed this on raspberry so no idea.

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

    God bless you

  • @motofriend-vlog8566
    @motofriend-vlog8566 Год назад

    so how does it works with the live detection when Using the CCTV with this ? do we need to create the files for that too

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

      Provide the path(url) of your cctv in source

  • @evandrocardozo62
    @evandrocardozo62 3 года назад +1

    Thanks for the video. Great content!.. I have a question... what if I’m interested on performing object detection on both object classes in the same picture, that is, phone and laptop? What would’ve changed from data prep to model setup? Thanks!

    • @CodeWithAarohi
      @CodeWithAarohi  3 года назад +2

      Process will be same.

    • @evandrocardozo62
      @evandrocardozo62 3 года назад +1

      @@CodeWithAarohi Thanks for your reply! I still have trouble on trying to set up the files directories for such task.. Let's say I have a tree structure like this:
      train:
      -class 1
      --study A
      --- picture_1.png
      --- picture_2.png
      ...
      --study B
      --- picture_1.png
      ---picture_2.png
      -class 2
      -- study C
      --- picture_n.png
      - class 3
      -- study
      --- pictures.png
      the task would be to classify a study in one of the classes based on multiple images input. Each study in this case is a sample. The output should be class 1, 2 or class 3, based on the n images I used as input for a specific Study. Do you know what I mean?

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

      @@evandrocardozo62 Did you got your problem solved if yes I have same project and I am confused like hell can you drop your github reposetry for same

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

    Thank you ma'am.. useful video it help me alot, I appreciate your efforts
    There are two types of images:
    1- One image with one object
    2- One image with multiple objects.
    In this video you deal with the first type. Is it same for the second type? Or how to train images using yolov4 that contained multiple objects? Please, I need your help

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

      Process is same for the second type also

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

      How to evaluate the multiple classes per image..please I need your reply

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

    Hey
    Thanks for the vídeo, But What should i do if my dataset isnt in coco classes? I need to train a yolo model to detect helipads

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

      When you want to use yolo algorithm, your algorithm should be in the format which yolo accepts. You need 1 txt file for 1 image. This txt file will have the annotation detail of that particular image. you can use labelImg tool for annotations

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

    why the label folder in data folder is not being deleted.
    while training it generates a warning that label cannot load it may be for ms coco

  • @zakariasaidi2191
    @zakariasaidi2191 3 года назад +1

    Hi Ms #Aarohi thankyou for you're tutorials, it worked for me. but how can we use the yolov4 weights obtained in python tensorflow and keras.

    • @CodeWithAarohi
      @CodeWithAarohi  3 года назад

      You need to load the weights. Call the model and then upload the weights

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

    how i could use yolo4, yolo5 in two stages detection and classification person accesserois?

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

    Hi Aarohi, I am new in Data Science. I am working on a object detection project where I need to detect the container numbers. Could you please tell me which steps I need to follow to do this. Thanks

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

      Train your algorithm for different numbers. First collect the data for different numbers. Then annotate the dataset. After that train your model.

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

      @@CodeWithAarohi Thank you so much for your response.

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

    Hello mam, after 55.54 I didn't get train and test files, can we connect through something because this project is really important to me.

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

      Copy the code of process.py in your colab notebook and then execute it

  • @danianiazi8229
    @danianiazi8229 3 года назад

    Wrong annotation: x = 0, y = 0, < 0 or > 1, file: data/piford/14.txt
    Wrong annotation: x = 0, y = 0, < 0 or > 1, file: data/piford/8.txt
    Wrong annotation: x = 0, y = 0, < 0 or > 1, file: data/piford/267.txt
    Wrong annotation: x = 0, y = 0, < 0 or > 1, file: data/piford/48.txt
    Wrong annotation: x = 0, y = 0, < 0 or > 1, file: data/piford/243.txt

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

    mam i am training my model on 150 images (80% train) for one class only, i ran for 4 hours with these configuration values, now i am not getting any output, no predictions are made. if i do thresh -0, many 0% are detected filling up all the predicted image with pink boxes, during training i keep on getting 100% in map value, i am running on google colab
    width=320
    height=320
    channels=3
    momentum=0.949
    decay=0.0005
    angle=0
    saturation = 1.5
    exposure = 1.5
    hue=.1
    learning_rate=0.001
    burn_in=1000
    max_batches = 6000
    policy=steps
    steps=4800,5400

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

    thank you so much, but i have one question .. where should i upload process.py ? in piford folder or in darknet? i tried uploading it in both but it doesn't work

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

      In darknet folder. Also change the path of current_dir, file_train , file_test variable in process.py file

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

      @@CodeWithAarohi Hello Ma'am, can I keep anywhere inside the darknet folder? And where and how to change the current_dir and all?

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

    HI Aarohi, I was wondering if its possible to store the already trained model, like the one in your video, into a python object model so that it can be pickled?
    I tried to find multiple ways to save the architecture, state and weights of the model but had no success.

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

    When selecting a picture containing folder for annotation ,it will showing no items match your search though it is in the same folder in files. what should I do? Mam

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

      You just press ok and images will open

  • @jaysoni7812
    @jaysoni7812 3 года назад

    Instead of this three files can we use labelimg software for annotation i think it's easy and time saving process.

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

    Hi mam, thank you for details explanation of the whole process. Do you have any specific script for converting XML format to YOLO format for the annotation file? It would be really helpful. Thank you

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

    Mam why low resolution images are not working on this method??

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

    Mam I'm this getting error "" [Errno 2] No such file or directory: '/mydrive/yolov4"" when I execute this command ➡%cd /mydrive/yolov4.
    I have created folder with name "yolov4". but the command is not executing. what should I do now?

  • @jithinm6762
    @jithinm6762 3 года назад

    predicted image shows same as the input test image..i think number of epochs should be increased....how can we do that??please help

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

    In Which Folder Do I Have to upload Process.py File or folder Please let me know

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

    mam i use jupyter notebook pls guide me to how to train my algorithm

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

    mam after creating dataset while mounting to drive at timeline 32:54 i am getting the following error for the command ln-s/content/gdrive/my/Drive/mydrive
    /bin/bash: ln-s/content/gdrive/my/Drive/mydrive: No such file or directory or ln: invalid option -- 'c'
    Try 'ln --help' for more information. please help me proceed further thanks in advance

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

    Hi professor, I need your help in my project,
    the work consists in the manual annotation of all the nuclei positions and extensions (via a classical bounding box) in a series of images scanned with 40x magnitude. This work will help us in the development of a novel algorithm for nuclei detection via YOLO neural network model, I’m waiting for your answer

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

      Hi, Please mail me your exact requirement at aarohisingla1987@gmail.com

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

    i do not know why i can not save the weights in the backup folder....whole code is running fine bt the issue is that i do not get the weights

  • @yasminbanu2597
    @yasminbanu2597 3 года назад

    mam thank you so much its very clear and easy to understand. but i have one doubt . if I want to train thousands of images then do we have to use the annotation tool manually for every image ? its time consuming know mam any solution for that?

    • @CodeWithAarohi
      @CodeWithAarohi  3 года назад

      You have to annotate all the images manually.

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

      Just work on public datasets provided by Kaggle and etc.

  • @namith1984
    @namith1984 3 года назад +1

    Thanks for the video..Can you pls make a video about model evaluation part(IoU & mAP) for this project or for previous YoloV3 project.

    • @CodeWithAarohi
      @CodeWithAarohi  3 года назад +1

      Sure will do soon

    • @suhasmadupuri8168
      @suhasmadupuri8168 3 года назад

      @@CodeWithAarohi hi aarohi can I get the files for all the versions of yolo that you have implemented please

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

    as per following the steps there are two darknet folder, one inside the other. the second darknet folder is where process.py should be pasted. But after doing that, running it on collab shows, cant open , no such directory exists,
    i.e , its not detecting process.py
    Also current_dir and other dir are to be changed , what location address should be put in there?
    also please share the roadmap pdf of this whole process, as it becomes lot easier to process what all is going on

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

      you can put the process.py file anywhere but check if the paths are correct of you your dataset folder and also set the path where you want to have your train.txt and test.txt file.

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

      @@CodeWithAarohi where to set the path in the process file ? thoda specefic plz i am beginner

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

      @@CodeWithAarohi Can you please say where to change the path?

  • @JGamonalLara
    @JGamonalLara 3 года назад

    hi! thanks for the video! i have a question btw, how do i prepare a image dataset that have lots of different resolutions?

    • @CodeWithAarohi
      @CodeWithAarohi  3 года назад

      You can resize them to one size using opencv.

    • @JGamonalLara
      @JGamonalLara 3 года назад

      @@CodeWithAarohi i have to do that before labeling?

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

    Excellent tutorial. Can you share the presentation also for reference ?

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

    Thankyou soo much for this video ma'am and While executing training code I am getting this error "Couldn't open file: data/names.list" can you please help me with this.

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

      You are using wrong file names. There are 2 files, 1 with the extension .data and other file with the extension .names . There is no file with the extension .list

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

      @@CodeWithAarohi Thankyou soo much for your reply Ma'am and I checked everything again but I am still getting this error
      "names: Using default 'data/names.list'
      Couldn't open file: data/names.list"
      Which default value this error is talking about.

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

    While training and testing data I'm having the error couldn't open file: data/names.list even the path is correct.. please help

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

    how will the process file run
    and create weight file

  • @praghyathakre7559
    @praghyathakre7559 3 года назад

    Hi Aarohi, need to detect logo from different different invoices and want train model for that. plz help me out ow I can achieve that.

    • @CodeWithAarohi
      @CodeWithAarohi  3 года назад

      Create a dataset (Images of Invoices with Logo) in the format which yolov4 accepts. And then train the algorithm as I have shown in this video.

  • @danianiazi8229
    @danianiazi8229 3 года назад

    Can you share the presentation will us ? It will help to follow the steps your explaination is wonderful

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

    Nice explanation 👌 maam can you please tell me how to run yolov4 for 300 epochs actually i am comparing yolov5 with yolov4 and i ran yolov5 for 300 epochs so how can i compare map of both

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

    Hi mam, Training in google colab takes too much time. Is there any easy method by the system gpu

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

      Yes you can setup the darknet framework on your PC and can run the algorithm on System GPU

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

    Please is YOLOV4 not working in PNG ? until i change every pictures to JPG before i can get my convert.jp

  • @GuillaumeFaure-g4v
    @GuillaumeFaure-g4v Год назад

    Hello Aarohi,
    I am working on customizing YOLOv4, but I have encountered an issue. Some of my images are not independent and must be grouped together in either the training or testing set. In order to address this, I would like to modify the 'split_data' function in data.c. However, I am unable to determine which images should be grouped together without accessing their file paths, but I am unsure where to locate this information in the code. Additionally, I am curious as to how the images are associated with their respective filenames.
    Thank you for your assistance.

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

      In YOLOv4, the image file paths are typically stored in a text file that is used as input to the training process. The split_data function in data.c is responsible for splitting the image file paths into training and testing sets, so modifying this function is a good approach to address your requirement to group certain images together.
      To access the file paths of the images, you can modify the get_paths function in data.c. This function reads the image file paths from a text file and returns them as an array of strings. You can modify this function to also read in additional information, such as a grouping identifier, from the text file and store it in a separate array. For example, you can modify the text file to include a second column with a grouping identifier for each image, and then modify the get_paths function to read in this column and store it in a separate array.
      Once you have the grouping information for each image, you can modify the split_data function to ensure that images with the same grouping identifier are grouped together in either the training or testing set. One approach is to modify the function to split the images into groups based on their grouping identifier before performing the random split into training and testing sets. You can then merge the groups together to form the final training and testing sets.
      As for how the images are associated with their respective filenames, this is typically done by including the file path of each image in the text file used as input to the training process. The load_data function in data.c reads in this text file and uses the file paths to load the images into memory for training. The data struct in data.c contains an array of image structs, each of which contains a char *filename member that stores the file path of the image. This allows the training process to associate each image with its respective filename.

    • @GuillaumeFaure-g4v
      @GuillaumeFaure-g4v Год назад

      @@CodeWithAarohi Thank you very much for your answer , it's working !

  • @Bulbul-rm7ez
    @Bulbul-rm7ez Год назад

    mam image is not displayed I used absolute path but image is not display

  • @vimalramesh2092
    @vimalramesh2092 3 года назад

    Why didn't we use Labelimg tool, I feel it's way easier than bbox since it comes with an option to save annotations in yolo format.

    • @CodeWithAarohi
      @CodeWithAarohi  3 года назад

      No Specific reasons :) And yes labelIMG is easier to use.

  • @pudinanno
    @pudinanno 3 года назад +2

    Thanks Ma'am, unable to execute after process.py, will you plz guide me on that.
    Error: There is no data/test.txt file for mAP calculation!
    Don't use -map flag.
    Or set valid=data/train.txt in your data/Multiple_images.data file.

    • @CodeWithAarohi
      @CodeWithAarohi  3 года назад

      When you will execute process.py. After that you will get train.txt and test.txt. Check the path which you have defined in process.py file. You will get tyou rtrain.txt file and test.txt file there

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

      @@CodeWithAarohi thank you so much for this tutorial , i am also suffring from the same problem when i execute this commande

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

      please how to solve this problem
      i am soo need the answer plz

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

    does all annotation values need to be within (0 and 1)

  • @motaherhossain5851
    @motaherhossain5851 3 года назад

    Mam is it mandatory to install jupitar notebook to do this task? Can i just use colab for this?

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

    Hello, with which command can I detect object on all photos in a particular folder in yolov4? I want it to be done one by one in all the photos one after the other.

  • @almazvildanov9990
    @almazvildanov9990 3 года назад

    I ran the code with your pictures of laptops and phones. As a result, there is no frame on the test picture. Your video at the end in predictions.jpg also lacks a frame. Is it because there are very few images for training? Or the coordinates are written randomly?

    • @CodeWithAarohi
      @CodeWithAarohi  3 года назад +1

      Coordinates are written randomly. Sorry for that. I just created this small dataset for teaching Mask RCNN. Main intent here in this video is to make my Subscribers understand how Mask RCNN works.

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

      @@CodeWithAarohi i didn't understand "Coordinates are written randomly."
      can you explain

  • @AyazKhan-hu1so
    @AyazKhan-hu1so 3 года назад +1

    when i run this code in colab it gives me empty file as train.txt having no paths to the images
    images_list = glob.glob("data/obj/*[jpg|png|jpeg]")
    print(images_list)
    # Create train.txt file
    file = open("data/train.txt", "w")
    file.write("
    ".join(images_list))
    file.close()

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

      Upload 'process.py' in data folder and make sure 'process.py' has correct path setup

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

    mam this GitHub link is not working for the bbox tool!

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

      use labelImg tool. You ca install it with : pip install labelImg

  • @praveenreddy1767
    @praveenreddy1767 3 года назад

    thanks madam. Can you tell me which file contain main code ? Like complete model training?

  • @NavneetKaur-im9ub
    @NavneetKaur-im9ub 2 года назад +1

    Heyyy Mam. Thankyou soo much for this amzing tutorial. I m not able 2 recieve train.txt nd test.txt files by running !python process.py

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

    my annotated data is in .xml file type instead of being .text file.. what should I do maam?

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

    we need to annonate every single image through labellmg, it there any way we could directly get .txt for all images ?

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

      You need to annotate all the images

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

      @@CodeWithAarohi okay thank you I did it for all the images. Having an error from !./darknet detector train data/piford.data cfg/yolov4-custom.cfg yolov4.conv.137 -dont_show -map...as
      loading weights failed because it can't open file yolov4.conv.137
      can u share this ?

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

      It started trainning, I have 1100 images and converted all them into .txt file. It is showing 395 hours in trainning and executing... how much time will it take ?

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

    Mam, how I can find accuracy of the model?

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

    madam,
    is there any problem if i use another cfg file;yolov4_new.cfg
    it contains 3 yolo layers.
    it was modified 5 months ago.

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

    Cctv camera ko yolov7 se kese connect kre

  • @adityachache
    @adityachache 3 года назад

    can I use this on the ExDark dataset because it has the same format of annotations used for yolo

    • @CodeWithAarohi
      @CodeWithAarohi  3 года назад

      Yes, If the format is similar then you can use

    • @adityachache
      @adityachache 3 года назад

      @@CodeWithAarohi Thanks for the code ma'am I was able to train the model on the ExDark dataset with only 2 classes but the results were incredible. The only thing was that my default annotations had some problem in it so I created the annotations again on roboflow but other than that the model was able to predict very well

    • @CodeWithAarohi
      @CodeWithAarohi  3 года назад

      @@adityachache great 👍

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

    Mam the error coming for me is " 122 Darknet error location: ./src/parser.c, parse_convolutional, line #208
    Layer before convolutional layer must output image.: Success"

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

      The error message "Layer before convolutional layer must output image" typically means that the layer before the convolutional layer is not producing an image or feature map that can be used as input to the convolutional layer.
      One possible reason for this error is that there may be a mismatch between the size of the output of the previous layer and the size of the input expected by the convolutional layer. You should check the configuration of your layers and ensure that the output of the previous layer matches the input shape of the convolutional layer.
      Another possible reason could be that the input image size is not compatible with the network architecture. You may need to adjust the size of the input image or the network architecture to ensure compatibility.
      It is also possible that the error is due to a bug or a typo in your code. You should carefully review your code and ensure that all the layer configurations are correct and that there are no syntax errors or typos.

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

    How I know the accuracy model after testing?

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

    I am getting wrong annotation for some images while executing train.txt. what shld I do mam?

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

      train.txt is just listing out the image names which are going to be used for trainings. There is nothing related to annotations.

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

    how to test my algorithm in jupyter notebook mam ...... pls help and guide me mam......

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

      You need to install the darknet framework first. You can follow github.com/AlexeyAB/darknet to run Yolo on local computer

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

    madam ek hi folder me kaam kar lena chahiye usse aapko bhi confusion na ho, half video me to aap apna hi confusion solve kar rahe ho or complete model can train using that one folder.

  • @ml_initiator722
    @ml_initiator722 3 года назад

    what if I want to train a model in which a single image contains objects of multiple categories how do I decide which category folder to keep it in

    • @CodeWithAarohi
      @CodeWithAarohi  3 года назад

      You need only 1 folder. Put all your images and related annotation files in it.

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

    I execute the process. py file but it doesn't create train & test text files. Can anyone help me? What will be the reason for it? 🤔

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

      Check the location which you have mentioned in process.py file for creating train and test.txt file

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

      @@CodeWithAarohi what is the current_dir in process.py?

  • @sumanmenon741
    @sumanmenon741 3 года назад

    hi what is the minimum and maximum number of images for a single class
    and can we do recognition using yolo ?

    • @CodeWithAarohi
      @CodeWithAarohi  3 года назад

      atleast 500 images per class

    • @sumanmenon741
      @sumanmenon741 3 года назад

      @@CodeWithAarohi and ma'am can we do recognition using yolo ?

    • @CodeWithAarohi
      @CodeWithAarohi  3 года назад

      @@sumanmenon741 Object detection and object recognition is same (Identifying objects in Images). So yes you can do recognition task with YOLO

  • @together1073
    @together1073 3 года назад

    Thanks for the video.. I want apply YOLOv4 on open source datasets, but these datasets are in different formats, like: ICDAR 2015, CTW-1500.... does there is or converter which allow us to convert each dataset format to yolo format

    • @CodeWithAarohi
      @CodeWithAarohi  3 года назад +1

      I never used ICDAR 2015 or CTW-1500. What's the format of these dataset. Then only can help you to choose the right converter

    • @together1073
      @together1073 3 года назад

      so every open dataset format should have its own converter,