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 :)
@CodeWithAarohi8 ай бұрын
Glad it helped!
@muhammadalisiddique41349 ай бұрын
Hey Aroshi, I want to thank you. you saved me in the final year project❤
@CodeWithAarohi9 ай бұрын
My pleasure 😊
@vikramreddy56313 жыл бұрын
Most awaited video ...thanks so much mam for the video ...
@CodeWithAarohi3 жыл бұрын
welcome
@utkarshtripathi91182 жыл бұрын
mam, your way of teaching is Exellent, Ossm
@CodeWithAarohi2 жыл бұрын
Glad to hear that
@darshan26783 жыл бұрын
best explanation on internet on yolo model thank u so much.
@CodeWithAarohi3 жыл бұрын
Glad my video is helpful!
@CodeWithAarohi3 жыл бұрын
You can use LabelIMG tool for Annotation. It is easier to annotate images in yolo format with it.
@hasibulislamsquads5133 жыл бұрын
How to use?
@hasibulislamsquads5133 жыл бұрын
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
@hasibulislamsquads5133 жыл бұрын
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
How many classes do we need to give while using LabellImg
@Nirex_3 жыл бұрын
Thank you for the amazing tutorial, you left nothing uncovered! I wish I could have subscribed and liked more than once!
@CodeWithAarohi3 жыл бұрын
Glad it was helpful 😊
@ganeshchalamalasetti28843 жыл бұрын
Thank you very much Aarohi for making up this video. Very useful.
@CodeWithAarohi3 жыл бұрын
Glad my video helped you
@pallebharath31382 жыл бұрын
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
@CodeWithAarohi2 жыл бұрын
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.
@servicepeinture3 жыл бұрын
Thank you Ms aarohi for your efforts
@CodeWithAarohi3 жыл бұрын
Welcome!!
@danithmihiran52713 жыл бұрын
Thank you so much.. Explain clearly..
@CodeWithAarohi3 жыл бұрын
glad my video is helpful
@venkatesanr94553 жыл бұрын
Thanks for your efforts and for sharing your knowledge
@CodeWithAarohi3 жыл бұрын
Welcome
@aiforeveryone Жыл бұрын
Kudos for this content
@CodeWithAarohi Жыл бұрын
Thank you!
@Sunil-ez1hx8 ай бұрын
Superb video maam
@CodeWithAarohi8 ай бұрын
Thanks!
@angie999995 ай бұрын
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.
@CodeWithAarohi5 ай бұрын
Maybe. I haven't used this tool after this video. So no idea.
@muhammadmubashirgujjar23222 жыл бұрын
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 Жыл бұрын
Weights are not setting up in backup folder. Not getting weights anywhere. ,How to resolve
@sanjay275342 жыл бұрын
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
@avanapujahnavi94628 ай бұрын
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
@CodeWithAarohi8 ай бұрын
You just press ok and images will open
@akshayshendre7408 Жыл бұрын
Hi ma'am while training the model I am getting the wrong annotation error. Plz, help me out here. thanks!
@avanapujahnavi94628 ай бұрын
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 Жыл бұрын
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-hu1so3 жыл бұрын
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()
@utkarshasingh87313 жыл бұрын
Upload 'process.py' in data folder and make sure 'process.py' has correct path setup
@prajeshparekh97602 жыл бұрын
mam this GitHub link is not working for the bbox tool!
@CodeWithAarohi2 жыл бұрын
use labelImg tool. You ca install it with : pip install labelImg
@alekhprasadsahu6705 Жыл бұрын
Thank you great explanation 🤡
@CodeWithAarohi Жыл бұрын
You're welcome!
@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 Жыл бұрын
Provide the path(url) of your cctv in source
@bone_doctor_yeet2 жыл бұрын
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-t2y7 ай бұрын
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
@darvishdavis1592 жыл бұрын
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
@nadaalotaibi28767 ай бұрын
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?
@CodeWithAarohi7 ай бұрын
Not that I know of
@athiyashaik61792 жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
Copy the code of process.py in your colab notebook and then execute it
@ishikabanga2552 Жыл бұрын
how will the process file run and create weight file
@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 Жыл бұрын
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 Жыл бұрын
@@CodeWithAarohi Thank you very much for your answer , it's working !
@Spectator9902 жыл бұрын
Mam why low resolution images are not working on this method??
@Kishi19692 жыл бұрын
Please is YOLOV4 not working in PNG ? until i change every pictures to JPG before i can get my convert.jp
@avanapujahnavi94628 ай бұрын
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
@CodeWithAarohi8 ай бұрын
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.
@nisreenalaas2 жыл бұрын
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
@CodeWithAarohi2 жыл бұрын
Process is same for the second type also
@nisreenalaas2 жыл бұрын
How to evaluate the multiple classes per image..please I need your reply
@nisreenalaas Жыл бұрын
Ma'am, How to evalute YOLOV4 after training with multilables?
@Bulbul-rm7ez Жыл бұрын
mam image is not displayed I used absolute path but image is not display
@chiragagarwal57212 жыл бұрын
Mam while running the command python bbox_tool.py it is showing error no module name pil
@CodeWithAarohi2 жыл бұрын
pip install Pillow
@lokusharma-he6ec Жыл бұрын
hi mam, how can i increase the font size of the label? because they are not readable, so want to increase
@jithinm67623 жыл бұрын
predicted image shows same as the input test image..i think number of epochs should be increased....how can we do that??please help
@darvishdavis1592 жыл бұрын
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.
@CodeWithAarohi2 жыл бұрын
Yes, you can use that.
@darvishdavis1592 жыл бұрын
@@CodeWithAarohi thank-you madam
@namimmsadeghi84752 жыл бұрын
God bless you
@CodeWithAarohi2 жыл бұрын
Thankyou
@pudinanno3 жыл бұрын
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.
@CodeWithAarohi3 жыл бұрын
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
@akramelbasri71132 жыл бұрын
@@CodeWithAarohi thank you so much for this tutorial , i am also suffring from the same problem when i execute this commande
@akramelbasri71132 жыл бұрын
please how to solve this problem i am soo need the answer plz
@nitecedemon1525 ай бұрын
in my case there is no weight value file in my backupfolder, it is tottaly empty
@CodeWithAarohi5 ай бұрын
Check if the path is correct or you have another backup folder in some other directory.
@sayedelmoutaouakelberghout39892 жыл бұрын
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
@CodeWithAarohi2 жыл бұрын
Hi, Please mail me your exact requirement at aarohisingla1987@gmail.com
@cyd94692 жыл бұрын
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!
@CodeWithAarohi2 жыл бұрын
1_phone.jpg and 1_laptop.jpg is a better way
@joaovictorsantos46042 жыл бұрын
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
@CodeWithAarohi2 жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
Please check this video for darknet installation: kzbin.info/www/bejne/g3alYYZ7nNKngck
@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?
@fayezalhussein71152 жыл бұрын
how i could use yolo4, yolo5 in two stages detection and classification person accesserois?
@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 Жыл бұрын
you can save them into tensorflow model, or mini tensorflow
@sayidinaahmadalqososyi9770 Жыл бұрын
you can save them into tensorflow model, or mini tensorflow
@tiarapermatasari26253 жыл бұрын
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?
@CodeWithAarohi3 жыл бұрын
You have to check cfg file for mish function
@sefadogan47953 жыл бұрын
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.
@HammadArshad2 жыл бұрын
In Which Folder Do I Have to upload Process.py File or folder Please let me know
@CodeWithAarohi2 жыл бұрын
Put it in darknet folder
@mansirana69472 жыл бұрын
Mam, how I can find accuracy of the model?
@ilhamfikriansyah94122 жыл бұрын
How I know the accuracy model after testing?
@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 Жыл бұрын
Yes, its same
@hassinijalil5533 Жыл бұрын
@@CodeWithAarohi Thanks madam
@darvishdavis1592 жыл бұрын
does all annotation values need to be within (0 and 1)
@merondesta38952 жыл бұрын
i face difficulty when i tried to execute proceess.py file after uploading it? it says no such file or directory
@CodeWithAarohi2 жыл бұрын
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.
@merondesta38952 жыл бұрын
@@CodeWithAarohi i am intersted on this play list madam
@merondesta38952 жыл бұрын
@@CodeWithAarohi everything went great till now but when i try to train it it keeps saying no data/train.txt file
@merondesta38952 жыл бұрын
@@CodeWithAarohi i wanted to see results thats why i appear agian in comments thankyou
@CodeWithAarohi2 жыл бұрын
@@merondesta3895 this means the location of train.txt is not correct in your .data file
@meenashree82322 жыл бұрын
I am getting wrong annotation for some images while executing train.txt. what shld I do mam?
@CodeWithAarohi2 жыл бұрын
train.txt is just listing out the image names which are going to be used for trainings. There is nothing related to annotations.
@mrwarriorgaming33672 жыл бұрын
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? 🤔
@CodeWithAarohi2 жыл бұрын
Check the location which you have mentioned in process.py file for creating train and test.txt file
@mrwarriorgaming33672 жыл бұрын
@@CodeWithAarohi what is the current_dir in process.py?
@saurabhawankhede85612 жыл бұрын
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
@CodeWithAarohi2 жыл бұрын
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 Жыл бұрын
@@CodeWithAarohi where to set the path in the process file ? thoda specefic plz i am beginner
@sumnimathapa3316 Жыл бұрын
@@CodeWithAarohi Can you please say where to change the path?
@ib2sthok1273 жыл бұрын
How can record as a video only when object is detected
@shamshad126prottoy62 жыл бұрын
my annotated data is in .xml file type instead of being .text file.. what should I do maam?
@straightbusta26092 жыл бұрын
Look up convert PascalVOC to Yolo
@praghyathakre75593 жыл бұрын
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.
@CodeWithAarohi3 жыл бұрын
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.
@namitbhandari34242 жыл бұрын
we need to annonate every single image through labellmg, it there any way we could directly get .txt for all images ?
@CodeWithAarohi2 жыл бұрын
You need to annotate all the images
@namitbhandari34242 жыл бұрын
@@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 ?
@namitbhandari34242 жыл бұрын
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_initiator7223 жыл бұрын
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
@CodeWithAarohi3 жыл бұрын
You need only 1 folder. Put all your images and related annotation files in it.
@nirmaltiwari66362 жыл бұрын
Excellent tutorial. Can you share the presentation also for reference ?
@lokendrayadav19572 жыл бұрын
how can i get label name and confidence over bounding box?
@CodeWithAarohi2 жыл бұрын
NO need to write any separate code for that. You get a label name with confidence score on bounding box using yolo
@lokendrayadav19572 жыл бұрын
@@CodeWithAarohi yup, got it mam, thank you
@almazvildanov99903 жыл бұрын
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?
@CodeWithAarohi3 жыл бұрын
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.
@darvishdavis1592 жыл бұрын
@@CodeWithAarohi i didn't understand "Coordinates are written randomly." can you explain
@anusayaswain29793 жыл бұрын
after opening bbox tool and giving the image dir my images are not getting displayed? How to fix that
@CodeWithAarohi3 жыл бұрын
What is the error you are getting?
@mohammadyahya78 Жыл бұрын
Thak you very much! Is this implementation similar to yolov4 in darknet please? Or your implementation is different?
@CodeWithAarohi Жыл бұрын
This implementation is yolov4 in darknet framework only
@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?
@michaelp28552 жыл бұрын
Hello, when I run process.py I get a syntax error on line 7, can anyone assist?
@oussamazorrig87622 жыл бұрын
please can you help me with this error when I try to train the model? : Error in load_data_detection() - OpenCV Cannot load image
@CodeWithAarohi2 жыл бұрын
Check the path of images. Also check the image extensions. Try to work with JPG images.
@darvishdavis1592 жыл бұрын
@@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
@namith19843 жыл бұрын
Thanks for the video..Can you pls make a video about model evaluation part(IoU & mAP) for this project or for previous YoloV3 project.
@CodeWithAarohi3 жыл бұрын
Sure will do soon
@suhasmadupuri81683 жыл бұрын
@@CodeWithAarohi hi aarohi can I get the files for all the versions of yolo that you have implemented please
@Huds-ux1xb11 ай бұрын
Its still work on 2023?
@CodeWithAarohi11 ай бұрын
Don't use it now. Work with yolov8 or yolo-NAS instead.
@Huds-ux1xb11 ай бұрын
@@CodeWithAarohi so i cant not using yolov4 darknet ?
@faridagaber48602 жыл бұрын
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
@CodeWithAarohi2 жыл бұрын
In darknet folder. Also change the path of current_dir, file_train , file_test variable in process.py file
@sumnimathapa3316 Жыл бұрын
@@CodeWithAarohi Hello Ma'am, can I keep anywhere inside the darknet folder? And where and how to change the current_dir and all?
@adityachache3 жыл бұрын
can I use this on the ExDark dataset because it has the same format of annotations used for yolo
@CodeWithAarohi3 жыл бұрын
Yes, If the format is similar then you can use
@adityachache3 жыл бұрын
@@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
@CodeWithAarohi3 жыл бұрын
@@adityachache great 👍
@anurithi58572 жыл бұрын
After training the model,I don't have anything in backup what to do now
@CodeWithAarohi2 жыл бұрын
try to give absolute path in .data file for backup folder
@anurithi58572 жыл бұрын
@@CodeWithAarohi I get wrong annotation issue while training
@techrock44993 жыл бұрын
No images were shown while selecting the particular directory. How to fix it?
@CodeWithAarohi3 жыл бұрын
This is a problem of path. Try to work with absolute path
@Satish.Sonwane3 жыл бұрын
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.
@CodeWithAarohi3 жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
Train your algorithm for different numbers. First collect the data for different numbers. Then annotate the dataset. After that train your model.
@narsingh1909 Жыл бұрын
@@CodeWithAarohi Thank you so much for your response.
@danianiazi82293 жыл бұрын
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
@bharathns13612 жыл бұрын
mam , i don't find any file inside backup
@CodeWithAarohi2 жыл бұрын
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
@devavratpro70612 жыл бұрын
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.
@motaherhossain58513 жыл бұрын
Mam is it mandatory to install jupitar notebook to do this task? Can i just use colab for this?
@CodeWithAarohi3 жыл бұрын
Yes you can use colab
@hugar_sm11442 жыл бұрын
hi can u tell me where i need to put the process.py file in drive
@hugar_sm11442 жыл бұрын
plz reply
@CodeWithAarohi2 жыл бұрын
you can put it anywhere but the important thing is to give the proper path till process.py while executing it through google colab.
@danianiazi82293 жыл бұрын
Can you share the presentation will us ? It will help to follow the steps your explaination is wonderful
@vimalramesh20923 жыл бұрын
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.
@CodeWithAarohi3 жыл бұрын
No Specific reasons :) And yes labelIMG is easier to use.
@mathewtomy61292 жыл бұрын
Hi mam, Training in google colab takes too much time. Is there any easy method by the system gpu
@CodeWithAarohi2 жыл бұрын
Yes you can setup the darknet framework on your PC and can run the algorithm on System GPU
@shankn35203 жыл бұрын
Thanx, for this wonderful video, Do we have option to get coordinates of the detected objects in yolov4 or yolov5.
@CodeWithAarohi3 жыл бұрын
Never tried that so don't know right now
@shankn35203 жыл бұрын
@@CodeWithAarohi Thanks for your prompt reply.
@afriquemodel23752 жыл бұрын
how i can do that in jupyter notebook
@CodeWithAarohi2 жыл бұрын
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 Жыл бұрын
Mam my bbox tool is opening but image not loading please give me the solution
@CodeWithAarohi Жыл бұрын
Use LabelImg tool for annotation
@pratyaykumarranjit8169 Жыл бұрын
@@CodeWithAarohi thank you mam
@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_Views2 жыл бұрын
Thank you for the wonderful video.I have a a question... How to get the bounding box coordinate in predicted image ?
@jenitascreativestudio35423 жыл бұрын
mam , i am getting this error "Couldn't open file: darknet/data/obj.data" can you help ?
@CodeWithAarohi3 жыл бұрын
Check the path of obj.data file. This error is because algorithm is not able to find the obj.data at that location
@yeongjong93953 жыл бұрын
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!
@CodeWithAarohi3 жыл бұрын
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.
@yeongjong93953 жыл бұрын
@@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!
@CodeWithAarohi3 жыл бұрын
@@yeongjong9395 right
@AllahKbiir3 жыл бұрын
this actually should be possible, I mean downloading for example 1000 image for given costume classes such as 'car bus tree ....'
@laibakhan40673 жыл бұрын
Dear I have the same question, so if u have the solution plz can u share....
@tech_varrior3 жыл бұрын
mam i use jupyter notebook pls guide me to how to train my algorithm