Object Detection Using YOLO v4 on Custom Dataset | Practical Implementation

  Рет қаралды 102,994

Code With Aarohi

Code With Aarohi

Күн бұрын

Пікірлер: 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 :)
@CodeWithAarohi
@CodeWithAarohi 8 ай бұрын
Glad it helped!
@muhammadalisiddique4134
@muhammadalisiddique4134 9 ай бұрын
Hey Aroshi, I want to thank you. you saved me in the final year project❤
@CodeWithAarohi
@CodeWithAarohi 9 ай бұрын
My pleasure 😊
@vikramreddy5631
@vikramreddy5631 3 жыл бұрын
Most awaited video ...thanks so much mam for the video ...
@CodeWithAarohi
@CodeWithAarohi 3 жыл бұрын
welcome
@utkarshtripathi9118
@utkarshtripathi9118 2 жыл бұрын
mam, your way of teaching is Exellent, Ossm
@CodeWithAarohi
@CodeWithAarohi 2 жыл бұрын
Glad to hear that
@darshan2678
@darshan2678 3 жыл бұрын
best explanation on internet on yolo model thank u so much.
@CodeWithAarohi
@CodeWithAarohi 3 жыл бұрын
Glad my video is helpful!
@CodeWithAarohi
@CodeWithAarohi 3 жыл бұрын
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 жыл бұрын
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 жыл бұрын
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
@Nirex_
@Nirex_ 3 жыл бұрын
Thank you for the amazing tutorial, you left nothing uncovered! I wish I could have subscribed and liked more than once!
@CodeWithAarohi
@CodeWithAarohi 3 жыл бұрын
Glad it was helpful 😊
@ganeshchalamalasetti2884
@ganeshchalamalasetti2884 3 жыл бұрын
Thank you very much Aarohi for making up this video. Very useful.
@CodeWithAarohi
@CodeWithAarohi 3 жыл бұрын
Glad my video helped you
@pallebharath3138
@pallebharath3138 2 жыл бұрын
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.
@servicepeinture
@servicepeinture 3 жыл бұрын
Thank you Ms aarohi for your efforts
@CodeWithAarohi
@CodeWithAarohi 3 жыл бұрын
Welcome!!
@danithmihiran5271
@danithmihiran5271 3 жыл бұрын
Thank you so much.. Explain clearly..
@CodeWithAarohi
@CodeWithAarohi 3 жыл бұрын
glad my video is helpful
@venkatesanr9455
@venkatesanr9455 3 жыл бұрын
Thanks for your efforts and for sharing your knowledge
@CodeWithAarohi
@CodeWithAarohi 3 жыл бұрын
Welcome
@aiforeveryone
@aiforeveryone Жыл бұрын
Kudos for this content
@CodeWithAarohi
@CodeWithAarohi Жыл бұрын
Thank you!
@Sunil-ez1hx
@Sunil-ez1hx 8 ай бұрын
Superb video maam
@CodeWithAarohi
@CodeWithAarohi 8 ай бұрын
Thanks!
@angie99999
@angie99999 5 ай бұрын
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 5 ай бұрын
Maybe. I haven't used this tool after this video. So no idea.
@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?
@SourabhSoni-fh4gu
@SourabhSoni-fh4gu Жыл бұрын
Weights are not setting up in backup folder. Not getting weights anywhere. ,How to resolve
@sanjay27534
@sanjay27534 2 жыл бұрын
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
@avanapujahnavi9462
@avanapujahnavi9462 8 ай бұрын
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 8 ай бұрын
You just press ok and images will open
@akshayshendre7408
@akshayshendre7408 Жыл бұрын
Hi ma'am while training the model I am getting the wrong annotation error. Plz, help me out here. thanks!
@avanapujahnavi9462
@avanapujahnavi9462 8 ай бұрын
When selecting folder for annotation, it was not displaying picture for bounding boxes.Then how should i get the coordinates of my picture mam
@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
@AyazKhan-hu1so
@AyazKhan-hu1so 3 жыл бұрын
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 3 жыл бұрын
Upload 'process.py' in data folder and make sure 'process.py' has correct path setup
@prajeshparekh9760
@prajeshparekh9760 2 жыл бұрын
mam this GitHub link is not working for the bbox tool!
@CodeWithAarohi
@CodeWithAarohi 2 жыл бұрын
use labelImg tool. You ca install it with : pip install labelImg
@alekhprasadsahu6705
@alekhprasadsahu6705 Жыл бұрын
Thank you great explanation 🤡
@CodeWithAarohi
@CodeWithAarohi Жыл бұрын
You're welcome!
@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
@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
@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
@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
@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?
@CodeWithAarohi
@CodeWithAarohi 7 ай бұрын
Not that I know of
@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
@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.
@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
@ishikabanga2552
@ishikabanga2552 Жыл бұрын
how will the process file run and create weight file
@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 !
@Spectator990
@Spectator990 2 жыл бұрын
Mam why low resolution images are not working on this method??
@Kishi1969
@Kishi1969 2 жыл бұрын
Please is YOLOV4 not working in PNG ? until i change every pictures to JPG before i can get my convert.jp
@avanapujahnavi9462
@avanapujahnavi9462 8 ай бұрын
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 8 ай бұрын
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.
@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 жыл бұрын
Process is same for the second type also
@nisreenalaas
@nisreenalaas 2 жыл бұрын
How to evaluate the multiple classes per image..please I need your reply
@nisreenalaas
@nisreenalaas Жыл бұрын
Ma'am, How to evalute YOLOV4 after training with multilables?
@Bulbul-rm7ez
@Bulbul-rm7ez Жыл бұрын
mam image is not displayed I used absolute path but image is not display
@chiragagarwal5721
@chiragagarwal5721 2 жыл бұрын
Mam while running the command python bbox_tool.py it is showing error no module name pil
@CodeWithAarohi
@CodeWithAarohi 2 жыл бұрын
pip install Pillow
@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
@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
@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.
@CodeWithAarohi
@CodeWithAarohi 2 жыл бұрын
Yes, you can use that.
@darvishdavis159
@darvishdavis159 2 жыл бұрын
@@CodeWithAarohi thank-you madam
@namimmsadeghi8475
@namimmsadeghi8475 2 жыл бұрын
God bless you
@CodeWithAarohi
@CodeWithAarohi 2 жыл бұрын
Thankyou
@pudinanno
@pudinanno 3 жыл бұрын
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
@nitecedemon152
@nitecedemon152 5 ай бұрын
in my case there is no weight value file in my backupfolder, it is tottaly empty
@CodeWithAarohi
@CodeWithAarohi 5 ай бұрын
Check if the path is correct or you have another backup folder in some other directory.
@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
@cyd9469
@cyd9469 2 жыл бұрын
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
@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
@DileepJ-j2g
@DileepJ-j2g Жыл бұрын
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: kzbin.info/www/bejne/g3alYYZ7nNKngck
@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?
@fayezalhussein7115
@fayezalhussein7115 2 жыл бұрын
how i could use yolo4, yolo5 in two stages detection and classification person accesserois?
@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.
@sayidinaahmadalqososyi9770
@sayidinaahmadalqososyi9770 Жыл бұрын
you can save them into tensorflow model, or mini tensorflow
@sayidinaahmadalqososyi9770
@sayidinaahmadalqososyi9770 Жыл бұрын
you can save them into tensorflow model, or mini tensorflow
@tiarapermatasari2625
@tiarapermatasari2625 3 жыл бұрын
Hello, I tried train use YOLOv4 but I get the error " Couldn't find activation function mish, going with ReLU" and Unused field, can you help me?
@CodeWithAarohi
@CodeWithAarohi 3 жыл бұрын
You have to check cfg file for mish function
@sefadogan4795
@sefadogan4795 3 жыл бұрын
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.
@HammadArshad
@HammadArshad 2 жыл бұрын
In Which Folder Do I Have to upload Process.py File or folder Please let me know
@CodeWithAarohi
@CodeWithAarohi 2 жыл бұрын
Put it in darknet folder
@mansirana6947
@mansirana6947 2 жыл бұрын
Mam, how I can find accuracy of the model?
@ilhamfikriansyah9412
@ilhamfikriansyah9412 2 жыл бұрын
How I know the accuracy model after testing?
@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.
@CodeWithAarohi
@CodeWithAarohi Жыл бұрын
Yes, its same
@hassinijalil5533
@hassinijalil5533 Жыл бұрын
@@CodeWithAarohi Thanks madam
@darvishdavis159
@darvishdavis159 2 жыл бұрын
does all annotation values need to be within (0 and 1)
@merondesta3895
@merondesta3895 2 жыл бұрын
i face difficulty when i tried to execute proceess.py file after uploading it? it says no such file or directory
@CodeWithAarohi
@CodeWithAarohi 2 жыл бұрын
Put the process.py file in darknet folder. Also change the path of current_dir, file_train , file_test variable in process.py file. You are getting no such file or directory error because while executing process.py from your google colab you are not mentioning a correct path.
@merondesta3895
@merondesta3895 2 жыл бұрын
@@CodeWithAarohi i am intersted on this play list madam
@merondesta3895
@merondesta3895 2 жыл бұрын
@@CodeWithAarohi everything went great till now but when i try to train it it keeps saying no data/train.txt file
@merondesta3895
@merondesta3895 2 жыл бұрын
@@CodeWithAarohi i wanted to see results thats why i appear agian in comments thankyou
@CodeWithAarohi
@CodeWithAarohi 2 жыл бұрын
@@merondesta3895 this means the location of train.txt is not correct in your .data file
@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.
@mrwarriorgaming3367
@mrwarriorgaming3367 2 жыл бұрын
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 жыл бұрын
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?
@saurabhawankhede8561
@saurabhawankhede8561 2 жыл бұрын
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?
@ib2sthok127
@ib2sthok127 3 жыл бұрын
How can record as a video only when object is detected
@shamshad126prottoy6
@shamshad126prottoy6 2 жыл бұрын
my annotated data is in .xml file type instead of being .text file.. what should I do maam?
@straightbusta2609
@straightbusta2609 2 жыл бұрын
Look up convert PascalVOC to Yolo
@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.
@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 жыл бұрын
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 ?
@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.
@nirmaltiwari6636
@nirmaltiwari6636 2 жыл бұрын
Excellent tutorial. Can you share the presentation also for reference ?
@lokendrayadav1957
@lokendrayadav1957 2 жыл бұрын
how can i get label name and confidence over bounding box?
@CodeWithAarohi
@CodeWithAarohi 2 жыл бұрын
NO need to write any separate code for that. You get a label name with confidence score on bounding box using yolo
@lokendrayadav1957
@lokendrayadav1957 2 жыл бұрын
@@CodeWithAarohi yup, got it mam, thank you
@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 жыл бұрын
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
@anusayaswain2979
@anusayaswain2979 3 жыл бұрын
after opening bbox tool and giving the image dir my images are not getting displayed? How to fix that
@CodeWithAarohi
@CodeWithAarohi 3 жыл бұрын
What is the error you are getting?
@mohammadyahya78
@mohammadyahya78 Жыл бұрын
Thak you very much! Is this implementation similar to yolov4 in darknet please? Or your implementation is different?
@CodeWithAarohi
@CodeWithAarohi Жыл бұрын
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?
@michaelp2855
@michaelp2855 2 жыл бұрын
Hello, when I run process.py I get a syntax error on line 7, can anyone assist?
@oussamazorrig8762
@oussamazorrig8762 2 жыл бұрын
please can you help me with this error when I try to train the model? : Error in load_data_detection() - OpenCV Cannot load image
@CodeWithAarohi
@CodeWithAarohi 2 жыл бұрын
Check the path of images. Also check the image extensions. Try to work with JPG images.
@darvishdavis159
@darvishdavis159 2 жыл бұрын
@@CodeWithAarohi may i know what should be the correct path and where is the path is being used during training. my extensions are all of .jpg
@namith1984
@namith1984 3 жыл бұрын
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 жыл бұрын
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
@Huds-ux1xb
@Huds-ux1xb 11 ай бұрын
Its still work on 2023?
@CodeWithAarohi
@CodeWithAarohi 11 ай бұрын
Don't use it now. Work with yolov8 or yolo-NAS instead.
@Huds-ux1xb
@Huds-ux1xb 11 ай бұрын
@@CodeWithAarohi so i cant not using yolov4 darknet ?
@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?
@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 👍
@anurithi5857
@anurithi5857 2 жыл бұрын
After training the model,I don't have anything in backup what to do now
@CodeWithAarohi
@CodeWithAarohi 2 жыл бұрын
try to give absolute path in .data file for backup folder
@anurithi5857
@anurithi5857 2 жыл бұрын
@@CodeWithAarohi I get wrong annotation issue while training
@techrock4499
@techrock4499 3 жыл бұрын
No images were shown while selecting the particular directory. How to fix it?
@CodeWithAarohi
@CodeWithAarohi 3 жыл бұрын
This is a problem of path. Try to work with absolute path
@Satish.Sonwane
@Satish.Sonwane 3 жыл бұрын
After running !python process.py it says python3: can't open file 'process.py': [Errno 2] No such file or directory and I couldnt continue the tutorial after that.
@CodeWithAarohi
@CodeWithAarohi 3 жыл бұрын
This is the code in process.py. Create your process.py file and paste this code: import glob import os import numpy as np import sys current_dir = "multiple_images_2" split_pct = 10; file_train = open("train.txt", "w") file_val = open("test.txt", "w") counter = 1 index_test = round(100 / split_pct) for pathAndFilename in glob.iglob(os.path.join(current_dir, "*.jpg")): title, ext = os.path.splitext(os.path.basename(pathAndFilename)) if counter == index_test: counter = 1 file_val.write(current_dir + "/" + title + '.jpg' + " ") else: file_train.write(current_dir + "/" + title + '.jpg' + " ") counter = counter + 1 file_train.close() file_val.close()
@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 Жыл бұрын
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.
@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
@bharathns1361
@bharathns1361 2 жыл бұрын
mam , i don't find any file inside backup
@CodeWithAarohi
@CodeWithAarohi 2 жыл бұрын
You have to train the model first and then you will get weights file inside it. If you have trained but file is not there then give the absolute path of backup folder
@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.
@motaherhossain5851
@motaherhossain5851 3 жыл бұрын
Mam is it mandatory to install jupitar notebook to do this task? Can i just use colab for this?
@CodeWithAarohi
@CodeWithAarohi 3 жыл бұрын
Yes you can use colab
@hugar_sm1144
@hugar_sm1144 2 жыл бұрын
hi can u tell me where i need to put the process.py file in drive
@hugar_sm1144
@hugar_sm1144 2 жыл бұрын
plz reply
@CodeWithAarohi
@CodeWithAarohi 2 жыл бұрын
you can put it anywhere but the important thing is to give the proper path till process.py while executing it through google colab.
@danianiazi8229
@danianiazi8229 3 жыл бұрын
Can you share the presentation will us ? It will help to follow the steps your explaination is wonderful
@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.
@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
@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 жыл бұрын
Never tried that so don't know right now
@shankn3520
@shankn3520 3 жыл бұрын
@@CodeWithAarohi Thanks for your prompt reply.
@afriquemodel2375
@afriquemodel2375 2 жыл бұрын
how i can do that in jupyter notebook
@CodeWithAarohi
@CodeWithAarohi 2 жыл бұрын
Steps are similar. Just install darknet framework first. You can follow this video for that kzbin.info/www/bejne/g3alYYZ7nNKngck After that just copy all the cells and paste it in your JUpyter notebook
@pratyaykumarranjit8169
@pratyaykumarranjit8169 Жыл бұрын
Mam my bbox tool is opening but image not loading please give me the solution
@CodeWithAarohi
@CodeWithAarohi Жыл бұрын
Use LabelImg tool for annotation
@pratyaykumarranjit8169
@pratyaykumarranjit8169 Жыл бұрын
@@CodeWithAarohi thank you mam
@pratyaykumarranjit8169
@pratyaykumarranjit8169 Жыл бұрын
@@CodeWithAarohi one more thing mam I can't find the darknet folder. It shows that"folder is already exist" but no folder has been created
@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 ?
@jenitascreativestudio3542
@jenitascreativestudio3542 3 жыл бұрын
mam , i am getting this error "Couldn't open file: darknet/data/obj.data" can you help ?
@CodeWithAarohi
@CodeWithAarohi 3 жыл бұрын
Check the path of obj.data file. This error is because algorithm is not able to find the obj.data at that location
@yeongjong9395
@yeongjong9395 3 жыл бұрын
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 жыл бұрын
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 жыл бұрын
@@yeongjong9395 right
@AllahKbiir
@AllahKbiir 3 жыл бұрын
this actually should be possible, I mean downloading for example 1000 image for given costume classes such as 'car bus tree ....'
@laibakhan4067
@laibakhan4067 3 жыл бұрын
Dear I have the same question, so if u have the solution plz can u share....
@tech_varrior
@tech_varrior 3 жыл бұрын
mam i use jupyter notebook pls guide me to how to train my algorithm
Traffic Sign Detection Using Yolo V4 | Yolov4 on Custom Dataset
27:12
Code With Aarohi
Рет қаралды 23 М.
YOLO11 Custom Object Detection
27:09
Code With Aarohi
Рет қаралды 7 М.
2 MAGIC SECRETS @denismagicshow @roman_magic
00:32
MasomkaMagic
Рет қаралды 34 МЛН
У вас там какие таланты ?😂
00:19
Карина Хафизова
Рет қаралды 24 МЛН
БУ, ИСПУГАЛСЯ?? #shorts
00:22
Паша Осадчий
Рет қаралды 2 МЛН
YOLO (You Only Look Once) algorithm for Object Detection Explained!
30:21
Balaji Srinivasan
Рет қаралды 93 М.
Object Detection on Custom data using Yolo v7 | iNeuron
1:06:55
iNeuron Intelligence
Рет қаралды 1 М.
how to train YOLO v3, v4 for custom objects detection | using colab free GPU
35:34
When Maths Meet Coding
Рет қаралды 172 М.
Object Detection Using YOLOv4-tiny  |  Part 1
27:29
Code With Aarohi
Рет қаралды 9 М.
YOLOv5 training with custom data
20:29
SoftwaresAI
Рет қаралды 432 М.
Introduction into YOLO v3
26:56
Валентин Сичкар
Рет қаралды 99 М.
Object Detection in 10 minutes with YOLOv5 & Python!
10:45
Rob Mulla
Рет қаралды 281 М.