Deploy Machine Learning Models using Flask

Поділитися
Вставка
  • Опубліковано 23 січ 2025

КОМЕНТАРІ • 90

  • @Jay-oc7mc
    @Jay-oc7mc  3 роки тому +13

    If you're interested in learning how to get this Flask app onto the cloud I made another tutorial about how to deploy this to Heroku. Heroku is a PaaS which means you don't need to look after the underlying hardware which is pretty cool. You just push your code to their platform and now it will be hosted! ua-cam.com/video/d1DKT2xk_dM/v-deo.html

  • @omrajgure8441
    @omrajgure8441 3 роки тому +9

    bro literally i was struggeling from 3-4 days and i am glad that you helped me out i was getting frustated as everyone here on YT not showing the model deployment from scratch they are only doing one thing and that is just giving brief about flask.
    Thank you soooooo much bro.....you gain a subscriber and you deserve millions of subscriber keep it up and nevere ever give up

  • @chandansarkar1618
    @chandansarkar1618 3 роки тому +13

    Hi, this video was really helpful for beginners. You avoided unnecessary complexities and tried to stick to the main topic. Very useful as a quick reference.

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

    Installing everything required was a real hassle, with CUDA, cuDNN, tensorflow installation, keras, pillow, Conda, etc, alot is different now too..took a few days .but it worked bro.🔥🔥🔥🔥🔥🔥Shukran

  • @abdelmalekdjamaa7691
    @abdelmalekdjamaa7691 3 роки тому +5

    Nice vid ❤.
    I expect your channel to grow rapidly. Just keep the hard work.

  • @samuelmwendwa4327
    @samuelmwendwa4327 9 місяців тому +1

    immediate sub. you just saved my final year project

  • @ThuanNguyen-yy7pu
    @ThuanNguyen-yy7pu 3 роки тому

    Thank you so much sir, I'm so confused when deploying the model to the website until I watch your video

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

    Great tutorial, BTW, you don't need to save the image and load it again. You can get the image bytes directly from the request file, which you can then use to build the image and feed it forward through the model.

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

    Thank you so much!!!! This video really helped me. I spent 3 weeks researching and testing too many codes, but they didn't work!

  • @yaso1034
    @yaso1034 Рік тому +2

    Hello! How can I use my own trained Model Instead of just using the Pre-trained Resnet50? Thanks

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

    This is so useful! Thank you so much.

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

    Thanks man, Very useful Tutorial. Appreciate it !

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

    Graph execution error:
    transpose expects a vector of size 3. But input(1) is a vector of size 4

  • @tani.1772
    @tani.1772 8 місяців тому

    you saved my semester thank you

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

    Thanks man! Very cool tutorial!

  • @ittech7448
    @ittech7448 6 місяців тому

    I am just facing issue that I trained the model in colab and now I want to make the front end in flask through vs code but I am facing really issues and idea guys

  • @akshitrawat-gv2bh
    @akshitrawat-gv2bh 8 місяців тому

    thankyou so much for making this video really worth watching 🤗🤗

  • @madhurverma1208
    @madhurverma1208 2 місяці тому

    How can we do it if our model need to access the webcam?

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

    this was so helpful and time saving thank you

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

    Can we integrate apache server in xampp and flask

  • @tokaelsayed923
    @tokaelsayed923 6 місяців тому

    what if i want to load my model? how would be the process in the predict function??

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

    Can we permanently do it like i could just add my model once and when the link loads it upload images and predict

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

    hello, i followed your tutorial but i'm facing a problem, the html doesn't update after prediction, even though my prediction was done successfully, please help me. thanks in advance

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

    can anyone tell me where is the issue my localhost is not working!! how am I gonna run this code in localhost?

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

    how to modify the vector input ..

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

    and if I want to show a image?

  • @AlonAvramson
    @AlonAvramson 3 роки тому +7

    Thank you so much for this tutorial! which IDE (Editor) are you using in this example? looks really cool.

    • @Jay-oc7mc
      @Jay-oc7mc  3 роки тому +8

      Hey, glad you found it helpful! Im using vscode is a pretty good editor and I use it mostly for front end stuff and python

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

    Thank youu very much sirr..... Thank youuuuuuuuuu so much.... 🥰🥰😍😍

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

    Sir, please help me i am unable to import keras in my vs code i tried tensorflow also but i cant really import it in my app.py.
    also i created a venv file and dowloaded the tensorflow package in it but i cant import it my app.py.It shows Import "keras" could not be resolvedPylance reportMissingImports.

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

    thank you. I find a log time
    good content

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

    kindly please tell me the way that i can display that uploaded image inside index.html

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

    @Jay
    Can you please give a tutorial for the same with PyTorch model.

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

    How we can download tensorflow in vscode without getting errors and which version is suitable pls reply back. 😭

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

    Hey jay, I need your help. I build a web page using flask, but whiled prediction its not showing result, plezzz help me jay

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

    Hello brother am trained a model using Jupiter notebook and i want to present it the user just like your example APP. How do I call the trained model to the APP. Thank you

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

    great and clear explanantion

  • @Engr.SharoonHoney
    @Engr.SharoonHoney 3 місяці тому

    Very Helpful for students like me, who want keep learning and keep growing 💗,
    Also can you make tutorial on how to train deep learning tensorflow model and then to use it in flask App? If you do so, that would be very very grateful.

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

    would be nice if you gave a link to the code

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

    After deployment the model takes time to provide answer but your model provides the answer fastly. Efficiency of model or something else ???

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

    I wish the source code was available to download

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

    Thank you! This is very useful

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

    Hi Jay
    I am working on my college project in which our grp made an ml model, so how can we pass that saved image to our ML model.
    Pls Suggest

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

    Thank you so much for this!

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

    Great video🔥🔥

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

    Thank for tutoring. I have a question. I have a trained ML model from vertex AI. Can i use that instead of VGG16?

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

    have you used any particular API over here?
    likes rest api?

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

    thank you bro
    finally i got the solution for my problem.
    could u make a vid on deployment of (Detectron) Object detector model using Flask,
    which can give a video inference.

    • @Jay-oc7mc
      @Jay-oc7mc  3 роки тому

      Hey, I'm glad you found this useful! I have more videos planned in the future so I'll add this to my list :)

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

    save a lot hour in my life. thanks jay

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

    Really helpful thanks sir

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

    Why keras module error?

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

    It is a useful tutorial. Short and touches main points. I wonder that can you share Github link for the project?
    Thank Jay!

    • @Jay-oc7mc
      @Jay-oc7mc  Рік тому

      Just uploaded the code to Github: github.com/JayMehtaUK/image-classifier

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

    Very good video.

  • @Jay-oc7mc
    @Jay-oc7mc  Рік тому

    Link to the codebase can be found here now: github.com/JayMehtaUK/image-classifier

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

    can you give us the code file

    • @Jay-oc7mc
      @Jay-oc7mc  Рік тому

      Just uploaded a copy of the code to github :) github.com/JayMehtaUK/image-classifier

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

    Is it free to deploy ml Model pls reply

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

    Good content!

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

    hi, can you provide a link to the code

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

    Thanks Jay. Would you mind sharing the source code?

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

    Nice it's works with me

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

    hey! jay i watched ur video and actually loved it..i have trained my own model i am trying to deploy in the way u told me but when i choose the file in the web page and click on predict image it doesnt return anything and the web page reloads and the same page appears to choose file again.

  • @pccomputer-on3un
    @pccomputer-on3un 2 роки тому

    Could you share the code please?

    • @Jay-oc7mc
      @Jay-oc7mc  Рік тому

      Code can be found on Github now: github.com/JayMehtaUK/image-classifier

  • @kushoza43d24
    @kushoza43d24 11 місяців тому

    Thanks Helpful!!!

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

    subscribed :) make more ml production level videos

    • @Jay-oc7mc
      @Jay-oc7mc  3 роки тому

      Thanks! Will be making more videos soon :) Some normal software engineering videos and some ML ones are planned

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

      @@Jay-oc7mc okay bro

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

    thank you sooo much

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

    code?

    • @Jay-oc7mc
      @Jay-oc7mc  Рік тому

      github.com/JayMehtaUK/image-classifier

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

    Thank you

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

    thanks for all but please give me the code

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

    I still do not understand why we need flask

    • @nikhilsastry6631
      @nikhilsastry6631 3 місяці тому +1

      When you create something ... It should be easily accessible right? ... Flask creates a website that anyone can visit using (html,css,js etc) but flask uses python as backed ( with this any complex operation like ML model & prediction will be stored in some variables & send these variables to html which display the actual prediction of ML model you created)

    • @nikhilsastry6631
      @nikhilsastry6631 3 місяці тому +1

      For example, if there is no Web technology like flask or django or something ... There will be no chatgpt that you can access today from your phone ... It's like creating a Amusement park & only using for yourself

    • @nikhilsastry6631
      @nikhilsastry6631 3 місяці тому +1

      Data ingestion -> big data analysis -> ML & DL (nlp/cv) -> website -> devops -> cloud
      This is the pipeline
      So everything here happens on gpu & nothing is visible to normal person only developers know what happens ... So creating a website helps anyone to access the product that we are building

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

    Python deployment should come with a Rage Warning

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

    gib code lol

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

    fake , where is the deployment ?

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

    for img_to_array and load_img use those imports instead
    from keras.utils.image_utils import img_to_array
    from keras.utils.image_utils import load_img
    and install pillow :
    pip install Pillow

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

    Sir want to connect with you. Can you provide LinkedIn id