Make an image classification app using React and Tensorflow JS

Sdílet
Vložit
  • čas přidán 4. 09. 2024
  • In this video, we will learn how to make a simple Image Classification / Identification app using React and Tensorflow JS. Tensorflow JS is a machine learning library for Javascript. For this tutorial, there is no machine learning knowledge required.
    We are going to use the pre-trained machine learning model from Tensorflow JS called mobilenet. This model is specifically used for image classification. This is a very simple app that uses tensorflow model, and tries to identify the content of the image.
    So if we use an image of animals like cats, dogs or other simple things, The Tensorflow will work behind the scenes to identify the content for this image, and will display the results in 3 guesses.
    Link to the finished product: imageid.netlif...
    Link to the Git Repository: bitbucket.org/...
    If you find this video helpful or informative, please like, share and comment on this video, and Please subscribe to my channel for more videos like this.
    Thank you for watching.
    Buy me a Coffee: paypal.me/thou...

Komentáře • 57

  • @ahmedalsaati3408
    @ahmedalsaati3408 Před 3 lety +8

    Because you are fluent in this and understand your 'industry', you are brilliant in transferring the knowledge in a highly excellent and organised way. The creative is creative. Thank you.

  • @elixir2004
    @elixir2004 Před 2 lety +4

    You deserve more likes. This is a masterclass. Thank you very much.

    • @thoughtspan
      @thoughtspan  Před 2 lety

      Thank you for your comment and Thanks for watching :) Cheers :)

  • @morshedulislamriaad6496
    @morshedulislamriaad6496 Před 3 lety +3

    Very organised tutorial... Do more of these..

    • @thoughtspan
      @thoughtspan  Před 3 lety +1

      Thank you for your comment and Thanks for watching :) Cheers :)

  • @orogheneemudainohwo3493
    @orogheneemudainohwo3493 Před 2 lety +1

    Thank you for showing me how to use tensorflow in a react app

    • @thoughtspan
      @thoughtspan  Před 2 lety

      Thank you for your comment and Thanks for watching :) Cheers :)

  • @sergyyoubi3739
    @sergyyoubi3739 Před 2 lety +2

    thank you for this tutorial! I've learned so many things!

    • @thoughtspan
      @thoughtspan  Před 2 lety

      Thank you for your comment and Thanks for watching :) Cheers :)

  • @gptinsights
    @gptinsights Před 2 lety

    A Shame you stopped making videos! Awesome tutorial and explanation ! thanks for sharing

  • @codewithdevhindi9937
    @codewithdevhindi9937 Před 2 lety

    Awsome video bro you deserve way much more likes then you have crisp clear explaination fluent english and a very big brain keep it up you will reach at the top bro 🚀🚀🚀🚀🚀🔥🔥🔥🔥🔥🔥

  • @Gauraha_Sniper
    @Gauraha_Sniper Před 2 lety +3

    updated dependencies are available, and there is a lot of error downloading the old ones. how can i solve that?

  • @jayadurgavenkateswaran4043

    Thanks a lot for this awesome content 😄

  • @m2kdevelopments
    @m2kdevelopments Před 11 měsíci

    Great stuff

  • @kikevanegazz325
    @kikevanegazz325 Před rokem

    Awesome! Subscribed fella, here!

  • @charlescoult
    @charlescoult Před rokem

    That was really well done 👍

  • @paolagarcia7137
    @paolagarcia7137 Před 2 lety +1

    Thank you!

  • @amirkhankhattak4292
    @amirkhankhattak4292 Před 5 měsíci

    Hi,
    Hope you are doing well. Can You make a video on how to use custom trained model in react native app???
    Furthermore if i want to use multiple models in one react native app how to do it?
    thanks

  • @renzxstech1761
    @renzxstech1761 Před 6 měsíci

    why mines error says "No backend found in registry."?

  • @azgiraffe
    @azgiraffe Před 3 lety +1

    Hi is it possible to limit the classification like example when I want flowers only? Using this?
    The other sources use android as their IDE which my laptop can't handle because its only 2 gb ram
    Thanks for this btw I have hope now and ideas for my upcoming final year school project

  • @gayathridevip4632
    @gayathridevip4632 Před rokem +1

    Can u tell the windows command as I was using windows os

  • @dummyhehe-px1zm
    @dummyhehe-px1zm Před rokem

    What is the model used in this project and does it use progressive web app (pwa)?

  • @codecrafts5263
    @codecrafts5263 Před 11 měsíci +1

    Not working for me. model not loading

  • @Sw_665
    @Sw_665 Před 2 lety +1

    classify is showing error instead of array

  • @woooooooovely
    @woooooooovely Před rokem

    Can you upload how to coding for react + tensorflow.js object detection?

  • @naumaniftikharsatti5721

    Thank you so much for such an awesome video. Can you help me with one thing?
    How can I use my custom model in this app?
    If you can help me I would be really grateful.
    Thank you in advance

  • @gayathridevip4632
    @gayathridevip4632 Před rokem

    Is the css automatically aligned??

  • @anuragbhardwaj4233
    @anuragbhardwaj4233 Před 5 měsíci

    what about backend

  • @Abubakar8s
    @Abubakar8s Před 2 lety +1

    can we use our own model instead of tensorflow-models if yes please what to change

  • @Sw_665
    @Sw_665 Před 2 lety

    const results = await model.classify(imageRef.current)
    this line is showing error

    • @tovatic6844
      @tovatic6844 Před 2 lety

      i have the same issue, did you solve it?

    • @viralgupta7636
      @viralgupta7636 Před rokem

      downgrade tensorflow/tfjs-converter and tensorflow/tfjs-cors module to 1.2.1 version to use the model

  • @nishuchowdhury6044
    @nishuchowdhury6044 Před rokem

    It's show me this error.
    pls help
    Module not found: Error: Can't resolve '@tensorflow-models/mobilenet' in 'E:\potatodisease\my-app\src'

    • @viralgupta7636
      @viralgupta7636 Před rokem +1

      downgrade tensorflow/tfjs-converter and tensorflow/tfjs-cors module to 1.2.1 version to use the model

    • @vedikatyagi3269
      @vedikatyagi3269 Před rokem +1

      @@viralgupta7636 its still showing errors

    • @vaybe1326
      @vaybe1326 Před 8 měsíci

      @@vedikatyagi3269 did you solve it?

  • @azgiraffe
    @azgiraffe Před 3 lety

    Can we have a tutorial on how to deploy this?

  • @bharaths2646
    @bharaths2646 Před měsícem

    the dependencies does not support

  • @vaybe1326
    @vaybe1326 Před 8 měsíci

    models is null even using old version

  • @hareeshkondepati7322
    @hareeshkondepati7322 Před 3 lety

    how to change animal to plant detection ??

    • @thoughtspan
      @thoughtspan  Před 3 lety

      Ideally it should do that automatically, but honestly I haven't tried it :). The library I am using a pre-trained machine learning model which is a third party library and is trained, maintained and constantly updated by Google. So I can say over a period of time, it will become sophisticated enough to identify and classify different plants, flowers and many other objects :) Thanks for Watching this video. Cheers :)

  • @gayathridevip4632
    @gayathridevip4632 Před rokem

    Is this code works??

  • @panda-y5v
    @panda-y5v Před měsícem

    source code?

  • @paonsgraphics9750
    @paonsgraphics9750 Před 2 lety

    Very interesting. At this time your code is failing to run, any update ??

    • @thoughtspan
      @thoughtspan  Před 2 lety

      I think with the latest updates a lot might have changed. But If you try installing the packages with the same version that I am using in the video, then it should work. Let me know how it goes. :)

    • @paonsgraphics9750
      @paonsgraphics9750 Před 2 lety

      @@thoughtspan No I didn't try with your version, I just wanted to adapt your code to new versions but I failed.

    • @tovatic6844
      @tovatic6844 Před 2 lety

      @@thoughtspan i tried with same packages, and i still seeing an error in "const results = await model.classify(imageRef.current)" console says " Uncaught (in promise) TypeError: Cannot read properties of null (reading 'classify')", idk what to do :(

    • @viralgupta7636
      @viralgupta7636 Před rokem

      downgrade tensorflow/tfjs-converter and tensorflow/tfjs-cors module to 1.2.1 version to use the model

  • @localhost.8090
    @localhost.8090 Před 3 lety

    how can i load custom model ?

    • @vikrammehta2182
      @vikrammehta2182 Před 3 lety

      You can try to use one of the pretrained models from this link: www.tensorflow.org/js/models

  • @MythicEcho
    @MythicEcho Před 3 lety +2

    NOT A HOTDOG

    • @thoughtspan
      @thoughtspan  Před 3 lety +1

      Ha Ha :P I was thinking of the same scene from Silicon valley when I was making this video :) Thanks for watching :)

    • @hellelo.5840
      @hellelo.5840 Před 2 lety +1

      I just went down looking for this comment

  • @da9286
    @da9286 Před 3 lety

    Clicking on 'upload image' opens up my iphone camera but with a black screen. It doesnt capture anything nor does it give option to upload images from gallery

    • @thoughtspan
      @thoughtspan  Před 3 lety

      Which iPhone version did you use? I don't have an iPhone. I used my Android, and it worked well. I will test it on an iPhone too.