Deep Learning in Django || (Image Classification) || Complete tutorial 2020

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ก.ย. 2024
  • #django #deeplearning #imageclassification
    In this video I will show how to support deep learning models in Django, very specific image classification keras based model.
    00:05 Description of the Problem statement
    01:38 Demo of the sample web app
    02:28 Pre-trained model from Keras using the notebook
    05:10 Scoring an image in notebook
    06:40 Creating the Django project
    11:56 Form for the Image upload in django
    15:47 Saving the file uploaded in Django
    18:56 Setting Media folder in Django app
    23:54 Hosting images in Django app
    26:34 Deploying Deep learning model in Django app
    30:11 Scoring an image in Django app
    34:53 For loop in Django Template
    37:35 FileSTorageSystem in Django
    38:00 Summary of the video
    The course material is in github repo:
    github.com/sha...
    Req.txt file available at same repo now:
    github.com/sha...
    Please subscribe to my channel by clicking on the link: / @technologyfornoobs

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

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

    This video was really useful for me, I successfully made my first web application for my neural network, not sure how accurate it is but I am happy I made something myself, I used your code and edited it according to my requirements. I am really glad I found this channel. Thank you for posting such valuable content for free.

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

    what a heck tutorial i had been looking!!!! thanks so much for this best tutorial

  • @abhisheklimkarh
    @abhisheklimkarh 4 ปีที่แล้ว +4

    Your video really helped me to integrate my project with Django!!! Thanks dude...!!!

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

    Realy this video was very useful for me thank you so much.

  • @fernandaitzellunaflores7197
    @fernandaitzellunaflores7197 3 ปีที่แล้ว

    I like the tutorial, help me a lot, thanks!

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

    Tensor Tensor("act_softmax/Softmax:0", shape=(None, 1000), dtype=float32) is not an element of this graph. why it's showing me

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

    Amazing job! eres team dandy de corazón. Gracias

  • @mehdismaeili3743
    @mehdismaeili3743 8 หลายเดือนก่อน

    Excellent,

  • @rangabharath4253
    @rangabharath4253 4 ปีที่แล้ว

    Awesome. thank u so much.

  • @chancepark247
    @chancepark247 4 ปีที่แล้ว

    Thank you so much!

  • @muskanlama9855
    @muskanlama9855 3 ปีที่แล้ว

    I m having some error can you help me out i am having FILE NOT FOUND ERROR

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

      File not found, you just need to check the path of the file.

  • @AnuragVarmaP
    @AnuragVarmaP 3 ปีที่แล้ว

    urlpatterns+=static(settings.MEDIA_URL,document_root=settings.MEDIA_ROOT)
    hey you said we use this only in development right, then what to do incase of deploying to heroku ???

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

      if trial purpose then stick to it, if heavy lifting it will be done via webserver like nginx

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

    Thanks

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

    great job

  • @XERXEZITTRAININGANDPROJECTS
    @XERXEZITTRAININGANDPROJECTS 3 ปีที่แล้ว

    sir can you create one more video on deployment of image based Machine Learning/Deep Learning Model without label/Json File using Django.... if any link please share sir

    • @technologyfornoobs
      @technologyfornoobs  3 ปีที่แล้ว

      you have little confusion here, without label you cannot train supervised model.

    • @XERXEZITTRAININGANDPROJECTS
      @XERXEZITTRAININGANDPROJECTS 3 ปีที่แล้ว

      @@technologyfornoobs Sir can you execute and upload one more video on deep learning on below topic, you video really help us alot
      Dataset : www.kaggle.com/paultimothymooney/chest-xray-pneumonia

  • @woonie3134
    @woonie3134 3 ปีที่แล้ว

    Hi. I already have my cnn model created from scratch and saved in a .h5 file. Can I use this tutorial with my model file instead? Will it work the same way?

  • @ronyjoseph7868
    @ronyjoseph7868 3 ปีที่แล้ว

    FailedPreconditionError at /predict
    Error while reading resource variable dense_1/bias from Container: localhost. This could mean that the variable was uninitialized. Not found: Container localhost does not exist. (Could not find resource: localhost/dense_1/bias)
    [[{{node dense_1/BiasAdd/ReadVariableOp}}]]
    why this error happens, when i called predict function

    • @technologyfornoobs
      @technologyfornoobs  3 ปีที่แล้ว

      are you following the same or you are using your own model? and also confirm you are using same version of packages as I am using,

    • @ronyjoseph7868
      @ronyjoseph7868 3 ปีที่แล้ว

      @@technologyfornoobs bro i am in different project, but the steps are almost same so i referred your project, anyway that problem is resolved

  • @abhishekdhule3859
    @abhishekdhule3859 4 ปีที่แล้ว

    your video was really helpful, can you tell how do I deploy this project?

  • @HikkaBikka
    @HikkaBikka 3 ปีที่แล้ว

    im doing a similar web app but couldn't figure out how to upload multiple images for classification and then display them as a set of result using django. is it possible to do this without implementing a database? can you point me to some resources

    • @technologyfornoobs
      @technologyfornoobs  3 ปีที่แล้ว

      actually, this is just a JS functionality which you need to implement in UI, upload multiple files, and UI will call the function individually for each file.

  • @neuron8186
    @neuron8186 3 ปีที่แล้ว

    why are you using tensorflow 1 :(

  • @ophelie3147
    @ophelie3147 3 ปีที่แล้ว

    your video is very much helpful! i have one question regarding this project. Are you doing anything for the async functionality? I mean, for your predicting process to run each time you get a new input image from the web site, how is the views.py dealing with that? Thanks!

    • @technologyfornoobs
      @technologyfornoobs  3 ปีที่แล้ว

      Nothing for the async, simple request response

    • @ophelie3147
      @ophelie3147 3 ปีที่แล้ว

      @@technologyfornoobs ohhh i get it. Can i also implement it with the class type views?

    • @ophelie3147
      @ophelie3147 3 ปีที่แล้ว

      @@technologyfornoobs i mean the immediate response. I am running a function within a class but the function only runs once

    • @technologyfornoobs
      @technologyfornoobs  3 ปีที่แล้ว

      @@ophelie3147 yes, there is a video in my channel which shows how to use functions defined within class as well

    • @ophelie3147
      @ophelie3147 3 ปีที่แล้ว

      @@technologyfornoobs thanks ill look up for it :)

  • @pakshalsheth2266
    @pakshalsheth2266 3 ปีที่แล้ว

    Sir using this code can we make the image captioning project? By changing the model?

  • @shivangiraj5334
    @shivangiraj5334 4 ปีที่แล้ว

    fileObj=request.FILES['filePath']
    fs=FileSystemStorage()
    filePathName=fs.save(fileObj.name,fileObj)
    filePathName=fs.url(filePathName)
    this is not working i don't know why I have written it same but none type object is retuned ...please help

    • @technologyfornoobs
      @technologyfornoobs  4 ปีที่แล้ว

      1. There must be some mistake in the form, could you check if your has "name"=filePath in input field.
      2. or if you can git clone the repo you can match the error.
      3. or better use debugger and identify the error, this could be good way of learning

  • @RitikSingh-xv2oc
    @RitikSingh-xv2oc 4 ปีที่แล้ว +2

    What tensorflow and keras version are you using?

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

      Keras 2.2.4
      Tensorflow 1.13.1

    • @manishshah2424
      @manishshah2424 3 ปีที่แล้ว

      @@technologyfornoobs It would be much better if you could provide us the `requirements.txt` file.

    • @luffysatoru106
      @luffysatoru106 3 ปีที่แล้ว

      @@technologyfornoobs How do I install tensor flow?? Through pip ?? I got keras through that but it doesnt have tensor flow!!!

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

      @@luffysatoru106 as it is for now, tensorflow doesn't support python 3.9. However, you can install tensorflow nightly, it will work the same way

    • @luffysatoru106
      @luffysatoru106 3 ปีที่แล้ว

      @@AlenaShomanova thank you

  • @rudreshnaik8176
    @rudreshnaik8176 3 ปีที่แล้ว

    hello sir,
    at 30:50, when i run manage.py, I get an import error saying "ImportError: cannot import name 'get_config' from 'tensorflow.python.eager.context'".
    please help me with this error. I googled, but didnt get any solution.

  • @shivangiraj5334
    @shivangiraj5334 4 ปีที่แล้ว

    I am gettin the error nonetype object has no attribute name

  • @ophelie3147
    @ophelie3147 3 ปีที่แล้ว

    i am doing a project that takes a picture on android mobile app (written in kotlin) and send the image to the server (db) -> then the deep learning model does the image processing -> sends the processed image back to db -> show it on the android app again. do u know if it is plausible? and if so can i use django with the jupyter notebook? i dont have much knowledge with this, so i donno where to start. thanks for reading my comment!

    • @ophelie3147
      @ophelie3147 3 ปีที่แล้ว

      also, if it is implementable, can u please tell me what to use for each steps? i was told to 1) connect django with android 2) connect to mysql 3) try the deep learning model on django (see if it works with django) but coz im a beginner and will take such a long time to see if it even works. It would be a lot of help if u can give me some advice! Thanks a lot :)

    • @technologyfornoobs
      @technologyfornoobs  3 ปีที่แล้ว

      I would suggest keep is simple to begin with,
      1. Create mobile app
      2. create django rest apis which will take an image and returns what you expect, no mysql
      your mobile app will call rest api of the django and will get the results.

    • @ophelie3147
      @ophelie3147 3 ปีที่แล้ว

      @@technologyfornoobs yea but i thought i would need a database coz im making a image memo app so there has to be accumulated results of images like a camera gallery? Thanks for ur comment btw!!

  • @samarshaikh5961
    @samarshaikh5961 3 ปีที่แล้ว

    Can you tell me How can i do this if I've Pytorch Model

    • @technologyfornoobs
      @technologyfornoobs  3 ปีที่แล้ว

      replace the function with pytorch code, I have created an another video with onnx support

    • @samarshaikh5961
      @samarshaikh5961 3 ปีที่แล้ว

      @@technologyfornoobs plsss can you share link plsss

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

    No model config found in the file at '.models/resnet50.h5'
    why this error showing me ? how can I fix

  • @frincyfrancis8509
    @frincyfrancis8509 4 ปีที่แล้ว

    Sir, What does it means "using tensorflow backend " , when run the server.

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

      keras is using tensorflow backend. ITS BUILT OFF OF TENSORFLOW SO IT SHOWS THAT

    • @frincyfrancis8509
      @frincyfrancis8509 4 ปีที่แล้ว

      @@ShaikAsad Sir, When I run the server, I get the "using tensorflow backend" message only. Didn't get the localhost link. Could you please tell me why it shows so ?

  • @sectember
    @sectember 4 ปีที่แล้ว

    How do i make the set up to use only 2 classes of image from the model?

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

      you either can filter your result from the model or train a new model as usual approach.

    • @sectember
      @sectember 4 ปีที่แล้ว

      @@technologyfornoobs i did the first one :) thank you. But.. i am having some issues with keras and tensorflow like these:
      ImportError: Keras requires TensorFlow 2.2 or higher. Install TensorFlow via `pip install tensorflow`
      I dont know how but i fixxed it at my notebook, but when i am trying to run the projeckt in another machine, installing all packages in a fresh venv, i got this error again, could you help me with that?

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

      I am using older version of tensorflow, you have installed the latest version, if you check the req.txt file you will get the version which I used.

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

    how do i create imagenet_classes.json file for my own dataset?

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

      there are many opensource tools for the same, one app you can find on the imagenet website itself, it can be customized as well you just need to write the code for reading the custom file

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

    Frist we need to see finle project before Start bucouse understand whats you work

    • @technologyfornoobs
      @technologyfornoobs  4 ปีที่แล้ว

      That's the flow I have used, showed the demo, its in continuation with my previous Django project of machine learning model

  • @deepraj5872
    @deepraj5872 3 ปีที่แล้ว

    How can i deploy this application on heroku

  • @ronyjoseph7868
    @ronyjoseph7868 3 ปีที่แล้ว

    bro i cant open my image, file not found eror ,No such file or directory: '/media/doctor_c9c8PlK.jpg', how to resolve this. but i have the uploaded image in media folder

    • @technologyfornoobs
      @technologyfornoobs  3 ปีที่แล้ว

      you are missing "." in your path

    • @ronyjoseph7868
      @ronyjoseph7868 3 ปีที่แล้ว

      @@technologyfornoobs i follwed django docs, u mean./media

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

      @@ronyjoseph7868 yes

    • @ronyjoseph7868
      @ronyjoseph7868 3 ปีที่แล้ว

      @@technologyfornoobs k i will check

    • @ronyjoseph7868
      @ronyjoseph7868 3 ปีที่แล้ว

      @@technologyfornoobs bro again its error, can u share your whatsapp number, i completed my project 90%, i am stuck here,

  • @prajaktadeokar6621
    @prajaktadeokar6621 3 ปีที่แล้ว

    Hello sir, I have created image classification code in matlab can we use that in django? If yes how can we run that code from django

    • @technologyfornoobs
      @technologyfornoobs  3 ปีที่แล้ว

      Not sure if there is any library which has exporter and load back model feature for python

    • @prajaktadeokar6621
      @prajaktadeokar6621 3 ปีที่แล้ว

      @@technologyfornoobs ok thanks for replying ☺

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

    can we use the same code in a bert model for sentiment analysis? and the model will also be .h5 or .pb ?

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

      Nope, yo would need to edit the processing of data part in the code.

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

      @@technologyfornoobs any idea how ?

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

      The same way you process it in any development env like notebook or any ide, same way you need to process the data for your Bert model

  • @pakshalsheth2266
    @pakshalsheth2266 3 ปีที่แล้ว

    Can we apply the css and bootstrap for the better UI?

  • @sibisidharth4933
    @sibisidharth4933 3 ปีที่แล้ว

    i have my model weights in h5 file.. using this video i was not able to load .. Any ideas??? i have tflite file also can u guide me to load that tflite file instead

    • @sibisidharth4933
      @sibisidharth4933 3 ปีที่แล้ว

      line 181, in load_model_from_hdf5
      raise ValueError('No model found in config file.')
      ValueError: No model found in config file.
      this was the error

    • @technologyfornoobs
      @technologyfornoobs  3 ปีที่แล้ว

      I do not have much exp with tflite format files, and I cannot check it as well immediately. but you just have to use the function which helps in loading the tflite file.

  • @frincyfrancis8509
    @frincyfrancis8509 4 ปีที่แล้ว

    Sir, When I run the server, I get the "using tensorflow backend" message only. Didn't get the localhost link. Could you please tell me why it shows so ?

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

      Which python version you are using, my video was based on python version 3.6.8, if you are using latest version of python then you need to check the compatibility of all the packages, start from here and it might get solved as well.

    • @frincyfrancis8509
      @frincyfrancis8509 4 ปีที่แล้ว

      @@technologyfornoobs I'm using python 3.7.3 and django - 3.0.7. The problem is that, Python3 manage.py runserver - shows the output as "using tensorflow backend" with no error messages.

    • @technologyfornoobs
      @technologyfornoobs  4 ปีที่แล้ว

      understood the question, just try it in python 3.6.8 version instead 3.7.3, try creating a virtual env and use that env to run your django app.

  • @wisammtour4385
    @wisammtour4385 3 ปีที่แล้ว

    from keras.models import load_model
    ImportError: No module named keras.models
    i got this error
    im using keras 2.4.3
    tensorflow 1.15

  • @allonstafadzwamazani1771
    @allonstafadzwamazani1771 3 ปีที่แล้ว

    thank you sir..i am doing facial recognition with data mining in python django , for my research project for my undergraduate degree in software engineering. any help would be greatly appreciated

  • @nedu47
    @nedu47 4 ปีที่แล้ว

    Please can you help in explaining what this line of code is doing
    with open('imagenet_classes.json','r') as f:
    labelInfo=f.read()
    I'm trying to use other keras models, such as VGG19 but I can implement them... It's returning something else...

    • @technologyfornoobs
      @technologyfornoobs  4 ปีที่แล้ว

      the line is reading a file which has all the classes of imagenet data, that is what I am using to give names as a ouptut in the app. if its a pretrained model you can still use it, if not its not helpful for you

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

      @@technologyfornoobs how to do that with another dataset ?

  • @MIbtehajNasar
    @MIbtehajNasar 4 ปีที่แล้ว

    I follow along your video but this "testimage='.'+filePathName" is not woking
    it show me this error
    "[Errno 2] No such file or directory: './media/image%20(1)_OFcUdOq.JPG'
    "
    please help

    • @technologyfornoobs
      @technologyfornoobs  4 ปีที่แล้ว

      Can you try pulling the git app and run and check what's diff between the code, as i can see the file name is incorrect in your error message. %20 comes with the request but actually its a space in reality.

    • @muskanlama9855
      @muskanlama9855 3 ปีที่แล้ว

      I am having same problem

    • @muskanlama9855
      @muskanlama9855 3 ปีที่แล้ว

      No such file or directory

  • @XERXEZITTRAININGANDPROJECTS
    @XERXEZITTRAININGANDPROJECTS 3 ปีที่แล้ว

    can i get the requirements.txt file, i am not able run this project

    • @technologyfornoobs
      @technologyfornoobs  3 ปีที่แล้ว

      Added the req.txt file github.com/sharmasw/ImageClassification_DjangoApp.git

  • @annanyamathur8869
    @annanyamathur8869 3 ปีที่แล้ว

    at 10.08 I am getting error serve not reached , can you tell me how I can resolve this?

  • @neiveinkhalil1290
    @neiveinkhalil1290 4 ปีที่แล้ว

    İ created a ML model using Google Colab... İ want to deploy it in django.... Is that will be the same in the Video ???!

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

      Yes download the model file in your system , and follow as in video

    • @neiveinkhalil1290
      @neiveinkhalil1290 4 ปีที่แล้ว

      @@technologyfornoobs I downloaded the model with( ipynb) extension, will that work? Also I want the result of prediction to be saved, instead of saving the uploading file

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

      that's the notebook file not the model file. It will not work.

    • @technologyfornoobs
      @technologyfornoobs  4 ปีที่แล้ว

      You can save the predictions, that logic needs to be written

    • @neiveinkhalil1290
      @neiveinkhalil1290 4 ปีที่แล้ว

      @@technologyfornoobs ok how can i get the model file and download it?

  • @hashamfaridy8152
    @hashamfaridy8152 4 ปีที่แล้ว

    can you please guide me how can i make an API of my cnn model which is save in h5 format ?

    • @technologyfornoobs
      @technologyfornoobs  4 ปีที่แล้ว

      That's what I have done in the demo project right, the code written in views.py is your logic and endpoint is the url which gets you to the function.

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

      @@technologyfornoobs yup you mentioned in the video like host on nginx or any other web server can you please make a video how to deploy it will be really helpful

  • @katiabenmaghri298
    @katiabenmaghri298 4 ปีที่แล้ว

    I am having this error, can you help me with TypeError: ('Keyword argument not understood:', 'groups')

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

      you need to provide more details, this is not enough to understand the issue.

    • @katiabenmaghri298
      @katiabenmaghri298 4 ปีที่แล้ว

      @@technologyfornoobs thank you, i solved my issue it was technical issue from tf 1 to tf 2.2.

  • @milanlimbu4417
    @milanlimbu4417 4 ปีที่แล้ว

    can i do same with music genre classification??

    • @technologyfornoobs
      @technologyfornoobs  4 ปีที่แล้ว

      Yes, you can, the same way, get audio as a input do your preprocessing pass it to model and send the classification as a output.

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

    Sir can we do it for lstm also

  • @pakshalsheth2266
    @pakshalsheth2266 3 ปีที่แล้ว

    Sir can we use this code on Google colab?

  • @luffysatoru106
    @luffysatoru106 3 ปีที่แล้ว

    At 26:04 where do I get the .ipynb file .h5 file and the similar .json file from??

    • @technologyfornoobs
      @technologyfornoobs  3 ปีที่แล้ว

      It should be in the github repo.

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

      @@technologyfornoobs how to do this file json with another dataset?

  • @vishalmishra1937
    @vishalmishra1937 3 ปีที่แล้ว

    bro how do u learn these complex things

    • @technologyfornoobs
      @technologyfornoobs  3 ปีที่แล้ว

      All things are easy, it just need some time to get comfortable with it. All the bests !

  • @husseinkamal6830
    @husseinkamal6830 3 ปีที่แล้ว

    AttributeError: 'NoneType' object has no attribute 'name'

    • @technologyfornoobs
      @technologyfornoobs  3 ปีที่แล้ว

      Check the model parameter, or if you have diff versions of library this could be one of such case.

  • @nawalhamed6394
    @nawalhamed6394 4 ปีที่แล้ว

    If I am using faster RCNN how I can use it with this code??

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

      Exactly the same way, you have to just have to adjust the input for the model and output of the model has to be adjusted in the response.

    • @nawalhamed6394
      @nawalhamed6394 4 ปีที่แล้ว

      @@technologyfornoobs but it will be with .pb extension?

  • @RFmath_
    @RFmath_ 4 ปีที่แล้ว

    ImportError: cannot import name 'Session' from 'tensorflow' in the views.py - why is this happening?

    • @technologyfornoobs
      @technologyfornoobs  4 ปีที่แล้ว

      import tensorflow; print(tensorflow.__version__)
      Tensorflowv2 does not support Session, you must have the latest version, check with above command , I was using 1.13.1

    • @RFmath_
      @RFmath_ 4 ปีที่แล้ว

      @@technologyfornoobs yeah I had to update a bunch of things - I got it working thanks

  • @nicopanjaitan2769
    @nicopanjaitan2769 4 ปีที่แล้ว

    How to implement Django in Android with our own model?

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

      Django can be a rest service end point for you, and android app will make a rest call to your django server. It will not reside inside

  • @SamirJzVFX
    @SamirJzVFX 3 ปีที่แล้ว

    Can you do a new tutorial but with TF 2.0?

    • @technologyfornoobs
      @technologyfornoobs  3 ปีที่แล้ว

      Will do in some time, occupied with lot of work now a days. sorry!

    • @SamirJzVFX
      @SamirJzVFX 3 ปีที่แล้ว

      @@technologyfornoobs mi friend, my i email you? O have errors and it’s for my tesis. It’s just a reshape issue but I really need your help. It’s for my tesis!:(

    • @technologyfornoobs
      @technologyfornoobs  3 ปีที่แล้ว

      techfornoobs01@gmail.com

    • @SamirJzVFX
      @SamirJzVFX 3 ปีที่แล้ว

      @@technologyfornoobs thanks, I send you an email.

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

      Did you find the solution with tensorflow 2, how you are replace session in tensorflow 2, please help

  • @hashamfaridy8152
    @hashamfaridy8152 4 ปีที่แล้ว

    i downloaded all the files from github how can i run app in pc just to test the app do i need to setup all the environment ??

    • @technologyfornoobs
      @technologyfornoobs  4 ปีที่แล้ว

      yes, the environment needs to be set

    • @hashamfaridy8152
      @hashamfaridy8152 4 ปีที่แล้ว

      @@technologyfornoobs Hey can you send me the requirements.txt file it will be really helpful for me setup the environment thanks

    • @hashamfaridy8152
      @hashamfaridy8152 4 ปีที่แล้ว

      @@technologyfornoobs thanks its working

    • @hashamfaridy8152
      @hashamfaridy8152 4 ปีที่แล้ว

      @@technologyfornoobs i trained my own model with two classes how can i target last layer which contains label ? TIA

    • @technologyfornoobs
      @technologyfornoobs  4 ปีที่แล้ว

      keras.io/guides/transfer_learning/ this link would help you

  • @neiveinkhalil1290
    @neiveinkhalil1290 4 ปีที่แล้ว

    Hi sir. When i upload the image it show this error:
    KeyError at /ind/predictImage '1'

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

      I believe something is wrong on how you are using the url on your form

    • @neiveinkhalil1290
      @neiveinkhalil1290 4 ปีที่แล้ว

      @@technologyfornoobs i have button when click on it. İt goes to page that contains upload images button... How can i handle that?!

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

      I do not have much clarity on how you are using the button, but to redirect to another page use "onclick=" in your button code
      stackoverflow.com/questions/16562577/how-can-i-make-a-button-redirect-my-page-to-another-page

    • @neiveinkhalil1290
      @neiveinkhalil1290 4 ปีที่แล้ว

      @@technologyfornoobs i'm working on breast cancer model ,,,i loaded the model path and follow the steps same as in video,,,it shows this error :
      "list index out of range"
      İ have two classes labeld as benign and malignant

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

      you would need to debug as changing model meaning you have to change the logic as will in the code of preprocessing, forms and so on.

  • @kumarmangalam9170
    @kumarmangalam9170 4 ปีที่แล้ว

    how to upload model also from web page

    • @technologyfornoobs
      @technologyfornoobs  4 ปีที่แล้ว

      follow this tutorial th-cam.com/video/6q9Gf3VaHio/w-d-xo.html

  • @rahulkamble9679
    @rahulkamble9679 4 ปีที่แล้ว

    how to add two different models?

    • @technologyfornoobs
      @technologyfornoobs  4 ปีที่แล้ว

      To host multiple models (deep neural networks) you need to save them in a dictionary with each model will have its own graph and session, when you have to use any just load the graph and session again and use it accordingly.

  • @nishayadav3427
    @nishayadav3427 4 ปีที่แล้ว

    Sir its showing Jsons decoder error

    • @technologyfornoobs
      @technologyfornoobs  4 ปีที่แล้ว

      can you pull from the github repo and check if it works, you need to share the traceback

  • @ethanconnelly8794
    @ethanconnelly8794 3 ปีที่แล้ว

    What model is used in training?

    • @technologyfornoobs
      @technologyfornoobs  3 ปีที่แล้ว

      mobilenet pretrained model

    • @ethanconnelly8794
      @ethanconnelly8794 3 ปีที่แล้ว

      @@technologyfornoobs Thanks, I have managed to get it working!! I think it would be useful to have a video explaining the code for tensorflow2 and also how to deploy maybe using s3 buckets as file storage.
      Thanks again!! Great tutorial!

    • @technologyfornoobs
      @technologyfornoobs  3 ปีที่แล้ว

      @@ethanconnelly8794 Surely Would do it when I get enough to afford an S3 bucket for few days :)

    • @ethanconnelly8794
      @ethanconnelly8794 3 ปีที่แล้ว

      @@technologyfornoobs You could use a free trial

    • @technologyfornoobs
      @technologyfornoobs  3 ปีที่แล้ว

      Already consumed!

  • @RitikSingh-ub7kc
    @RitikSingh-ub7kc 4 ปีที่แล้ว

    What changes to do if I want to deploy app?

    • @technologyfornoobs
      @technologyfornoobs  4 ปีที่แล้ว

      Actually you don't need to change much, but actually look for gunicorn and look for hosting your model with nginx webserver.

    • @RitikSingh-ub7kc
      @RitikSingh-ub7kc 4 ปีที่แล้ว

      Somewhere in the video you say that, it is not applicable in production but only in development

    • @technologyfornoobs
      @technologyfornoobs  4 ปีที่แล้ว

      @@RitikSingh-ub7kc It is at 21:10 where I said it, the media files support while deploying also needs to be checked with the webserver you will use, if you just look for serving media files in webserver using Django, you will find more details about it, if you are doing a PoC kind of work then you can use what was done in the tutorial and deploy your app.

    • @RitikSingh-ub7kc
      @RitikSingh-ub7kc 4 ปีที่แล้ว

      Oh thanks bro! I'll look into it. One more thing, if you want to increase your performance, you can load your model only once per session in apps.py, and then important it in views every time you want to make a prediction

    • @technologyfornoobs
      @technologyfornoobs  4 ปีที่แล้ว

      @@RitikSingh-ub7kc Exactly!

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

    32:11

  • @abdullahahmadkhan3929
    @abdullahahmadkhan3929 4 ปีที่แล้ว

    I’m having error while running , labelinfo not defined

    • @technologyfornoobs
      @technologyfornoobs  4 ปีที่แล้ว

      img_height, img_width=224,224
      with open('./models/imagenet_classes.json','r') as f:
      labelInfo=f.read()
      labelInfo=json.loads(labelInfo)
      Check if this code is missing in your file? If error persist Can you pull from my git and check the code

    • @abdullahahmadkhan3929
      @abdullahahmadkhan3929 4 ปีที่แล้ว

      Technology for Noobs thank you for the reply , i wanted to know that does trained model require this .json file.."?

    • @technologyfornoobs
      @technologyfornoobs  4 ปีที่แล้ว

      @@abdullahahmadkhan3929 Nope, it is only for the label which I wanted to send as a result.