I am working on FSC 147 dataset and I will combine SAM and YOLO for counting and segmentation tasks, for trial of custom YOLO I was trying it on CarPK dataset and was facing some errors, but your video just released on the right time and I was able to solve ther problems I was facing with trial. The results I acheived were pretty good and therefore my professor agreed to my idea of combining SAM + YOLO for counting and segmentation tasks. I know YOLO can perform both segmentation and counting task, but we want to use SAM for counting, and my idea was a to add a layer of YOLO/ CNN model to accurately predict the objects. Thank you so much for this.
Hello Harsh, I am also kinda working on a similar project. Right now, I am using only YOLO for both segmentation and counting tasks but I want to use SAM for counting purposes and I really need help on this. Can we please connect somewhere and discuss it?
have been training YOLO models currently YOLOv9 using the same training script that used to generate train_batch.jpg and similar image files in the runs/train/exp directory. These images provided visualizations of the training batches and were extremely helpful for debugging. However, after recent updates or changes, the train_batch.jpg and similar image file is no longer being generated, even though I'm using the same script and hyperparameters. How can I re-enable the generation of train_batch.jpg or equivalent batch visualization during training? trayed re rerunning same old code.
Also after training custom dataset , the best. pt file, when I give any image(I.e things that I didn’t train) it’s still detecting it (I.e it’s detecting a bike as a car) ps I trained only car and not bike.. so I suppose my result image should not be predicted… please send help
I trained i to detect refuse dumps, the prediction works perfectly fine only when I provide one of the pictures that I trained the model with, but when I provide a different picture that is not part of the pictures that I trained the model with, it doesn't show anything
@@NicolaiAI Ive been playing around with using my GPU to speed up the video streaming perhaps? Could you make a guide that perhaps itulizes Nvidia CUDA to run these algorithms for object detection?
Thank you for this tutorial, but it seems the model can only predict from the pictures it was trained with if you bring different pictures it can not predict from it, what is the difference between predict and detect in Yolo?
Ohh in that way. Those foundation models are too large to run in real-time and too expensive for the task. They are way too overkill and requires significantly more processing power which is unnecessary @@rololop34
Will definitely do it on both raspberry pi and jetson nano. Ultralytics have some nice guides on their documentation but I should definitely cover it since it looks like a lot of people want to see that. Thanks a lot for commenting!
Hi i have a doubt, if i have 4 classes and and train yolo v8 model with my custom data set . and i want to add 2 more new classes in the trained yolo model with new classes without loosing the weight of the first trained model. How to do that ? show me step by step procedure in simple steps. Do freezing can be done? If so show me that technique also .
@@NicolaiAI when retraining i have lost weight of first traiing. The model now only knows the classes of last training. I don't want like that i want model to have both weights of first training and the last traing also. Is there any solutions for that?
@@NicolaiAI I have certain types of obstacles and want to apply obstacles avoidance and by also identifying them and want to feed the results obtained from prediction to computer or microprocessor for performing tasks
Hey!The following error occurred while I was running, what should I do? RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase. This probably means that you are not using fork to start your child processes and you have forgotten to use the proper idiom in the main module: if __name__ == '__main__': freeze_support() ... The "freeze_support()" line can be omitted if the program is not going to be frozen to produce an executable.
@@NicolaiAI Thanks for your quick response! You are absolutely right. I just watched the full video, and I apologize for the misunderstanding. I'm planning to run it on Kaggle and would love your assistance with that. Thank you so much! I just subscribed to your channel-keep up the great work!
Join My AI Career Program
www.nicolai-nielsen.com/aicareer
Enroll in My School and Technical Courses
www.nicos-school.com
I am working on FSC 147 dataset and I will combine SAM and YOLO for counting and segmentation tasks, for trial of custom YOLO I was trying it on CarPK dataset and was facing some errors, but your video just released on the right time and I was able to solve ther problems I was facing with trial. The results I acheived were pretty good and therefore my professor agreed to my idea of combining SAM + YOLO for counting and segmentation tasks. I know YOLO can perform both segmentation and counting task, but we want to use SAM for counting, and my idea was a to add a layer of YOLO/ CNN model to accurately predict the objects.
Thank you so much for this.
Papa papa aree q
Hello Harsh, I am also kinda working on a similar project. Right now, I am using only YOLO for both segmentation and counting tasks but I want to use SAM for counting purposes and I really need help on this. Can we please connect somewhere and discuss it?
Its amazing brother , biggest thankssssssssssssssssssss.........
Thanks for watching brother!
have been training YOLO models currently YOLOv9 using the same training script that used to generate train_batch.jpg and similar image files in the runs/train/exp directory. These images provided visualizations of the training batches and were extremely helpful for debugging. However, after recent updates or changes, the train_batch.jpg and similar image file is no longer being generated, even though I'm using the same script and hyperparameters. How can I re-enable the generation of train_batch.jpg or equivalent batch visualization during training?
trayed re rerunning same old code.
Also after training custom dataset , the best. pt file, when I give any image(I.e things that I didn’t train) it’s still detecting it (I.e it’s detecting a bike as a car) ps I trained only car and not bike.. so I suppose my result image should not be predicted… please send help
Comes down to the dataset you are training on
I trained i to detect refuse dumps, the prediction works perfectly fine only when I provide one of the pictures that I trained the model with, but when I provide a different picture that is not part of the pictures that I trained the model with, it doesn't show anything
Thank you for this amazing video this is very useful.
Thanks a ton for watching!
@@NicolaiAI can I know how to integrate this to a live video captured from an esp32-cam? Do you have any videos on that?
Hey Nicolai, nice video! Can you make an video on how to estimate car’s speed?
Great video guide. Question though, is YOLOv9 possible to run on a video live stream instead of just uploading single images?
Yeah for sure! Have tons of videos around that as well
@@NicolaiAI Ive been playing around with using my GPU to speed up the video streaming perhaps? Could you make a guide that perhaps itulizes Nvidia CUDA to run these algorithms for object detection?
Thank you for this tutorial, but it seems the model can only predict from the pictures it was trained with if you bring different pictures it can not predict from it, what is the difference between predict and detect in Yolo?
What is the point of training a yolov9 model if the foundation model can already do almost perfect predicitons? Just knowledge distillation?
Depends on what classes you want to detect. The pre trained model is only able to detect 80 different classes from the coco dataset
@@NicolaiAI Sorry, I meant the foundation model from roboflow, which annotated the cars.
Ohh in that way. Those foundation models are too large to run in real-time and too expensive for the task. They are way too overkill and requires significantly more processing power which is unnecessary @@rololop34
@@NicolaiAI Thank you for answering. I just read on the ultraytics docs that YOLOv8 is approx. 866x faster than SAM-b on CPU.
You can instruct yolov8 pruning with torch-pruning ?
@NicolaiAI
how to deploy these models into a raspberry pi or any edge device?
Same question i also want to ask
Yeah same here!
Will definitely do it on both raspberry pi and jetson nano. Ultralytics have some nice guides on their documentation but I should definitely cover it since it looks like a lot of people want to see that. Thanks a lot for commenting!
Yeah pls do it
what about live video detection?
How can I use gelan-c or gelan-e in Python?
not cli
Hi i have a doubt,
if i have 4 classes and and train yolo v8 model with my custom data set .
and i want to add 2 more new classes in the trained yolo model with new classes without loosing the weight of the first trained model.
How to do that ? show me step by step procedure in simple steps.
Do freezing can be done?
If so show me that technique also .
Show me show me. But no you can’t do that. You have to retrain
@@NicolaiAI when retraining i have lost weight of first traiing.
The model now only knows the classes of last training.
I don't want like that i want model to have both weights of first training and the last traing also.
Is there any solutions for that?
Hey. Do you have any idea why YOLOV9-t (the tiny model) weights are not available?
how to evaluate the yolo model in google colab notebook
Can you make video about semantic segmentation?
How to use this model results for practical use like autonomous robots
In what way do you want to use it for? Any specific objects?
@@NicolaiAI I have certain types of obstacles and want to apply obstacles avoidance and by also identifying them and want to feed the results obtained from prediction to computer or microprocessor for performing tasks
@Mrsmith0119 definitely check out the yolo world model as well here on my channel
Well even I want to deploy this model on a practical bot !
Hey!The following error occurred while I was running, what should I do?
RuntimeError:
An attempt has been made to start a new process before the
current process has finished its bootstrapping phase.
This probably means that you are not using fork to start your
child processes and you have forgotten to use the proper idiom
in the main module:
if __name__ == '__main__':
freeze_support()
...
The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce an executable.
hello , How to resume YOLOv9 training an after interruption?
how about video and live footage
loving your video! is it possible to just train the model locally and not on google colab?
Yup you can do it locally as well. Exact same code. And it will use the hardware available. Either GPU or CPU directly
You have written yolov9 in the video and you are training yolov8. 😔 😔
Nope 14:21 it’s yolov9 and training right after. Yolov8 from the code example from Ultralytics and then changed the model name
@@NicolaiAI Thanks for your quick response! You are absolutely right. I just watched the full video, and I apologize for the misunderstanding. I'm planning to run it on Kaggle and would love your assistance with that. Thank you so much! I just subscribed to your channel-keep up the great work!
@HarisKhan-ph9jl thanks a ton!
how to evaluate the yolo model in google colab notebook
how to evaluate the yolo model in google colab notebook