Тёмный

How to Train TensorFlow Lite Object Detection Models Using Google Colab | SSD MobileNet 

Edje Electronics
Подписаться 30 тыс.
Просмотров 139 тыс.
50% 1

Let's train, export, and deploy a TensorFlow Lite object detection model on the Raspberry Pi - all through a web browser using Google Colab! We'll walk through a Colab notebook that provides start-to-finish code and instructions for training a custom TFLite model, and then show how to run it on a Raspberry Pi. The notebook uses the TensorFlow Object Detection API to train SSD-MobileNet or EfficientDet models and converts them to TFLite format.
Click this link to the Colab notebook to get started: colab.research.google.com/git...
-- Other Links --
📸 How to capture and label training data for object detection models: • How to Capture and Lab...
🏅 TFLite model comparison article: ejtech.io/learn/tflite-object...
🍓 Instructions to set up TFLite on the Raspberry Pi: • How To Run TensorFlow ...
💻 Instructions to run TFLite models on Windows: github.com/EdjeElectronics/Te...
🐜 How to quantize your TFLite model: Still to come!
📄 TFLite GitHub repository: github.com/EdjeElectronics/Te...
-- Chapters --
0:00 Introduction
1:06 Google Colab
1:41 1. Gather Training Images
3:22 2. Install TensorFlow
4:43 3. Upload Images and Prepare Data
8:41 4. Set up Training Configuration
11:20 5. Train Model
13:48 6. Convert Model to TFLite
14:20 7. Test Model
17:50 8. Deploy Model
22:07 9. Quantization
22:30 Conclusion
-- Music --
- Blue Wednesday - Japanese Garden
- Provided by Lofi Records
- Watch: • Blue Wednesday - Japan...
- Download/Stream: fanlink.to/Discovery

Наука

Опубликовано:

 

2 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 528   
@ivandimitrov2401
@ivandimitrov2401 7 месяцев назад
Amazing tutorial! One of the most useful videos I've ever watched. Keep up the good work! Thanks a lot, Edje!
@AlexanderSomma
@AlexanderSomma Год назад
Thank you for a wonderful breakdown of all the needed steps to do training on colab.
@MakerMadness
@MakerMadness Год назад
Really excited your back! Thanks for the video.
@user-qc6fp6pp6p
@user-qc6fp6pp6p 10 месяцев назад
Ive been banging my head on my desk trying to find a good tutorial. Big thank
@navishkhadooa5867
@navishkhadooa5867 Год назад
Really amazing video with detailed and well-explained steps. Great job!
@felixoyeleke
@felixoyeleke 5 месяцев назад
Your tutorial is the best on the internet. Exactly what I needed! Thank you! Thank you! Thank you!!!
@CRIMX0N
@CRIMX0N Год назад
Thank you! Clear and easy to understand while having sprinkles of humor made this video really educational AND enjoyable. Easiest like and subscribe.
@EdjeElectronics
@EdjeElectronics Год назад
Thanks for the kind words! 😸
@OsamaShamim
@OsamaShamim Год назад
@@EdjeElectronics There are a few persistent warnings in the notebook now because of which it does not run anymore. Kindly check the comment sections and reply. The training does not commence in step 5. It worked once when we tried the notebook on a smaller dataset but then now we are trying to deploy the full dataset it shows this issue and does not run.
@SAYED-ZALALBIA.
@SAYED-ZALALBIA. 2 месяца назад
Thank you for a wonderful breakdown of all the needed steps to do training on colab ❤❤❤ Your follower from Egypt 🥰
@emanuelrodrigues6453
@emanuelrodrigues6453 7 месяцев назад
Amazing!! Incredible to see you using the model on another device.
@istillplay271
@istillplay271 5 месяцев назад
Thankkk youu sooo much for the tutorial, I've been researching on the internet but didn't get the solution. Great work you've earned a subscriber.
@Tzu-LingLiu
@Tzu-LingLiu Год назад
Thanks for making this amazing video! It is really helpful. Look forward to the "quantize TFLite model:" video too!!!
@baumotorola9149
@baumotorola9149 Год назад
Really nice video. Anxiously waiting for an Android deploying tutorial!
@ujjwalpranami7165
@ujjwalpranami7165 4 месяца назад
Thankyou so much you made my day, I was searching all internet for working colab notebook for this model.
@PraveenKumar-wv8hf
@PraveenKumar-wv8hf Год назад
Wonderful, thanks for the efforts for explaining step by step
@ciscomike82
@ciscomike82 Год назад
That was so detailed and easy process! Thank you so much for the effort you have been given for all those videos. Quick question, what if somebody wants to use rstp streams instead of raspberry or USB camera on the Raspberry Pi, what should be change and where? Thanks again.
@empi9249
@empi9249 Год назад
Good to see you again!
@EdjeElectronics
@EdjeElectronics Год назад
Thanks! I'm going to try and hold myself to a more regular release schedule now... we'll see how it goes! 😁
@kevinsmithwoo
@kevinsmithwoo Год назад
Please keep making great videos. Awesome content.
@veranium24
@veranium24 Год назад
thank you so much for uploading this video. Helped a lot! :D
@LaraCalvo-mk2uh
@LaraCalvo-mk2uh 2 месяца назад
This tutorial was super helpful, thank you a lot! It is very easy to follow along and understand with step-by-step instructions
@fe_nik_s776
@fe_nik_s776 Год назад
Hello, to increase performance, you can use multithreaded computing. To do this, when loading the model, specify the "num_threads" argument, which must contain the number of threads that the processor supports. Basically, TFLite uses only one core. The code: import multiprocessing tf.lite.Interpreter(model_path=PATH_TO_CKPT, num_threads=multiprocessing.cpu_count() ) On my old laptop with dual-core CPU, this gave a double increase in performance. Basic - 140 ms per frame. With two cores - 85 ms per frame
@EdjeElectronics
@EdjeElectronics Год назад
Thanks, I'll have to try that!
@khamismuniru5188
@khamismuniru5188 10 месяцев назад
This works like a charm bro! On a pi 4, My fps went from 8fps to 20fps when using the google sample tflite model!🤯
@darrenmendoza7620
@darrenmendoza7620 10 месяцев назад
@@khamismuniru5188 how
@fe_nik_s776
@fe_nik_s776 9 месяцев назад
@@Messedupsumit Section 7.1. In the line -> interpreter = Interpreter(model_path=modelpath)
@randomvideochamber1723
@randomvideochamber1723 9 месяцев назад
@@fe_nik_s776 you mean like this? import multiprocessing tf.lite.Interpreter(model_path=PATH_TO_CKPT, num_threads=multiprocessing.cpu_count() ) interpreter = Interpreter(model_path=modelpath)
@ejarao8321
@ejarao8321 Год назад
Still is one of the best tutorial for model training in RU-vid. But I have a suggestion, could there be an option to add metadata scripts to the notebook? this could be highly useful since of the release of googles ML kit for android & ios development.
@wilsonhuanquisoria2954
@wilsonhuanquisoria2954 Год назад
gracias por los vídeos, me ayudo mucho a entrenar modelos.
@gnavarrolema
@gnavarrolema Год назад
Great video tutorial. Thank you!!!
@venven9839
@venven9839 Год назад
Thankyou somuch for your helping with this video, now can implement this tutorial in my final task
@slametjumpshoot
@slametjumpshoot Год назад
thank you broo, you're amazing💣
@user-lb4rj9if6n
@user-lb4rj9if6n 5 месяцев назад
LIFE SAVER MAN THANKS
@salmanulfaris7165
@salmanulfaris7165 Год назад
Thank you for the great content. Waiting for the deployment of tflite on the android studio part. Thank you
@petrusdimase1520
@petrusdimase1520 Год назад
Great videos. It works well thanks.
@kai-ten15
@kai-ten15 Год назад
Great tutorial!! Great introductory experience while also providing everything needed for learning rabbit holes. If you come across Step 5 ending with ^c, it is because you are running out of memory. Either resize your images to be large/medium (~200-300KB per image), upload less images, or both.
@nadavdashevski4300
@nadavdashevski4300 2 месяца назад
wow thanks man!
@iotlalo
@iotlalo Год назад
I struggle a week trying the repo from Google and this video save my life thank you I would like to see a video of posenet in Raspberry Pi
@shivarajchangale47
@shivarajchangale47 Месяц назад
is your tflite model detecting items well? because my model detecting false products
@iotlalo
@iotlalo Месяц назад
@@shivarajchangale47 yes but i mean when i tried to run It in a new OS from Raspberry PI
@rashmikajayasundara4553
@rashmikajayasundara4553 Год назад
Thank you. Very nice guide for beginner. Please do video for audio classification using microphone with raspberry pi.
@EdjeElectronics
@EdjeElectronics 3 месяца назад
Hey all, just a quick update (April 10 2024). I ran through the full notebook today with my coin dataset, and everything worked without errors. A "Restart Session" option appears during Step 1 after running the last set of install commands. When it appears, click the "Restart Session" option, and then keep working through the steps. If you're getting errors, try using my coin dataset and seeing if it works (it should). Then, compare your annotation files with the annotation files from the coin dataset. It's likely there's a difference in your annotation files that are causing problems.
@joeycherisea5999
@joeycherisea5999 3 месяца назад
Hello Edje, thanks for this great tutorial! While following exactly the steps in your notebook, I ran into an error repetitively when running model_builder_tf2_test.py: "Could not load dynamic library 'libcudart.so.11.0'; dlerror:.." Any idea of how to solve it?
@lucasinunas
@lucasinunas 6 месяцев назад
for anyone who noticed that not all images are getting moved to its respective folders, and that later it gives some error that a file is missing: make sure all your images end with .jpg instead of .jpeg since all the scripts on the github page only takes into account those files
@user-nr3pj5fj3v
@user-nr3pj5fj3v 6 месяцев назад
great video! thanks!
@viniciusc3723
@viniciusc3723 5 месяцев назад
No fucking way u are givin us for free this kind of information, i love u so much, i have spend the last 2 months trying do a tensorFlow Object Detecion works, u deserve the best things of world can provide thanks thanks thankssssssssssssssssssssssssssssssss
@alexanders.1661
@alexanders.1661 Год назад
Excellent video. I have a query regarding the application of the model. If, for example, I require that the detected elements be registered, what script would you recommend I use to do this? Thanks.
@zyadbenchrifa8182
@zyadbenchrifa8182 Год назад
Thank you for the wonderful breakdown !! Can you do a tutorial on how to deploy on android please
@Faisi113
@Faisi113 Год назад
worth video Thank you so much
@rajmeetsingh1625
@rajmeetsingh1625 8 месяцев назад
Great tutorial...............
@abimbolaadeola1986
@abimbolaadeola1986 11 месяцев назад
Hello! Thanks for the tutorial. It really helped a lot. But, I'd like to ask, besides the mAP evaluation metrics, how do I include other metrics such as Kappa, F1, confusion matrix, etc in order to provide more information about the model. Thanks!
@hyagovieira1701
@hyagovieira1701 4 месяца назад
i need to kkkkk
@Nummi31
@Nummi31 9 месяцев назад
The best tutorial in the world! :) Please could you modify the code on Google Colab in the future so that training also works for negative images and xml files without objects in them? Now it gives errors. Thank you so much, we love you!
@maconnor2546
@maconnor2546 Год назад
Thank you for the tutorial video! And I have a question how can I export the classification output data and save in the txt file?
@rml0226
@rml0226 Год назад
hello good sir, this is a very helpful vid. Currently waiting for the how to capture and label training data video
@EdjeElectronics
@EdjeElectronics Год назад
It will be out on Monday! Just finishing up the editing now.
@rml0226
@rml0226 Год назад
@@EdjeElectronics happy to hear that sir, thank you for uploading such helpful videos
@ahmedadel1330
@ahmedadel1330 Год назад
great tutorial thanks, can you explain how to use the TF lite model in real-time detection using a webcam and how to deploy the model on a mobile application
@EdjeElectronics
@EdjeElectronics 7 месяцев назад
Good news! Training on GPU is working again. Thank you @markwassef8643 for finding the solution.
@user-yd4oz6wt1v
@user-yd4oz6wt1v 9 месяцев назад
Really detailed. A query though, where in the above procedures should I rectify to train a face detection model??
@eduardoserracin
@eduardoserracin Год назад
Thanks!, Did you label them one by one or did you use any tool or script?
@EdjeElectronics
@EdjeElectronics Год назад
I wrote an auto-annotation script that labels images using early versions of the model. I trained a model off 200 manually labeled images, then used that model to label the remaining images and fixed any errors. It worked pretty well! Hoping to make a video about it in the next few months. But you can check out the code I used here: github.com/EdjeElectronics/Image-Dataset-Tools#autolabeler
@eduardoserracin
@eduardoserracin Год назад
@@EdjeElectronics excellent work, thanks for sharing the repository, I am looking to create a model that will make it easier for me to detect the barcodes of some products on a supermarket shelf
@wilhelmusolejr4979
@wilhelmusolejr4979 11 месяцев назад
Please make a video for android studio version. Thank you. Great tutorial by the way
@rupertsobrevinas3857
@rupertsobrevinas3857 10 месяцев назад
Great tutorial! I have a question though. Do I need to pre process my images to become accurate or no need? I've been training my model for a weeks and I already have a 1000+ datasets but some of the datasets are not accurate. Help please.
@liran3381
@liran3381 Год назад
Great tutorial! I have just one question. I would like to use my model with opencv and use the x,y,h,w of the targeted object for other stuff.. is there an easy way to do that?
@Hi-un4cw
@Hi-un4cw 3 месяца назад
did you ever figure this out? I am doing the same
@PeterPan-hs5tu
@PeterPan-hs5tu Год назад
Love your tutorial!! good job with the instruction. I kind of using your material as my object detection experiment for my own dataset. But I got stuck at the training. seems like there is a version deprecation issue due to the colab upgrading TF version. I am wondering if there is an update to the code that helps at stage 5. TFLite model training :)
@EdjeElectronics
@EdjeElectronics Год назад
Thanks! Sorry, I'm not sure what's going on, and I don't have time currently to look in to it. Can you try Google searching the error to see if there's a resolution?
@Cicatka.Michal
@Cicatka.Michal Год назад
Hey, I was facing some issues as well. Make sure to run the session with the GPU. When I was training a larger model without the GPU, it hung on the training initialization. I also decreased the batch-size but I'm not convinced that it's actually necessary. Btw, thanks @EdjeElectronics for the tutorial, I really appreciate it!
@PeterPan-hs5tu
@PeterPan-hs5tu Год назад
Yeah thanks you two for replying, and can’t thank enough to @EdjeElectronic for providing the tutorial. So my issue turns out to be that my dataset contains .csv for annotation. So I had to ask GPT to write me a code to convert the labeling datasets back to .xml w/ exactly the same format as the dataset you provide for the coin dataset. I did it offline with Jupyter Notebook and re-upload them back to Gdrive and continue using your code to train, and after 2 weeks of tweaking, I finally made it to train with your magical instruction:) I looked into every line of your code and went down the rabbit hole with even the extension .py you linked and trying to study the logic behind the code w/ the help of chatGPT :D Long story short, I got it to train and it’s training. Yay!!!
@PeterPan-hs5tu
@PeterPan-hs5tu Год назад
Ok so i figured it out. I realize that the entire process requires xml and image dataset. i had csv and image as my dataset. So i converted the csv labeling dataset back into xml format locally and re upload the dataset and run the code and worked!! yay~✌😇
@EdjeElectronics
@EdjeElectronics Год назад
@@PeterPan-hs5tu Awesome, glad you were able to figure it out!
@FabrizioCoppolecchia
@FabrizioCoppolecchia 6 месяцев назад
hey, when next video about object detection fine tuning and creating apps with that? really love your videos
@EdjeElectronics
@EdjeElectronics 6 месяцев назад
Thanks, I appreciate you saying that! It helps motivate me to make more videos 😀. I have been busy working on paid projects, but I really want to do a video series on creating applications with YOLOv8. I don't know when I'll get to it though.
@MrBlitzcrank
@MrBlitzcrank 8 месяцев назад
Good Job !
@adamK-pl4tq
@adamK-pl4tq Год назад
Hello, first thank you for sharing your workflow with us. How can I get the detected objected (as text) scripted when i run the model? Any tips?
@yuvrajanand9342
@yuvrajanand9342 Год назад
Your video have been so useful to me, i just would like you make a tutorial to run it on a mac machine
@cheerio4742
@cheerio4742 Год назад
Hi wonderful video, I'm working on a custom dataset with more than 4 classes what file or code would I change?
@vcodevideo
@vcodevideo Год назад
Thanks for the video!!. I have some doubts, if I would train a model for detecting no ok parts, the way you showed us will fit for my model?, Must I take a picture for any defect and label it? Must take pictures for ok parts and label it also?. I'm trying to detect defects like scratches, marks, paint defects, etc...any help will be much appreciated!!
@crickshowshorts
@crickshowshorts Месяц назад
Superb..It is hard to install tensorflow api because the version incompatibilities..you handle those superbly
@duyguisel373
@duyguisel373 Год назад
First of all, thank you very much for the great work. I have a question for you. I can't convert tensorflow lite version to tensor flow js how should I write a code block about it
@bergjoel93
@bergjoel93 Год назад
Hello and thank you again for this tutorial! Today I was successfully able to get to the training step with my own dataset but I unfortunately forgot to turn my computer's sleep mode off. When I went to go back through the steps I keep getting an error Step 4 Cell 4 commented: "# Set file locations and get number of classes for config file". The error says "NotFoundError: /content/labelmap.pbtxt; No such file or directory" I can share a screenshot if you like. I've ran through the notebook several times and have also reset it with your most current version and I keep getting this. And in fact, there is no labelmap.pbtxt in my files. There is a labelmap.txt though! Thank you!
@GoldenMoments100
@GoldenMoments100 Год назад
yeah, the .pbtxt does not get created in my case either.
@GoldenMoments100
@GoldenMoments100 Год назад
I ran this in a seperate cell to create the .pbtxt file: path_to_labeltxt = os.path.join(os.getcwd(), 'labelmap.txt') with open(path_to_labeltxt, 'r') as f: labels = [line.strip() for line in f.readlines()] path_to_labelpbtxt = os.path.join(os.getcwd(), 'labelmap.pbtxt') with open(path_to_labelpbtxt,'w') as f: for i, label in enumerate(labels): f.write('item { ' + ' id: %d ' % (i + 1) + ' name: \'%s\' ' % label + '} ' + ' ')
@qbotx
@qbotx 4 месяца назад
have you fix this problem yet?
@auspiciadjima
@auspiciadjima 6 месяцев назад
Really thank you very much for the tutorial I was able to do the inference on a Raspberry Pi. However, just after the entire model I evaluated the precision of the model on the training and test data but the script that I I wrote to myself about errors since the images were saved in tfrecord format. Could I have a hand lesson?
@inspirewithfact3303
@inspirewithfact3303 Год назад
thanks for best video ever please make the application we are waiting you ...thanks
@barelangf1
@barelangf1 Год назад
i like this tutorial, on the next video could you make how to training tflite model without google collab?
@potatowo5712
@potatowo5712 9 месяцев назад
Hello! Really informative video, I just wanted to know the process stays or less the same even if im on a Mac while making the project right? Is there anything I should be aware of? Furthermore its possible for me to make it so that the software detects when I am bending/bent towards the right/left and give an output, or because its the same person it wont be able to recognise that? thanks!
@EdjeElectronics
@EdjeElectronics 9 месяцев назад
Thanks! It should all work inside the web browser, even if you're on a mac. However, I still haven't written the guide for how to take the downloaded model and run it on macOS. You should take a stab at it though! In fact, I'd pay you $50USD if you can write a macOS deployment guide similar to the one I wrote for Windows (github.com/EdjeElectronics/TensorFlow-Lite-Object-Detection-on-Android-and-Raspberry-Pi/blob/master/deploy_guides/Windows_TFLite_Guide.md). Email me if you're interested in that - info@ejtech.io ! For detecting which way you are bent, I would try using an OpenPose model (look it up on RU-vid to see what I mean).
@vjn1109
@vjn1109 9 месяцев назад
Good afternoon, great contribution that you really make, congratulations, a question when doing the training is paralyzed and does not continue on API in Colab, what could happen?
@EdjeElectronics
@EdjeElectronics 9 месяцев назад
Sorry, I haven't encountered that problem before. My guess is to restart the Colab from scratch and try to run through it again. Otherwise, I'm not sure how to solve it.
@shahnawazhussain7506
@shahnawazhussain7506 Год назад
Thank you so much a value able content. Could you please implement the tflite modal in android application
@moshiesamuel6026
@moshiesamuel6026 9 месяцев назад
Thanks for the tutorial. I noticed the image detection draws a maximum of 10 objects is there a way to increase the count?
@orrafaellis
@orrafaellis 7 месяцев назад
hey mate! Did you manage to solve it? I'm having the same issue.
@user-lk1hv4so9d
@user-lk1hv4so9d Год назад
Great video. please can you add the video of TFlite model deployment in android devices?
@carladrianangeles2811
@carladrianangeles2811 9 месяцев назад
Great tutorial! I've been encountering a problem though with my dataset. All file names are correct, also the file extensions, and have tried all options of adding a dataset (upload, gdrive mounting, dropbox) I even checked the csv file and all are intact. However, when its time to create the tfrecord files, there appear to be some files missing in both the train and validation folders, thus I can't generate the pbtxt file. Any tips?
@EdjeElectronics
@EdjeElectronics 9 месяцев назад
Thank you! Hmm, usually if there's an issue with the pbtxt file, it's because there's a problem with the annotation data (like a typo in a class name). Can you try using my coin dataset and see if you get the same issue?
@qbotx
@qbotx 3 месяца назад
i unable to make labelmap.pbtxt on step 3.3, how do i fix this?
@roeyasher1396
@roeyasher1396 2 дня назад
same problem
@osamagawish7599
@osamagawish7599 Год назад
Thanks for the great content. I have some doubts, the video displaying is running at 2.7 FPS with Raspberry Pi, with you it reaches about 5 FPS, why my one is slower?
@PraiseTheLord527
@PraiseTheLord527 Год назад
Hey bro, were you able to complete the custom object detection... I had an issue during the training process whereby it will stop after 50s. Usually it should take several hours. I also noticed that my system Ram reached about 12.1Gb before it stopped... did yours do the same? I would be really grateful for some guidance...
@zetadoop8910
@zetadoop8910 Год назад
It would be interesting if you will try same model on OrangePi 5/RockPi 5B that have NPU or Orange Pi AI USB Stick. Coral and Intel USB sticks are not available right now.
@EdjeElectronics
@EdjeElectronics Год назад
I just got my OrangePi 5 in the mail! Pretty excited to use it. I'm going to post a benchmarking video in the next month or two. You're right, though, Coral USB Accelerators are hard to get a hold of (and production of the Intel NCS2 has been cancelled).
@humilam4808
@humilam4808 Год назад
Nice and clear step-by-step video! However, I cannot run it smoothly at my side. At section3.3, no labelmap.pbtxt is generated so the later step in section 4 crash. Would you know the reason ?
@260.vighneshbablu2
@260.vighneshbablu2 Год назад
Yes for me too got any fix?
@humilam4808
@humilam4808 Год назад
@@260.vighneshbablu2 it suddenly fixed after i reload the notebook and redo all the steps
@humilam4808
@humilam4808 Год назад
@@260.vighneshbablu2 guess another solusion can be finding one .pbtxt, follow its formet and edit according to your custom class names.
@260.vighneshbablu2
@260.vighneshbablu2 Год назад
@@humilam4808 but the format is not shown in the video
@humilam4808
@humilam4808 Год назад
@@260.vighneshbablu2 find one online
@kaloivan3482
@kaloivan3482 Год назад
Great video intesetd if you have Instructions to run TFLite models on mac os
@user-fq7ep4wv9r
@user-fq7ep4wv9r 11 месяцев назад
Hello, can we have a tutorial about implementing the tensorflow lite model that is made in this video to a mobile object detection application. Thank you very much and looking forward to it
@taknikiniga
@taknikiniga 10 месяцев назад
Can we train for image segmentation model too with this codelab?
@EnlightenedGrowthHub
@EnlightenedGrowthHub Год назад
Hello @Edje Electronics Thank you for this amazing project, I must i has really been helpful and a life saver. I have question though. Is there like a script that i can use to resume training assuming i have the model saved in directory that is not temporary? Thank You in anticipation
@EdjeElectronics
@EdjeElectronics Год назад
Hi Abraham, yes, there should be a way to do that, but I don't have time to remember it right now. Hope you can figure it out!
@abrahamiborida7104
@abrahamiborida7104 Год назад
@@EdjeElectronics Thank you for your response. Yes i figured it out. Also, do you have a video for how to auto launch the python scripts at boot on the raspberry pi, that i don't have to login to the desktop environment before starting my script? Thank you.
@zegiyt4069
@zegiyt4069 11 месяцев назад
hello sir can you tell me how did you resume the training? I am having a really big trouble training my dataset since I have 6452 images on my dataset and I was training it for 40k steps just to have atleast good accuracy but it always get timeout before it even done training into 30k steps I wonder how did you make to resume it I really appreciate hope you share it
@Dr.Vincent_D_Gilmer
@Dr.Vincent_D_Gilmer Год назад
Can you do this with screenshots from a website to train it to identify certain images on a website?
@rosemutegi8830
@rosemutegi8830 Месяц назад
Great video
@EdjeElectronics
@EdjeElectronics 7 месяцев назад
Sigh, sorry guys. It looks like something changed in Colab or in TensorFlow, and now it's not able to run training on the GPU. I get several error messages like this when I try to run training in Step 5: " Could not load dynamic library 'libcudart.so.11.0' ". This means it's not able to load the CUDA libraries needed to run on the GPU. I'm not sure why. If anyone can figure out the problem, please post a solution. I'll dive into it after New Year's if no one has found anything by then. EDIT: I'll send $50 USD to the first person who can figure out a reliable solution and post it. And I'd also be highly interested in hiring you for a paid internship at ejtech.io 😃
@rikitiu369
@rikitiu369 7 месяцев назад
Up! Thank you!
@VietTran-ij2cp
@VietTran-ij2cp 7 месяцев назад
Up!!! Thank you so much
@markwassef8643
@markwassef8643 7 месяцев назад
I have the solution, however RU-vid deletes my comment because the code contains a URL. Any workaround for this?
@EdjeElectronics
@EdjeElectronics 7 месяцев назад
@@markwassef8643 cool! What’s your email? I’ll send you a message.
@EdjeElectronics
@EdjeElectronics 7 месяцев назад
Or, you can contact me at info@ejtech.io .
@Java_UA
@Java_UA 5 месяцев назад
Its great 👍 Please tell me about Python. It installed on your Raspberry pi?
@0oMardev
@0oMardev 3 месяца назад
Great job man, I love the work you've done ❤ I'm a complete beginner at this, I wanted to ask if it would be possible to add to the notebook on colab a way to save progress and then continue it in another session. When I train the model I get up to 20000 steps but then I get disconnected from colab (having the free version), I was thinking if before I get disconnected I could stop the training and then later (when colab allows it again) continue it.
@0oMardev
@0oMardev 3 месяца назад
Nevernind i solved this, for everyone interested i chnaged pretty much all of the paths to save on google drive.
@nikulee__
@nikulee__ 2 месяца назад
hello! would you mind if i can ask how to be able to save paths on gdrive ? thanks a lot
@0oMardev
@0oMardev 2 месяца назад
Hi, what I did was to replace the directories in the colab with “/mydrive/” so that everything is saved on google drive, for example instead of “!mkdir /content/images” I have “!mkdir /mydrive/images”. It is still quite risky because you are doing operations in your google drive. That's it ! I can't post my changes now because they are quite specific to my case (and I don't know if it always works), but this is how you can do it too.
@user-zw8hz7xc9k
@user-zw8hz7xc9k Год назад
Great Video! I used this to train a custom model to detect bricks for a brick laying machine. The only issue I have is getting it to work with a pi HQ camera like the one your using. It works with a USB webcam but I get an error "can't open camera by index" when I try with the pi HQ camera. Is there an additional step to make this compatible with that camera?
@EdjeElectronics
@EdjeElectronics Год назад
Thanks, that sounds like an awesome project! I think it might be a driver compatibility issue with the Picamera. They released new drivers a couple years ago, and I have had to use "legacy mode" to get them to work. Try following the steps in the first section on this page and see if it helps: projects.raspberrypi.org/en/projects/getting-started-with-picamera
@danielscaber447
@danielscaber447 Год назад
@@EdjeElectronics That worked! Thanks!
@karenjin7111
@karenjin7111 9 месяцев назад
Really good tutorial, I am following along for my school project, I can get as far as to the training, then it won't start training in Colab, in the log, it shows that the TensorFlow Addons needs tf version 2.12 - 2.15.0, would that be the case? I can see your video using python 3.8, currently the colab is run on python 3.10, could that be the reason? Could you please help? Thank you
@remsuuu
@remsuuu Год назад
hello, I have a question. I bought an edge tpu coral for more camera fps, I also used the file that downloaded in the final part which is for edge tpu. It works but it cannot easily detect objects when the coral is plugged in, but if the edge tpu is disconnected, it runs at 2 fps but it always detect the object. May I know if there’s a fix on this one? Thank you!
@PraiseTheLord527
@PraiseTheLord527 Год назад
Hello Remus! Just wondering if you were able to solve this issue? :O
@ambient-videos
@ambient-videos Год назад
So everything works great! Just wondering how to use it with Coral USB accelerator? Tried to run same code with -edge tpu
@akshayabraham2789
@akshayabraham2789 8 месяцев назад
Hey there. I am facing issues with training part. It showing dependencies issues with keras and tensorflow. Could you please help me with this problem
@PraiseTheLord527
@PraiseTheLord527 Год назад
@EdjeElectronics, I had a bug whereby on step 5, the training stops about a minute :( I practically did everything according to the tutorial. The code ends with a ^C symbol. Also, I noticed that the system RAM skyrocketed to 12.1Gb before the training process stopped... Could this be the issue? I would be really grateful if you could provide me some guidance please.
@user-xs7mu6lk6y
@user-xs7mu6lk6y Год назад
i have the same issue ! I'm pretty much sure this is beacause of the ram capabilities... I gess we have to subscibe to googlecolab pro
@kai-ten15
@kai-ten15 Год назад
Your images are too large and you're running out of memory. Resize them to be around 200-300KB, don't upload too many images, and you should be good to go
@cahyo.prk15
@cahyo.prk15 11 месяцев назад
Thanks for the helpful tutorial, but I want to make an inference on the esp32 cam, can you provide a solution?
@polenov_tv
@polenov_tv Год назад
Why does my learning process end just before the beginning of the analysis of images with "^C" in the last line?
@user-on7pw9oe4c
@user-on7pw9oe4c Год назад
i am also got this problem. I think we have this problem because memory was not enough. You can checked your dataset, especially size archive your dataset! If this workout, please response there
@danielcaralos2948
@danielcaralos2948 10 месяцев назад
Hello, can you please demonstrate how to configure the model output with classes as TensorBuffer, locations as TensorBuffer, scores as TensorBuffer, and numberofdetection as TensorBuffer?
@MegaDavY
@MegaDavY Год назад
Hey, how could I make it so that when running the program with the pre-trained files, the camera detects 50% of something and saves what it has detected in a text file?
@josemarlitoplanteras8829
@josemarlitoplanteras8829 Год назад
Is there any advice with big dataset? it will took more than 2 hours which will consume GPU usage and in the end it will cause google colab to stop due to GPU limit
@nurathirah1987
@nurathirah1987 Год назад
I did face the same issue! Do you had resolve the issue?
@alexmogovan8915
@alexmogovan8915 Год назад
Hello, i was wondering what framerate I could get on an android phone using this model ? I need to train my model to detect potholes and road hazards
@taknikiniga
@taknikiniga 10 месяцев назад
Can you make video or provide codelab to train for image segmentation with cnn
@jtd3e_19_muhammadyogaakbar4
excuse me sir, i want trouble notif "Corrupt JPEG data: 251 extraneous bytes before marker 0xd9" how to the fix this sir ? thaks you
@vikramm4967
@vikramm4967 Год назад
How to add images with null annotations to it? Should we just add the images or should we have to create XML files for it?
@CalmingRelaxation930
@CalmingRelaxation930 7 месяцев назад
Amazing work, but I noticed that the camera is very slow when you launch the test. Can you please tell me why? Thanks
@teyterry
@teyterry Год назад
Hi, may I ask if the Tensorflow Lite can be deployed on the Nvidia Jetson Nano?
@johanneos3157
@johanneos3157 Год назад
Hello, I encountered an error during training training runtime saying "(0) INVALID_ARGUMENT: Unknown image file format. One of JPEG, PNG, GIF, BMP required." How would I find the culprit for this error? I tried checking for the appendix of common errors, but it seems to be empty.
@johanneos3157
@johanneos3157 Год назад
Update: Totally forgot to follow-up on this. To fix it, simply check your image format. Be careful when retrieving images on google. It f'd my training for the first time. I would recommend getting the images yourself.
@user-mv1dr3sc2u
@user-mv1dr3sc2u 10 месяцев назад
Hello, friend!! Many thanks for this utterly useful video. I use trained model in Home Assistant addon DOODS and can't deal with error: AttributeError: 'TensorflowLite' object has no attribute 'input_data''` What do you think what i need to change in google colab sequencing in order to solve this issue?
Далее
Train a custom object detection model using your data
12:10
Adam Savage's Latest Flea Market Haul!
11:05
Просмотров 107 тыс.
iPhone socket cleaning #Fixit
0:30
Просмотров 17 млн