Make an image classification app using React and Tensorflow JS

Поділитися
Вставка
  • Опубліковано 9 кві 2021
  • 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.netlify.app
    Link to the Git Repository: bitbucket.org/vikrammehta/ima...
    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/thoughtspan

КОМЕНТАРІ • 55

  • @jayadurgavenkateswaran4043
    @jayadurgavenkateswaran4043 2 роки тому +1

    Thanks a lot for this awesome content 😄

  • @sergyyoubi3739
    @sergyyoubi3739 2 роки тому +2

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

    • @thoughtspan
      @thoughtspan  2 роки тому

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

  • @codewithdevhindi9937
    @codewithdevhindi9937 Рік тому

    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 🚀🚀🚀🚀🚀🔥🔥🔥🔥🔥🔥

  • @elixir2004
    @elixir2004 2 роки тому +4

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

    • @thoughtspan
      @thoughtspan  2 роки тому

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

  • @charlescoult
    @charlescoult Рік тому

    That was really well done 👍

  • @ahmedalsaati3408
    @ahmedalsaati3408 3 роки тому +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.

  • @gptinsights
    @gptinsights Рік тому

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

  • @kikevanegazz325
    @kikevanegazz325 Рік тому

    Awesome! Subscribed fella, here!

  • @paolagarcia7137
    @paolagarcia7137 2 роки тому +1

    Thank you!

  • @m2kdevelopments
    @m2kdevelopments 9 місяців тому

    Great stuff

  • @morshedulislamriaad6496
    @morshedulislamriaad6496 3 роки тому +3

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

    • @thoughtspan
      @thoughtspan  3 роки тому +1

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

  • @orogheneemudainohwo3493
    @orogheneemudainohwo3493 2 роки тому +1

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

    • @thoughtspan
      @thoughtspan  2 роки тому

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

  • @azgiraffe
    @azgiraffe 3 роки тому +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

  • @naumaniftikharsatti5721
    @naumaniftikharsatti5721 2 роки тому

    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

  • @dummyhehe-px1zm
    @dummyhehe-px1zm Рік тому

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

  • @Gauraha_Sniper
    @Gauraha_Sniper 2 роки тому +3

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

  • @gayathridevip4632
    @gayathridevip4632 Рік тому +1

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

  • @woooooooovely
    @woooooooovely Рік тому

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

  • @gayathridevip4632
    @gayathridevip4632 Рік тому

    Is the css automatically aligned??

  • @amirkhankhattak4292
    @amirkhankhattak4292 3 місяці тому

    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

  • @azgiraffe
    @azgiraffe 3 роки тому

    Can we have a tutorial on how to deploy this?

  • @renzxstech1761
    @renzxstech1761 4 місяці тому

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

  • @codecrafts5263
    @codecrafts5263 10 місяців тому +1

    Not working for me. model not loading

  • @Sw_665
    @Sw_665 2 роки тому +1

    classify is showing error instead of array

  • @da9286
    @da9286 3 роки тому

    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  3 роки тому

      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.

  • @anuragbhardwaj4233
    @anuragbhardwaj4233 3 місяці тому

    what about backend

  • @gayathridevip4632
    @gayathridevip4632 Рік тому

    Is this code works??

  • @hareeshkondepati7322
    @hareeshkondepati7322 3 роки тому

    how to change animal to plant detection ??

    • @thoughtspan
      @thoughtspan  3 роки тому

      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 :)

  • @unitedmuslims3289
    @unitedmuslims3289 2 роки тому +1

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

  • @localhost.8090
    @localhost.8090 3 роки тому

    how can i load custom model ?

    • @vikrammehta2182
      @vikrammehta2182 3 роки тому

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

  • @Sw_665
    @Sw_665 2 роки тому

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

    • @tovatic6844
      @tovatic6844 Рік тому

      i have the same issue, did you solve it?

    • @viralgupta7636
      @viralgupta7636 Рік тому

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

  • @nishuchowdhury6044
    @nishuchowdhury6044 Рік тому

    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 Рік тому +1

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

    • @vedikatyagi3269
      @vedikatyagi3269 Рік тому +1

      @@viralgupta7636 its still showing errors

    • @vaybe1326
      @vaybe1326 7 місяців тому

      @@vedikatyagi3269 did you solve it?

  • @vaybe1326
    @vaybe1326 7 місяців тому

    models is null even using old version

  • @paonsgraphics9750
    @paonsgraphics9750 Рік тому

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

    • @thoughtspan
      @thoughtspan  Рік тому

      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 Рік тому

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

    • @tovatic6844
      @tovatic6844 Рік тому

      @@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 Рік тому

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

  • @MythicEcho
    @MythicEcho 3 роки тому +2

    NOT A HOTDOG

    • @thoughtspan
      @thoughtspan  3 роки тому +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 2 роки тому +1

      I just went down looking for this comment