Train a custom object detection model using your data

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ย. 2024

ความคิดเห็น • 214

  • @AyushAshishWaghe21BCE071
    @AyushAshishWaghe21BCE071 11 หลายเดือนก่อน +3

    USELESS VIDEO CURRENTLY....takes almost eternity just to download the necessary packages....additionally not enough space too...

  • @vladimirputin00001
    @vladimirputin00001 ปีที่แล้ว +9

    Looks like this project stopped working, just getting a bunch of errors during installation

  • @abhijitsutar3561
    @abhijitsutar3561 ปีที่แล้ว +7

    I'm using the notebook currently in colab with python 3.9. While installing tflite-model-maker it's installing all the versions of tf-gpu >=2.6 , which leads to out of storage situation in colab, without properly installing the dependencies. If you checked my comment then please reply back . Thank you

    • @andreserafim1256
      @andreserafim1256 ปีที่แล้ว +1

      Did you solve this? I'm having the same issue.

    • @shannirmala
      @shannirmala 11 หลายเดือนก่อน

      i'm having the same issue and no solution yet

  • @bandara-sk3rf
    @bandara-sk3rf ปีที่แล้ว +7

    while I am downloading "!pip install tflite-model-maker" my Disk space is not enough for it. how can i manage it ?

  • @nabeelmalik.4714
    @nabeelmalik.4714 ปีที่แล้ว +7

    When i execute !pip install -q tflite-model-maker-nightly
    It start downloading dependencies and never stop until disk low message has occured.
    Any solution to this problem.?

    • @ambient-videos
      @ambient-videos ปีที่แล้ว +3

      Same problem

    • @simpasalsunda7244
      @simpasalsunda7244 2 หลายเดือนก่อน

      Same problem here, are you have resolved it yet?

  • @ungifted4311
    @ungifted4311 6 หลายเดือนก่อน +6

    As of 31,Mar,2024, tflite model maker can not be installed, due to compatibility issue with Python version 3.10 (According several report in Github and other sites).
    Is there any solution ???

    • @muhammadnorirfan4957
      @muhammadnorirfan4957 5 หลายเดือนก่อน

      tell me if you find the solution

    • @VasylKripko
      @VasylKripko 5 หลายเดือนก่อน

      what is the problem to use older python?

  • @aundo1647
    @aundo1647 ปีที่แล้ว +10

    The colab notebook doesn't work anymore, !pip install tf-model-maker is stuck in an infinite download loop. Why is that?

    • @defyphysics2955
      @defyphysics2955 3 หลายเดือนก่อน

      @@mattvr13 how can i do that? how can i create a virtual environment on google colab and install an older version of Python? which version of Python do i need specifically?

  • @mbrraghu
    @mbrraghu 4 หลายเดือนก่อน +3

    hi,
    !pip install -q tflite-model-maker-nightly
    !pip install -q tflite-support-nightly
    is killing the colab space, more than 50 GB. What is the solution?

    • @yusufsezgi9958
      @yusufsezgi9958 4 หลายเดือนก่อน

      Hello, were you able to solve it?

  • @jitesh_helloworld
    @jitesh_helloworld 2 ปีที่แล้ว +6

    Suddenly, model-maker package is not getting installed in the colab notebook you shared. Note book was working perfectly fine till last week.

  • @margramiof7926
    @margramiof7926 2 ปีที่แล้ว +14

    This video series is pure gold. Thank you for sharing and explaining the power of this framework. Just a comment, the colab notebook in the above link has an error in the line which installs the required packages. Instead of :
    !pip install -q tflite-model-maker-nightly
    !pip install -q tflite-support-nightly
    as shown in the video.
    It says:
    !pip install -q tflite-model-maker
    !pip install -q tflite-support
    In my case, those commands took a long time (almost timeout ) and they did not work.

    • @jitesh_helloworld
      @jitesh_helloworld 2 ปีที่แล้ว +3

      Thanks a lot. It worked and saved me a lot of effort 👍

    • @luizabbadia3411
      @luizabbadia3411 2 ปีที่แล้ว +2

      Thank you so much!!! I built some frame work based on all that procedure and I was trying to make it work in the last couple of days and I was frustrated.Thanks a lot for posting this salvior post!!!

    • @Jinx-dt6sr
      @Jinx-dt6sr 2 ปีที่แล้ว +1

      Been searching for a solution for like 3 hours now, Thanks so much!!

    • @elvenkim
      @elvenkim 2 ปีที่แล้ว

      thanks very much, i was stuck for days

    • @nabeelmalik.4714
      @nabeelmalik.4714 ปีที่แล้ว +1

      I execute both commands but it took very long time.
      Any solution for this problem..?

  • @楊-d9d
    @楊-d9d ปีที่แล้ว +3

    Can't use your project for training know . Could you please fix the error of installation ?

  • @Terrar1988
    @Terrar1988 ปีที่แล้ว +6

    can you please make a video of creating an absolutely empty model and training it from scratch (not transfer), even if thousands of pictures are required? It would be very useful for our scientific studies, thanks!

  • @amayuruupanith1336
    @amayuruupanith1336 ปีที่แล้ว +2

    error: subprocess-exited-with-error
    × Getting requirements to build wheel did not run successfully.
    │ exit code: 1
    ╰─> See above for output.
    note: This error originates from a subprocess, and is likely not a problem with pip.
    Getting requirements to build wheel ... error
    error: subprocess-exited-with-error
    × Getting requirements to build wheel did not run successfully.
    │ exit code: 1
    ╰─> See above for output.
    note: This error originates from a subprocess, and is likely not a problem with pip.
    I got this error.Can anyone solve this issue?

    • @babozone2
      @babozone2 ปีที่แล้ว

      저도 같은 문제를 가지고 있습니다. 구글은 텐서플로우를 관리할 생각이 없는거 같네요.

  • @thupilcharwaka
    @thupilcharwaka ปีที่แล้ว +8

    ERROR: Could not install packages due to an OSError: [Errno 28] No space left on device

    • @bandara-sk3rf
      @bandara-sk3rf ปีที่แล้ว

      have you fixed this. i am facing the same issue

  • @joshblenkinsop6157
    @joshblenkinsop6157 ปีที่แล้ว +5

    Spent 2 days trying to upload my own dataset to train the model. Will not work, strongly suggest starting with another tutorial.

    • @ptsd7403
      @ptsd7403 ปีที่แล้ว

      Did you find any solution or alternative

    • @__yusuf__
      @__yusuf__ ปีที่แล้ว

      Also, the format of the images must be jpg. The problem may be here. I encountered this problem. You can convert formats such as png from some sites on the internet to jpg and upload them to collab.

  • @Nicofisi
    @Nicofisi 2 ปีที่แล้ว +2

    The code does not work anymore, even the linked collab doesn't work when you run it in the browser :(

  • @silvanovich
    @silvanovich 2 ปีที่แล้ว +11

    Thank you for sharing this straight forward approach to object detection. I have read book chapters and looked at a variety of web pages describing how this can be done, and while I am grateful to those who shared their knowledge, this video was at a level that I can understand. It explains the concepts without resorting to jargon and having to use a .tfrec input format.

  • @vishwasrb2961
    @vishwasrb2961 7 หลายเดือนก่อน +3

    does it taking nearly 100GB to install the model maker? i mean to run the first step

    • @shaheermubarak
      @shaheermubarak 7 หลายเดือนก่อน

      yes did you found any solutions?

    • @vishwasrb2961
      @vishwasrb2961 7 หลายเดือนก่อน

      @@shaheermubarak no

  • @shooby117
    @shooby117 ปีที่แล้ว +2

    the packages won't install on google colab

  • @carlojhonsario1220
    @carlojhonsario1220 2 ปีที่แล้ว +2

    When I use print(detection_result.detections) I get these:
    [bounding_box {
    origin_x: 107
    origin_y: 57
    width: 439
    height: 311
    }
    classes {
    index: 0
    score: 0.9921875
    class_name: "surgical_mask"
    }
    ]
    How can I print the "class_name" only?

  • @russhall1097
    @russhall1097 2 ปีที่แล้ว +3

    Tried to use this with my own data. The format Pascal VOC, that must be different from my format, for Colab says there are zero images. In what format should we have our images? Jpegs and corresponding xml files of annotations? Is that Pascal VOC, or some other format?

  • @Niwly
    @Niwly ปีที่แล้ว +3

    Good day! Do you have an updated version of the collab? I'm trying to train right now but I am running out of memory installing -q tflite-model-maker. I guess they updated maybe. Thanks!

    • @nabeelmalik.4714
      @nabeelmalik.4714 ปีที่แล้ว

      Same problem,
      I've execute commands but it took very long time.
      Do you find any solution for this??😊

    • @Niwly
      @Niwly ปีที่แล้ว +2

      @@nabeelmalik.4714 Use the command Palette in colab with ctrl+shift+P. Then type "use fallback runtime version" and select. This will roll back to Python 3.9.16 runtime and tflite-model-maker can be installed. You need to connect to a runtime first, then the option will be available and it will restart with 3.9.16 instead of 3.10.
      Also just a heads up that apparently this will only be available until mid-May so a fix for 3.10 probably is still needed to work with Colab after that.

    • @nabeelmalik.4714
      @nabeelmalik.4714 ปีที่แล้ว +1

      No, i don't have updated version and my work is running perfectly fine using fallback version.

    • @vikramm4967
      @vikramm4967 ปีที่แล้ว

      @@Niwly Which will be available till mid-may? The fix which you have mentioned?

    • @Niwly
      @Niwly ปีที่แล้ว

      @@vikramm4967 yes. its not working right now

  • @zillur-av
    @zillur-av 2 ปีที่แล้ว +1

    I do not know what happened. When I run efficientdet0, it is working fine. But when I run a custom trained model, nothing shows and also no error.

  • @darkalden
    @darkalden ปีที่แล้ว +1

    tflite-model-make is completely broken and almost impossible to install. All the ways I try generate version incompatibility errors and an etc of other errors. Any easy way to install it on this date or any guide to the versions of the dependencies that will probably be installed?

    • @andreserafim1256
      @andreserafim1256 ปีที่แล้ว

      Did you find a solution for this? Having the same issue...

  • @denizcanturk8441
    @denizcanturk8441 2 ปีที่แล้ว +3

    Great explanation and most importantly whatever he said works properly... Great job and thanks..

  • @thanyawach
    @thanyawach 2 ปีที่แล้ว +1

    I have a problem about training section and I cannot fix it

  • @mugtabataha3355
    @mugtabataha3355 2 ปีที่แล้ว +1

    Everything worked perfectly except for one thing when i downloaded my model and went inside examples/lite/examples.... I can't use cp - /download it says missing destination can you help me please

  • @gdbdff
    @gdbdff 2 หลายเดือนก่อน

    Assistance Needed,
    how to do locally on my own PC? google colab isn't working for me for some reason.

  • @hung1853
    @hung1853 ปีที่แล้ว +1

    Now, I can not install tflite model maker on gg colab . It download very file and use very large memory.

    • @feudGame
      @feudGame ปีที่แล้ว

      You can do the same locally. there are instructions there.

    • @hung1853
      @hung1853 ปีที่แล้ว

      ​@@feudGameit's like ssd mobilenet?

  • @seanmuirhead2156
    @seanmuirhead2156 ปีที่แล้ว +1

    did it take anyone else 10 years to download dependencies?

  • @TechCree
    @TechCree 2 ปีที่แล้ว +5

    I am really enthusiastic about your contribution and hope for some more videos of this kind. My goal is that the Pi can later output an acoustic message when it has detected an object. For example, if a person were to enter the room in which a blind person is located, I want the person to be recognized and I can use Python and possibly espeak to communicate that "Pete" has entered the room. Or at a danger point it would be possible to get a message when an object is approaching. Or, if necessary, switch lights on and off via GPIO interfaces or start an LED warning sequence. My head bursts when I think about the possibilities it offers. Please please continue in this direction !!!

    • @TechCree
      @TechCree 2 ปีที่แล้ว

      I can find all recorded objects via the string dedetions (from your python script) and output them via the print command. I can now save it as a python command in a file or via api in a google sheet. the content is a bit caotic but I'll see how it gets along. please let me know if there is a better way. dn

    • @khanhleviet5416
      @khanhleviet5416 2 ปีที่แล้ว +2

      @@TechCree To make your device speak out the detected objects, you can check out a Python library called gTTS from Google to convert text into speech.
      gtts.readthedocs.io/en/latest/

    • @shennaldsonarzaga4568
      @shennaldsonarzaga4568 ปีที่แล้ว

      Hello I'm dealing with the same project. Have successfully figured out the codes?

  • @sanjuk2325
    @sanjuk2325 2 ปีที่แล้ว +1

    how to save checkpoint in between each epochs and retain them after and continue ?...

  • @nanaasanteful
    @nanaasanteful 4 หลายเดือนก่อน

    Every step has been followed but keep getting this error "RuntimeError: Input tensor has type kTfLiteFloat32: it requires specifying NormalizationOpt ions metadata to preprocess input images." Raspberry Pi 4 Bullseye, 32-bit

  • @thomashu1095
    @thomashu1095 5 หลายเดือนก่อน

    I have moved to mediapipe model maker and successfully created a simple model to run on my Pi. However, I tried to compile it to a Edgetpu using your colab. After downgrade tensorflow from 2.15.0 to 2.13.0. It did compile, however, it failed to run on Pi because of some runtime errors. I noticed that there is a line “from tflite_support import metadata”. I wonder if there is an equivalent “mediapipe_support”? Would you please provide updated instructions? Thanks!

  • @aayushsinha9620
    @aayushsinha9620 ปีที่แล้ว

    # Load the TFLite model
    ---> 17 options = ObjectDetectorOptions(
    18 num_threads=4,
    19 score_threshold=DETECTION_THRESHOLD,
    NameError: name 'ObjectDetectorOptions' is not defined
    I have trained the model using my dataset , but when I try to load the trained model using a image-url , it shows this error.

  • @peppiler
    @peppiler 2 ปีที่แล้ว +1

    Hello, when running "python detect.py --model android.tflite" I get "Segmentation fault"
    Any idea how to overcome this?

    • @khanhleviet5416
      @khanhleviet5416 2 ปีที่แล้ว

      I think you're using an older version of tflite-runtime (2.5.0). Please update to the latest version (2.7.0) by running "pip install tflite-runtime --upgrade"

    • @peppiler
      @peppiler 2 ปีที่แล้ว

      @@khanhleviet5416 It works, thank you!

  • @andrejustinvalenzuela2976
    @andrejustinvalenzuela2976 4 หลายเดือนก่อน

    Can you do the model training on a windows pc instead of the RPi, in my case it is RPi 3b, then just download the finished model/product on the RPi after?

  • @hichamm86
    @hichamm86 2 ปีที่แล้ว +1

    Thank you so much for this video, please i have a question : how many classes can we train with tflite?

  • @kiriobalbous8210
    @kiriobalbous8210 ปีที่แล้ว

    Hi, I'm an engineering student and I have to build a beer bot pong. I've use your video for create my model and use it. I can not return the position of my object. i've read lots of article aboute bounding box but i can not use it. does anybody know how a can return contact details?
    thanks in advance

  • @einstein_123
    @einstein_123 ปีที่แล้ว

    while copying the model i am getting errors like "missing destination operand after /home/pi/Downloads/android.tflite" how can i fix it .can anyone help me please .it is emergency for me.

  • @aqilhakim3459
    @aqilhakim3459 11 หลายเดือนก่อน

    Sir please this is urgent when i upload the file xml it is always getting fail because my file is over 200 picture in it so i overcome this problem

  • @davehitesh9697
    @davehitesh9697 4 หลายเดือนก่อน

    hello today i saw this video i dont understand one things what is validation data ? i have to create a model for full face detection only face without any background

  • @GeorgeLenoHolmesJr
    @GeorgeLenoHolmesJr 2 ปีที่แล้ว +3

    Thank you for the video!
    Question: The way in which this model was trained assumes that there is always an 'android' in the FOV of the camera, because all of the provide images for training include an android in the photo (i.e. no null annotations are provided).
    Does Model Maker support null annotations? Is there a preferred Pascal VOC xml format that should be provided to account for null annotations?

    • @vikramm4967
      @vikramm4967 ปีที่แล้ว

      Hey, did you find any method to solve this?

    • @GeorgeLenoHolmesJr
      @GeorgeLenoHolmesJr ปีที่แล้ว

      @@vikramm4967 From my research it appears that tf lite is doing work in the background to train with null data. My team has trained models with null data by providing xml files that completely exclude the "object tag" (and its sub tags) from the xml file. (To be clear, we did not need to create a null data class or label).
      The trained model does well when deployed in identifying frames containing null data and not generating a bounding box.
      NOTE: It does appear important to test with the percentage of your training and validation data that includes null samples, for our application, a 50-50 split did not give good results; a 85-15 split, however, did provide good performance.
      Please let us know how this works for your application. Thanks

    • @vikramm4967
      @vikramm4967 ปีที่แล้ว

      @@GeorgeLenoHolmesJr Sure

    • @vikramm4967
      @vikramm4967 ปีที่แล้ว

      @@GeorgeLenoHolmesJr just to clarify, you created xml file without object tag and you did not leave background images without creating xml file
      Because i didn't create xml files for the background images and the model is still training, I just want to know if it is including these images or if i should create xml files

    • @GeorgeLenoHolmesJr
      @GeorgeLenoHolmesJr ปีที่แล้ว +1

      @@vikramm4967 Every image we trained with had a corresponding XML file. The images that did not have objects that needed to be detected, we used corresponding XML files without object tags.

  • @ramacharanchalla7996
    @ramacharanchalla7996 7 หลายเดือนก่อน

    samples are used to measure how well the model can generalize and recognize objects that it has never seen before. Can anybody say

  • @KarthickRobo
    @KarthickRobo 2 ปีที่แล้ว

    thanks a lot i am new to computer vison its easy to start

  • @nachoridesbikes
    @nachoridesbikes ปีที่แล้ว

    hey ther i xould not run the example as tf.keras.mixed_precision.experimental has been deprecated. any help would be much appriciated! thanks!

  • @darrylchoo
    @darrylchoo ปีที่แล้ว +1

    Hi, great video. Is there a way to make the resolution of the pi camera video capturing clearer?

  • @ftcsolar-o9b
    @ftcsolar-o9b ปีที่แล้ว

    How to run custom binary image classification model converted to tflite in raspberrypi?

  • @full_bearfull_bear4783
    @full_bearfull_bear4783 2 ปีที่แล้ว

    Why is it like impossible to find out how to load the model and continue training it? The only commands left out that everybody will need to use.

  • @ChrisHalden007
    @ChrisHalden007 2 ปีที่แล้ว +2

    Really cool. Thanks

  • @python1depl183
    @python1depl183 ปีที่แล้ว

    is it work for placard detection ...one placard contains 4 unique shapes while rotate..

  • @ManuelHernandez-zq5em
    @ManuelHernandez-zq5em 2 ปีที่แล้ว +1

    I noticed the "train" folder has the jpg and xml files (the xml files were surely generated by labelImg after labeling the images). However, I don't know why the "validate" folder also has xml files. Were these xml files also generated with labelImg and with what purpose if in my opinion this folder should only have the jpg files. I mean, shouldn't the "validate" folder only contain the images files to validate (test) the generated android.tflite model?

    • @ethennichols5649
      @ethennichols5649 2 ปีที่แล้ว

      Yes the validate folder needs the xml files because it needs to what is in the image to is in order to see if the models prediction was correct

    • @grenadeasc
      @grenadeasc ปีที่แล้ว

      if you don't give the code the answer in the form of an xml you would never know if he did it correctly so when validating you basically do prediction(image) == answer in xml

  • @paarthvenomgaming1617
    @paarthvenomgaming1617 2 ปีที่แล้ว

    i am sorry but when i run this on my raspi-4 and my macos it shows an error where it says PortAudio not found.pls tell how to fix this error

  • @ayeshasiddiqui9068
    @ayeshasiddiqui9068 ปีที่แล้ว

    While running the code I am getting no module tflite _support and not able to install it

  • @jerecbazar205
    @jerecbazar205 ปีที่แล้ว

    where Should I insert If I want to add audio in every object that is being detected

  • @hj2931
    @hj2931 2 ปีที่แล้ว +1

    thanks for sharing knowledge!

  • @mardeenosman8979
    @mardeenosman8979 2 ปีที่แล้ว +1

    Hello, thank you so much very good informations.. I have one question please
    Can we use pretrained model on different type of data for example if the data used was 2D images can I use transfer learning on 3D images??

    • @khanhleviet5416
      @khanhleviet5416 2 ปีที่แล้ว

      No, Model Maker currently only supports transfer learning for object detection on 2D images.

  • @TechCree
    @TechCree 2 ปีที่แล้ว

    Without the one list of data that the object recognition generates, it's all just a nice gimmick that doesn't help. has someone managed to create a list? nothing comes from the Tensorflow team,

  • @leventtoprak8250
    @leventtoprak8250 5 หลายเดือนก่อน

    I am getting error while pip commands executing. is there any solution? I bought pro version of colab, before that disk space was not enough.

    • @IvanPetrov-b8n
      @IvanPetrov-b8n 4 หลายเดือนก่อน

      Everything works better with 3.8 python and you have to resolve pip installation process yourself. It related with libraries dependencies you have to install in your system and finally CUDA Nvidia packet of libs to make tensorflow works correctly.
      I just installed yesterday. Now everything works good and I had many errors with dependencies.

  • @lucapoli3562
    @lucapoli3562 2 ปีที่แล้ว

    With this model can I use the command model.save to obtain the keras_metadata file? And I need to install a different version of Tensorflow to do this?

  • @peppiler
    @peppiler 2 ปีที่แล้ว

    How can TensorFlow Lite models be containerized (using Docker)?

  • @Bebo991_G
    @Bebo991_G 4 หลายเดือนก่อน

    i tried to to use it but the pip install tflite-model-maker, downloaded about 50GB and reached google's storage limit

    • @ch1ldr3n27
      @ch1ldr3n27 4 หลายเดือนก่อน

      same for me :(

  • @SurendraMaran-n7r
    @SurendraMaran-n7r ปีที่แล้ว

    I have a joke on google, but it is deprecated.

  • @MrSANS
    @MrSANS 2 ปีที่แล้ว +1

    Hello, how about custom object detection for react-native with tensorflow.js ?

    • @khanhleviet5416
      @khanhleviet5416 2 ปีที่แล้ว

      You can use TFLite Task Library for TF.js to run the TFLite model trained with Model Maker using TF.js. Check out the example here:
      js.tensorflow.org/api_tasks/0.0.1-alpha.8/#class:ODCustomModelTFLite

    • @truonglaminh3519
      @truonglaminh3519 2 ปีที่แล้ว

      @@khanhleviet5416 I got an issue when using TFLite Task Library. Could you let me know what happen with it?
      Error: Failed to create ObjectDetector: INVALID_ARGUMENT: Output tensor at index 0 is expected to have 3 dimensions, found 2. [tflite::support::TfLiteSupportStatus='400']

    • @khanhleviet5416
      @khanhleviet5416 2 ปีที่แล้ว

      @@truonglaminh3519 It sounds like your TFLite model is invalid. Could you post your TFLite model on the TensorFlow forum and details about how you created that and tag me (khanhlvg@) there? I'll take a look.
      discuss.tensorflow.org/

    • @truonglaminh3519
      @truonglaminh3519 2 ปีที่แล้ว

      @@khanhleviet5416 I have used your model in this video and it still error
      const model = await tfTask.ObjectDetection.CustomModel.TFLite.load({
      model:
      'android.tflite',
      });
      // Run inference on an image.
      const img = document.querySelector('img');
      const result = await model.predict(img);
      console.log(result.objects);
      // Clean up.
      model.cleanUp();

  • @leonard866
    @leonard866 2 ปีที่แล้ว

    Do you know if its possible to start TFLite on a MacM1?

  • @jyothinkjayan6508
    @jyothinkjayan6508 2 ปีที่แล้ว

    How many images of a particular class required for training?

  • @ddadabbo
    @ddadabbo 2 ปีที่แล้ว

    I am getting the following error when trying to run the model in the google Colab link. Also not working when I tried to make image classifier. Is model maker currently not working?
    ######Line trying to Run
    model = object_detector.create(train_data, model_spec=spec, batch_size=4, train_whole_model=True, epochs=20, validation_data=val_data)
    ######
    ###Error Code Bellow###
    Epoch 1/20
    ---------------------------------------------------------------------------
    UnimplementedError Traceback (most recent call last)
    in ()
    ----> 1 model = object_detector.create(train_data, model_spec=spec, batch_size=4, train_whole_model=True, epochs=20, validation_data=val_data)
    4 frames
    /usr/local/lib/python3.7/dist-packages/tensorflow/python/eager/execute.py in quick_execute(op_name, num_outputs, inputs, attrs, ctx, name)
    53 ctx.ensure_initialized()
    54 tensors = pywrap_tfe.TFE_Py_Execute(ctx._handle, device_name, op_name,
    ---> 55 inputs, attrs, num_outputs)
    56 except core._NotOkStatusException as e:
    57 if name is not None:
    UnimplementedError: Graph execution error:
    DNN library is not found.
    [[{{node stem/conv2d/Conv2D}}]] [Op:__inference_train_function_96435]

  • @richarballesteros5442
    @richarballesteros5442 2 ปีที่แล้ว +1

    i have been 2 years trying to do this and finally works

    • @Lolatyou332
      @Lolatyou332 2 ปีที่แล้ว +1

      I've been using OpenCV for a professional usecase on object detection. I might try using tensorflow now that there seems to be more information available on implementation, such as this video.

  • @Team-fh2rr
    @Team-fh2rr ปีที่แล้ว

    Good day!
    We have some issues with object detection on custom datasets and would be appreciated any advice. Is it possible to have a 1-hours consultation? How much will it cost?

  • @luizabbadia3411
    @luizabbadia3411 ปีที่แล้ว

    Please, I receive a bunch of errors :
    Building wheel for fire (setup.py) ... done
    ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
    xarray 2022.12.0 requires packaging>=21.3, but you have packaging 20.9 which is incompatible.
    statsmodels 0.13.5 requires packaging>=21.3, but you have packaging 20.9 which is incompatible.
    plotnine 0.10.1 requires matplotlib>=3.5.0, but you have matplotlib 3.4.3 which is incompatible.
    mizani 0.8.1 requires matplotlib>=3.5.0, but you have matplotlib 3.4.3 which is incompatible.
    What is going wrong??? It was working OK...

    • @luizabbadia3411
      @luizabbadia3411 ปีที่แล้ว

      Well I think I solved! Removed the '-nightly' parameter

    • @karimabdalla3136
      @karimabdalla3136 ปีที่แล้ว +1

      @@luizabbadia3411 I'm getting ERROR: Cannot install tflite-model-maker==0.1.2, tflite-model-maker==0.2.0, tflite-model-maker==0.2.1, tflite-model-maker==0.2.2, tflite-model-maker==0.2.3, tflite-model-maker==0.2.4, tflite-model-maker==0.2.5, tflite-model-maker==0.3.0, tflite-model-maker==0.3.1, tflite-model-maker==0.3.2, tflite-model-maker==0.3.3, tflite-model-maker==0.3.4, tflite-model-maker==0.4.0, tflite-model-maker==0.4.1 and tflite-model-maker==0.4.2 because these package versions have conflicting dependencies. after running "!pip install tflite-model-maker", please help

  • @deepalisharma1327
    @deepalisharma1327 2 ปีที่แล้ว

    What is that TEMP_FILE under 'Run object detection and show the detection results' section?

    • @kaysong3800
      @kaysong3800 2 ปีที่แล้ว

      I am also curious about that, did you get any idea?

  • @xxegyzz5250
    @xxegyzz5250 2 ปีที่แล้ว +3

    I was trying to follow your steps and I'm half way through but I am getting an error 'int' object has no attribute 'label_map' in the training part. What should I do? This is my first time customizing my own dataset I am having a hard time figuring it out. Please help.

    • @khanhleviet5416
      @khanhleviet5416 2 ปีที่แล้ว

      It's hard to troubleshoot code issues on TH-cam. Can you post a notebook to reproduce your issue to the TensorFlow Forum discuss.tensorflow.org/ and tag me (khanhlvg@). I'll take a look.

    • @apijaysharma
      @apijaysharma 2 ปีที่แล้ว

      Same here did you got any solution?
      I found one but wasn't helpful it said to install numpy version 1.11 bt I couldn't install

    • @xxegyzz5250
      @xxegyzz5250 2 ปีที่แล้ว

      @@apijaysharma No, I did not got any solution so I used edge impulse instead. It is very easy to follow and use. Sorry for the very late reply btw.

  • @vladyslavblazhenko7569
    @vladyslavblazhenko7569 ปีที่แล้ว

    can i run it on windows instead of raspberry pi ?

  • @abdullahimtiaz6564
    @abdullahimtiaz6564 2 ปีที่แล้ว +1

    Thank you so much for this. I have trained the model and it worked, now I want to take it to the next step like for taking some decisions. if a desired thing is detected then I want to have some controls with the pi, for example removing/sorting a product moving on a conveyer belt after it gets detected. How can we do it ?

    • @killua349
      @killua349 2 ปีที่แล้ว

      I want to do the same. Have you tried it?

    • @khanhleviet5416
      @khanhleviet5416 2 ปีที่แล้ว +1

      It'll depend on what's the decision you want to take. For example if you want to remove a product moving on a conveyor belt, you'll need a robot arm or a mechanical device to do so. The robot arm or the device needs to have an API that allow you to control it from the Raspberry Pi.

    • @killua349
      @killua349 2 ปีที่แล้ว

      @@khanhleviet5416 yes I actually have a actuator , and i used the index which stored the value of the object detected in the code to further instruct. Thanks 👍

    • @eduardodeleon1132
      @eduardodeleon1132 2 ปีที่แล้ว

      @@killua349 Could you explain to me, how did you manage to do it? Please.
      I am currently developing a task and I need to activate a solenoid valve when detecting a certain object.

  • @abdullahimtiaz6564
    @abdullahimtiaz6564 2 ปีที่แล้ว

    When I import model_spec and quantizationConfig from tflite-model-maker it gives error
    notfounderror: /usr/local/lib/python3.7/dist-packages/scann/scann_ops/cc/_scann_ops.so: undefined symbol: (a random code)
    I tried everything that was available and recommended to do so but couldn't resolve the error. Why it's generating error on colab ? It was working fine a week ago but now error occurs everytime

  • @mkeremyucedag
    @mkeremyucedag 2 ปีที่แล้ว

    Hello, I have updated tflite-runtime to 2.7.0 but I still get segmentation error. Any recommendations?

    • @mkeremyucedag
      @mkeremyucedag 2 ปีที่แล้ว

      If anyone has issued same problem, I've solved it with updating pip version then updating tflite-runtime

  • @cristiandavidandrade807
    @cristiandavidandrade807 2 ปีที่แล้ว

    Importe los paquetes necesarios. da error solucion ?

  • @bushesbakedbeans1fan888
    @bushesbakedbeans1fan888 2 ปีที่แล้ว +1

    Hey thanks a ton for making this guide. Currently I have a slight issue with it though, and that is at step three I get the following error when trying to use my own dataset. Here it is, (ValueError: The size of the train_data (0) couldn't be smaller than batch_size (4). To solve this problem, set the batch_size smaller or increase the size of the train_data). Can someone please help me with this?

    • @KingTine724
      @KingTine724 2 ปีที่แล้ว

      HEY, I am also getting the same problem!
      did you figure out the solution

    • @bushesbakedbeans1fan888
      @bushesbakedbeans1fan888 2 ปีที่แล้ว

      @@KingTine724 Nope, I just decided to use teachable machine image classification and the tensorflows GitHub's example app.

    • @KingTine724
      @KingTine724 2 ปีที่แล้ว

      @@bushesbakedbeans1fan888 So did it work and if it did , can you give links to the code that you used and other resources pertaining to model that you have created.

    • @bushesbakedbeans1fan888
      @bushesbakedbeans1fan888 2 ปีที่แล้ว

      Adafruit teachable machine guide should also work

    • @bushesbakedbeans1fan888
      @bushesbakedbeans1fan888 2 ปีที่แล้ว

      @@KingTine724 Okay it seems like my comments with links are getting deleted, so I'd recommend you use the adafruit teachable machine guide. I followed a different one but I think it was taken down. Another option I'm looking into is training with one of tensorflow's image classification google collabs.

  • @josenoventaeum3219
    @josenoventaeum3219 6 หลายเดือนก่อน

    You're so objective and clear that everything sounds veeeery easy!

  • @pakpomsang5
    @pakpomsang5 2 ปีที่แล้ว

    Sorry, I have one question, can I use this model with Object Detection on android studio

  • @wasgeht2409
    @wasgeht2409 2 ปีที่แล้ว +1

    great

  • @ltesGo
    @ltesGo 2 ปีที่แล้ว

    thx for your tutorial ! Can you make a video about training 3D object detection model (Tensorflow Objectron ) ?

    • @khanhleviet5416
      @khanhleviet5416 2 ปีที่แล้ว +1

      Thanks for the request. I'll look into that :)

  • @fabriziotringali4915
    @fabriziotringali4915 2 ปีที่แล้ว

    Hi, can I also use google teachable machines to train my own trained model.tflite (tensorflowlite model)? Do you have a tutorial about it? Thanks a lot for your support.

    • @marcusyungchong7944
      @marcusyungchong7944 ปีที่แล้ว

      Hi, do you have any update for this? I'm currently looking at the same thing and appreciate if there's any update from you

  • @ananditachakraborty7439
    @ananditachakraborty7439 ปีที่แล้ว

    I guess this tutorial gon obsolete

  • @agroconsultant7340
    @agroconsultant7340 2 ปีที่แล้ว

    helllo. can i chenge category names inn colab?

  • @user-ybk
    @user-ybk ปีที่แล้ว

    공부하고 싶은 동영상이 여기 었었네요.. 잘 봤습니다~

  • @Auditor1337
    @Auditor1337 ปีที่แล้ว

    thank you a lot, you made understanding this a lot easier.

  • @kaveeshamadhubhashana3094
    @kaveeshamadhubhashana3094 2 ปีที่แล้ว

    how can i move this detection into real
    time

  • @avinashsoni9533
    @avinashsoni9533 2 ปีที่แล้ว

    how you make .xml file with jpg please suggest

  • @ruchikmahesh755
    @ruchikmahesh755 2 ปีที่แล้ว

    The size of the train_data (0) couldn't be smaller than batch_size (4). To solve this problem, set the batch_size smaller or increase the size of the train_data. This error is not getting right what ever I do...Please it would be great if anyone told me how to fix this error as I am working on a project and need this to make my object detection work!Thanks in advance..

    • @rokaskirdulis8458
      @rokaskirdulis8458 2 ปีที่แล้ว

      Hi, I am having the same problem, I you have already fixed this error, please tell me what is wrong. Thanks

    • @castheeuwes1085
      @castheeuwes1085 2 ปีที่แล้ว

      Same here. Did anybody solve this?

    • @tomplatner8890
      @tomplatner8890 ปีที่แล้ว

      Also having the same problem....Somebody help!

  • @II__zeus__II
    @II__zeus__II 2 ปีที่แล้ว

    Can you train an instance segmentation model using DeepLab v3 using the same framework and transfer learning?

    • @khanhleviet5416
      @khanhleviet5416 2 ปีที่แล้ว

      Model Maker doesn't support image segmentation yet. However, you can use the deeplabv3 code in tensorflow/models GitHub repository to train a custom model.
      github.com/tensorflow/models/tree/master/research/deeplab

  • @nguyenhoangphuc98
    @nguyenhoangphuc98 ปีที่แล้ว

    What do you do upload your dataset folder to Google Colab ?

    • @TensorFlow
      @TensorFlow  ปีที่แล้ว

      You can either upload the files directly to Colab runtime through the upload button on the left hand side, or link the Colab session with Google Drive. Check out this notebook for more options about uploading data to Colab: goo.gle/3qxoIOq

  • @alzalame
    @alzalame 2 ปีที่แล้ว +1

    Nice and easy , thank you very much

    • @2023-c9p
      @2023-c9p 2 ปีที่แล้ว

      Does it work well without errors?

    • @avinashsoni9533
      @avinashsoni9533 2 ปีที่แล้ว

      how to keep .xml extension in dataset

  • @stu7075
    @stu7075 2 ปีที่แล้ว

    is this can work on windows ??

  • @unitegaming46
    @unitegaming46 2 ปีที่แล้ว

    What should be the averages precision score for module to be consider as good?

    • @Lolatyou332
      @Lolatyou332 2 ปีที่แล้ว

      Define good...
      If you are planning at looking at single images, then you will need 90%+ accuracy.
      Models used for video can be less accurate because you will have more frames to reference to attempt to find the object, but you would want much fewer false positives than false negatives.
      Just have to use math / statistics to determine how useful your model actually is given in the environment or context that you expect it to be used.

  • @alami9024
    @alami9024 2 ปีที่แล้ว

    Thank you so much for this :)

  • @elmehdibaaziz500
    @elmehdibaaziz500 2 ปีที่แล้ว

    Hello ,
    Thanks for video , it is well explained and easy to follow.
    I have one question , i tried to create my own dataset , i created the model , but i want to evaluate the model , i get 0 in accuracy and other parameters .
    Can you please help me out , i have an university project and i am stuck on this step.
    Thank you so much

    • @tylerstyle307
      @tylerstyle307 ปีที่แล้ว

      i have the same problem where the accuracy is ridiculously low. If anyone knows how to fix this, please do tell

    • @aryandalal5409
      @aryandalal5409 ปีที่แล้ว

      @@tylerstyle307 I dont know the exact reason why the accuracy is so low but you can always try different model. Models learn different parameters of the dataset to give accuracy using a different model might help it.

  • @kevinyoung9243
    @kevinyoung9243 2 ปีที่แล้ว

    anyone know what that image labeler at 3:15 is

  • @2023-c9p
    @2023-c9p 2 ปีที่แล้ว

    10:41(python3 detect.py --model android.tflite) -> segmentation fault😢😢😢 plz help me
    but python3 detect.py --model efficientdet_lite0.tflite work well

    • @mugtabataha3355
      @mugtabataha3355 2 ปีที่แล้ว +1

      I have problem with downloading the zip file from the drive can you tell how you passed that step😅

    • @2023-c9p
      @2023-c9p 2 ปีที่แล้ว +1

      @@mugtabataha3355 tflite file? I think Just drag or right mouse click -> download

    • @mugtabataha3355
      @mugtabataha3355 2 ปีที่แล้ว +1

      @@2023-c9p I meant the file that contains your own dataset😅

    • @2023-c9p
      @2023-c9p 2 ปีที่แล้ว +1

      @@mugtabataha3355code Comment is automatically deleted by youtube
      that happened to me too, I think that happened when the data loading from the drive to colab failed.

    • @mugtabataha3355
      @mugtabataha3355 2 ปีที่แล้ว +1

      @@2023-c9p thank you so much :) I wish you all the best with your project

  • @SanjeevKumar-dr6qj
    @SanjeevKumar-dr6qj 2 ปีที่แล้ว

    thank you