Plant Disease Detection System Part-9 | Building Web Application using Streamlit

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 137

  • @kyvitrannguyen9270
    @kyvitrannguyen9270 Месяц назад +2

    Your series and demonstration are fantastic. It helps me a lot when I'm a beginner to study ML.
    I completed your series with a few errors but it solved over the internet also.
    Thank you a lot

  • @KwabenaOpoku-pt9hb
    @KwabenaOpoku-pt9hb 6 месяцев назад +5

    Take you for this project. Really loved your teachings.

    • @SPOTLESSTECH
      @SPOTLESSTECH  2 месяца назад

      Thanks for your valuable feedback

  • @wakeupsahitya
    @wakeupsahitya 3 месяца назад +4

    Your Playlist and demonstration is awesome ❤. Please keep it up.
    If possible please upload a video that how we can deploy this model in our mobile phone through android app. 🙏🙏

    • @SPOTLESSTECH
      @SPOTLESSTECH  3 месяца назад +2

      Okay thanks for your feedback

  • @umaralam6975
    @umaralam6975 3 дня назад +1

    I have completed the playlist, but I do not get how this model .. model . changed to cnn and all the below data preprocessing model all model like training image preprocessing is not working please help me to fix this error

  • @anuragshrivastava-ez3mv
    @anuragshrivastava-ez3mv Месяц назад +2

    badiya project tha enjoyed it and got to learn many things

  • @shawaizhassan6253
    @shawaizhassan6253 7 месяцев назад +3

    Hello sir, thanks a lot for this amazing project. I followed it from start to end wrote my code alongside. I tried many images and It gives amazing results for our own dataset but when I tried some additional images from internet it gives wrong predictions can you please guide me how can i fix it? Any comment from you will help me a lot!!! Thanks in advance.

    • @SPOTLESSTECH
      @SPOTLESSTECH  6 месяцев назад

      Sometimes what happens is that your training and validation set contains same characteristics of image
      So model trained according to that characteristics and also those characteristics are not visible from your eye when you see the image
      So to make it more robust you have to mix it with some google images and retrain your model

  • @DimshleyOrtega
    @DimshleyOrtega 8 месяцев назад +3

    Hello sir I appreciate your videos/playlist a lot. It is indeed a lot of help for my collegues and I. However, I wan't to ask if in the web development you made is that will also predict those images of diseases acquired in the real field (for example i put images i took form a farm)? or will it only work with that images you got from the dataset you trained/tested your images from?

    • @SPOTLESSTECH
      @SPOTLESSTECH  8 месяцев назад +1

      It will work on the classes of those images on which our model is trained
      If you take any image which lies under these classes then it will work also make sure that image having good quality

    • @DimshleyOrtega
      @DimshleyOrtega 8 месяцев назад +1

      thank you sir!!!@@SPOTLESSTECH

  • @arthurlewin1952
    @arthurlewin1952 3 месяца назад +2

    sir i am unable to load the model in vs code which has the same environment as test.ipynb file

    • @SPOTLESSTECH
      @SPOTLESSTECH  3 месяца назад

      Try to load model using h5 file format
      You will find h5 and keras both file
      Change the code with h5 file location
      Then You will not face issue

  • @Chaitanya-k3i
    @Chaitanya-k3i Месяц назад +4

    sir the the GITHUB there plant disease is not showing all the file as in the video pls help to solve this

  • @mv_photography_17
    @mv_photography_17 15 дней назад

    how can i solve this error sir?
    ValueError: Layer 'conv2d' expected 2 variables, but received 0 variables during loading. Expected: ['conv2d/kernel:0', 'conv2d/bias:0']

  • @rohananvekar5379
    @rohananvekar5379 4 месяца назад +2

    these are videos are really good, worth watching the entire playlist

    • @SPOTLESSTECH
      @SPOTLESSTECH  4 месяца назад +1

      Once you done with Image classification Check Music Genre Classification playlist
      There you will learn how to make Audio Classification system
      I am sure you love that one too

    • @syaifulhusni6987
      @syaifulhusni6987 2 месяца назад

      Do you provide consultant service ?@@SPOTLESSTECH

  • @victus-j2z
    @victus-j2z 2 месяца назад +1

    Hello sir, Thank you for this playlist. I have created my model as well as my project. But there is one issue I'm facing with my model, that is, if I use test images from the dataset to check the model's prediction, it is showing correct results, but as soon as I use images from the internet to check model, it wrongly predicts them. Is this an issue of overfitting? or what? How can I resolve this issue?

    • @SPOTLESSTECH
      @SPOTLESSTECH  2 месяца назад

      Actually this problem is due to dataset
      Your model is trained on some specific type of images if you want your model accurate on internet image you have to mix 40-50% of internet images in each classes and retrain your model

  • @apdarshan9631
    @apdarshan9631 8 месяцев назад +2

    make video on cnn in depth and this playlist is amazing

    • @SPOTLESSTECH
      @SPOTLESSTECH  8 месяцев назад

      Thanks for the feedback 👍👍

  • @Senanyakar
    @Senanyakar 5 месяцев назад +2

    sir, i can't change the my environment like you did. mine is myenv i tried to change but it says conda activate is not running

    • @SPOTLESSTECH
      @SPOTLESSTECH  5 месяцев назад +1

      You can use any env
      No need to do conda activate
      I am just doing because whatever libraries (tensorflow and all) needed to run the model. I have installed in that env
      You can install directly in your machine and use it no need to create env just to put things separate i have created and installed in that.
      Thats it

  • @EmileMwenya
    @EmileMwenya День назад +1

    Please, help me. I need where to get your " trained_model" file

    • @SPOTLESSTECH
      @SPOTLESSTECH  День назад

      Go to playlist description you will get drive link download from there

    • @EmileMwenya
      @EmileMwenya День назад

      @@SPOTLESSTECH
      I downloaded it, but I'm getting an error because I'm using tensorflow version 3.6.0

    • @EmileMwenya
      @EmileMwenya День назад

      @@SPOTLESSTECH
      They are saying typeError: class'keras.src.models.sequential.sequential' . Could not be deserialized properly

  • @0xdegen70
    @0xdegen70 3 месяца назад +1

    Hello, thank you very much for this. But I'm having issue with my keras file, it keeps saying this when i hit the predict button "ValueError: File not found: filepath=trained_plant_disease_model.keras. Please ensure the file is an accessible `.keras` zip file."

    • @SPOTLESSTECH
      @SPOTLESSTECH  3 месяца назад

      In windows please use h5 file format model file to load model
      Please watch video i have saved in two format try with h5 you will not face issue

  • @ilovetequila
    @ilovetequila 7 месяцев назад +2

    conda activate tenserflow doesn't work, it says that it is not recognized as the name of the cmdlet... I tried using powershell, git bash, cmd nothing worked. Why?

    • @SPOTLESSTECH
      @SPOTLESSTECH  7 месяцев назад

      You have anaconda installed or not

    • @ilovetequila
      @ilovetequila 7 месяцев назад

      @@SPOTLESSTECH yup anaconda already installed

    • @chideraozigbo6646
      @chideraozigbo6646 6 месяцев назад

      Create the environment first. The tensorflow is his environment name

  • @talhaameer2094
    @talhaameer2094 6 месяцев назад +2

    which testing tecnique is used for testing the recognition system?

    • @SPOTLESSTECH
      @SPOTLESSTECH  6 месяцев назад +1

      Check model testing, model evaluation video
      Various model evaluation techniques is used in the video
      I have explained it in detail

    • @dreamsteamgorakhpur9899
      @dreamsteamgorakhpur9899 Месяц назад

      had you completed this project

  • @renegadeprism42
    @renegadeprism42 7 месяцев назад +1

    thanks and gg! btw is this as a college project?(the channel)

    • @SPOTLESSTECH
      @SPOTLESSTECH  7 месяцев назад

      Starting from basic project step by step will move forward to advance things

  • @gurukiran488
    @gurukiran488 Месяц назад +1

    sir please can you share the list of algorithms other than cnn ..

  • @madhireaparna5457
    @madhireaparna5457 4 месяца назад +2

    Trained model is not running, it's getting error when we predicting the image, provide proper link for trained model

  • @ClarenceSamuel-p8s
    @ClarenceSamuel-p8s Месяц назад +1

    bro i have doubt if i give some images other than my dataset from google its giving wrong answer tell me why

    • @SPOTLESSTECH
      @SPOTLESSTECH  Месяц назад

      You have to give same format and same quality of image
      Thats because your model is trained on some specific type of image so it will be accurate only on that type
      If you want to work on any image
      Then you have to mix some low quality and internet image in each class minimum 30-40% of image and retrain your model using the same idea

    • @ClarenceSamuel-p8s
      @ClarenceSamuel-p8s Месяц назад

      @@SPOTLESSTECH but you have done some uploaded image processing in main.pyy doesn't it automatically resize the image

  • @JanhaviPatil22
    @JanhaviPatil22 7 месяцев назад +3

    ValueError: File not found: filepath=trained_plant_disease_model.keras. Please ensure the file is an accessible `.keras` zip file.
    Sir I am getting this error when I click on predict button also when I save my model in jupyter notebook and open the saved model file it shows the error as it is not UTF8 encoded file saving disabled .....please help sir

    • @SPOTLESSTECH
      @SPOTLESSTECH  7 месяцев назад +2

      There may be possibility that your pc doesn’t supporting keras file
      Try to save in h5 file and load model

    • @THUNDER9160
      @THUNDER9160 7 месяцев назад

      Did your problem get solved if yes can you guide me how to fix this

    • @yugdeepverma7892
      @yugdeepverma7892 6 месяцев назад

      @@THUNDER9160 please guide me also

    • @yugdeepverma7892
      @yugdeepverma7892 6 месяцев назад

      @@SPOTLESSTECH how to save in h5 file same problem facing

  • @wisamahmad5980
    @wisamahmad5980 5 месяцев назад +1

    superbbbb
    how can we do this if we work on python colab and no tensorflow in laptop
    i mean model.save() how from python colab to streamlit?

    • @SPOTLESSTECH
      @SPOTLESSTECH  5 месяцев назад +1

      For training you don’t need but for loading saved model for testing you need tensorflow You have to run all ipynb files from colab and once you run training notebook then after model.save you will get saved model file (h5) file format in colab in left side where colab has all folder from there you can download that file then go to your local and run app file but for loading you need tensorflow
      To run streamlit from colab they have some command using which you can run your app on colab

    • @poulomipal4096
      @poulomipal4096 5 месяцев назад

      @@SPOTLESSTECH Can you please mention those? Unable to work in colab

  • @nandaiahgarikushal232
    @nandaiahgarikushal232 8 месяцев назад +2

    tqq sir
    yes sir we required a project on nlp

  • @abhisheksoni1764
    @abhisheksoni1764 7 месяцев назад +1

    after uploading the image :
    AxiosError: Request failed with status code 403
    this error is showing below fileuploader component
    and after clicking show image:
    'NoneType' object has no attribute 'format'
    this error is showing.
    Any Fixes?

    • @tharunkumarg2961
      @tharunkumarg2961 7 месяцев назад

      same here

    • @techfctz5615
      @techfctz5615 6 месяцев назад

      Bro just upgrade your streamlit in terminal. It worked for me

  • @mr_alone.15
    @mr_alone.15 3 месяца назад +2

    Is it complete project playlist

  • @edwinkumarece3192
    @edwinkumarece3192 3 месяца назад +1

    If i click the predict button it is give me a recursion error what should i do

    • @SPOTLESSTECH
      @SPOTLESSTECH  3 месяца назад +1

      Something wrong in your code
      Do one thing test project using my code github link is in description
      Then debug and see where you are doing wrong

  • @furkan-6014
    @furkan-6014 6 месяцев назад +1

    thank you ,sir can i run it on jetson nano set ?

  • @KhinPhyuPhyuZawVIOLA
    @KhinPhyuPhyuZawVIOLA 3 месяца назад +2

    PLEASE HELP ME ! what is the version of tensorflow? i have error like below ERROR: Cannot install protobuf==4.25.3 and streamlit==1.16.0 because these package versions have conflicting dependencies.
    ImportError: cannot import name 'builder' from 'google.protobuf.internal' (D:\test\BDPapayaLeaf\strlenv\lib\site-packages\google\protobuf\internal\__init__.py)

    • @SPOTLESSTECH
      @SPOTLESSTECH  3 месяца назад

      I am using in this project
      Tensorflow 2.15.0
      Check 1st video of the playlist comment section
      I have pinned all the package with version

  • @debadyutidey7
    @debadyutidey7 2 месяца назад +1

    After creating the web app like shown in the video. How can I create my own app on these topic which can be used by anyone?

    • @SPOTLESSTECH
      @SPOTLESSTECH  2 месяца назад

      You can deploy streamlit app check streamlit documentation
      Just go on share.streamlit.com you will get it

  • @darkbgm4582
    @darkbgm4582 Месяц назад +1

    Fresh leaf(7).png
    AxiosError: Request failed with status code 403
    Fresh leaf(1).png
    AxiosError: Request failed with status code 403 i am struggling with this error how should i resolve

  • @shannunadish
    @shannunadish 7 месяцев назад +1

    Adam' object has no attribute 'build' please resolve this am getting this error if i execute model_prediction()

    • @shannunadish
      @shannunadish 7 месяцев назад

      AttributeError: 'Adam' object has no attribute 'build' please help me in resolving this issue iam having project submission tommorow please replyy i need your help

    • @Aman-fz1ew
      @Aman-fz1ew 7 месяцев назад

      @@shannunadish drive.google.com/file/d/1YNIs92QlZIJP0YQ2e5jGWUAuEWgFR_lE/view

  • @rokomaricloth
    @rokomaricloth 5 месяцев назад +2

    If i want to implement this project like:
    I make a vehicle with a camera, this vehicle monitor plant and if it's found any disease capture an image and check database and show details is the website.

    • @SPOTLESSTECH
      @SPOTLESSTECH  5 месяцев назад

      Develop a system which can detect that type of plant
      Then convert you realtime video into frame and feed to model if it predict something give some threshold like more than 50% its saying that it looks like this plant then run the entire functionality like checking database and showing details of web etc
      If not go ahead and check other frames
      Thats what i think..feel free to add more

  • @stegin19
    @stegin19 7 месяцев назад +2

    # ValueError: Layer 'conv2d_10' expected 2 variables, but received 0 variables during loading.
    # Expected: ['conv2d_10/kernel:0', 'conv2d_10/bias:0']
    i get this error when i click predict button
    please tell me what to do

    • @ankitdubey5045
      @ankitdubey5045 7 месяцев назад +1

      were you able to fix this ?

    • @prasadarote5795
      @prasadarote5795 7 месяцев назад +1

      Please reply sir , I am also getting the same error how to fix it ?

    • @stegin19
      @stegin19 4 месяца назад

      @@ankitdubey5045 The issue was due to a discrepancy between the TensorFlow versions in the backend and frontend. After setting both to version 2.15.0, it worked correctly.

    • @stegin19
      @stegin19 4 месяца назад

      @@prasadarote5795 The issue was due to a discrepancy between the TensorFlow versions in the backend and frontend. After setting both to version 2.15.0, it worked correctly.

    • @mv_photography_17
      @mv_photography_17 15 дней назад

      I install tensorflow 2.15.0... but i get this error... What can i do?

  • @44_Aman_Singh
    @44_Aman_Singh 7 месяцев назад +1

    # ValueError: Layer 'conv2d_10' expected 2 variables, but received 0 variables during loading.
    # Expected: ['conv2d_10/kernel:0', 'conv2d_10/bias:0']
    sir I am getting this error while running the project. Please let me know, how to resolve this

    • @prasadarote5795
      @prasadarote5795 7 месяцев назад

      I am also getting the same error ...plz reply

    • @mv_photography_17
      @mv_photography_17 15 дней назад

      Sir i am getting this error... How can i solve this?

  • @talhaameer2094
    @talhaameer2094 7 месяцев назад +1

    after st.success when i refresh main i get this error on predict button:
    AttributeError: module 'tensorflow' has no attribute 'keras'
    Traceback:
    File "C:\Users\DELL\anaconda3\envs\tensorflow\lib\site-packages\streamlit
    untime\scriptrunner\script_runner.py", line 542, in _run_script
    exec(code, module.__dict__)
    File "C:\Users\DELL\Desktop\Plant Dataset copy\main.py", line 72, in
    result_index = model_prediction(test_image)
    File "C:\Users\DELL\Desktop\Plant Dataset copy\main.py", line 7, in model_prediction
    model = tf.keras.models.load_model('trained_model.keras')

    • @SPOTLESSTECH
      @SPOTLESSTECH  7 месяцев назад

      If you have imported tensorflow as tf
      Then replace all tensorflow call with tf

  • @rutujamundada5233
    @rutujamundada5233 7 месяцев назад +1

    Sir i followed all the videos of this plant disease prediction playlist i used the same dataset and used the same code all over but getting the wrong prediction at the time pf testing image

    • @mondalsoumi
      @mondalsoumi 7 месяцев назад

      Your project is showing any error?

    • @mondalsoumi
      @mondalsoumi 7 месяцев назад

      Is it giving output?

    • @mondalsoumi
      @mondalsoumi 7 месяцев назад

      Did you get any error while training the model?

    • @SPOTLESSTECH
      @SPOTLESSTECH  7 месяцев назад

      On which image you are getting error

    • @rutujamundada5233
      @rutujamundada5233 7 месяцев назад

      Successfully executed my code thank you so much I used flask framework still I have one issue what if the uploaded image is outside the dataset how can I recognise this or show any error msg​@@SPOTLESSTECH

  • @gamerphoenix2775
    @gamerphoenix2775 6 месяцев назад +4

    Sir, this error is coming when i am clicking predict button :
    TypeError: Error when deserializing class 'InputLayer' using config={'batch_shape': [None, 128, 128, 3], 'dtype': 'float32', 'sparse': False, 'name': 'input_layer'}. Exception encountered: Unrecognized keyword arguments: ['batch_shape']
    Traceback:
    File "C:\Users\hp\anaconda3\envs\pblenv\lib\site-packages\streamlit
    untime\scriptrunner\script_runner.py", line 584, in _run_script
    exec(code, module.__dict__)
    File "C:\Users\hp\OneDrive\Desktop\Plant Disease Detection\main.py", line 112, in
    result_index = model_prediction(test_image)
    File "C:\Users\hp\OneDrive\Desktop\Plant Disease Detection\main.py", line 8, in model_prediction
    model = tf.keras.models.load_model("C:/Users/hp/OneDrive/Desktop/Plant Disease Detection/save-model-updated.h5")
    File "C:\Users\hp\anaconda3\envs\pblenv\lib\site-packages\keras\src\saving\saving_api.py", line 238, in load_model
    return legacy_sm_saving_lib.load_model(
    File "C:\Users\hp\anaconda3\envs\pblenv\lib\site-packages\keras\src\utils\traceback_utils.py", line 70, in error_handler
    raise e.with_traceback(filtered_tb) from None
    File "C:\Users\hp\anaconda3\envs\pblenv\lib\site-packages\keras\src\engine\base_layer.py", line 870, in from_config
    raise TypeError(
    please reply

  • @SumitKumar-ew2fo
    @SumitKumar-ew2fo 8 месяцев назад +1

    Sir next video around accuracy please

    • @SPOTLESSTECH
      @SPOTLESSTECH  8 месяцев назад +1

      I have already uploaded accuracy and all in my last videos

    • @SumitKumar-ew2fo
      @SumitKumar-ew2fo 8 месяцев назад

      @@SPOTLESSTECH let me check sir

  • @zidanalamsyahamir8304
    @zidanalamsyahamir8304 5 месяцев назад

    ValueError: No model config found in the file at trained_model_plant_leaf.h5.
    now I got this error when using model h5

  • @umaralam6975
    @umaralam6975 3 дня назад +2

    how to fix this error IndexError: list index out of range
    Traceback:
    File "C:\Users\alamu\AppData\Local\Programs\Python\Python310\lib\site-packages\streamlit
    untime\scriptrunner\exec_code.py", line 88, in exec_func_with_error_handling
    result = func()
    File "C:\Users\alamu\AppData\Local\Programs\Python\Python310\lib\site-packages\streamlit
    untime\scriptrunner\script_runner.py", line 579, in code_to_exec
    exec(code, module.__dict__)
    File "C:\Users\alamu\Downloads\Plant_Disease_Dataset\Plant_Disease_Dataset\main.py", line 88, in
    st.success("Model is Predicting it's a {}".format(class_name[result_index])

    • @SPOTLESSTECH
      @SPOTLESSTECH  3 дня назад

      Print result index and print class_name list separately and show the result, looks like index is exceeding

    • @umaralam6975
      @umaralam6975 3 дня назад +1

      @@SPOTLESSTECH then please guide me how to fix this problem

  • @Boss-nl6sm
    @Boss-nl6sm 5 месяцев назад +2

    Sir can you share the application pls

    • @SPOTLESSTECH
      @SPOTLESSTECH  5 месяцев назад

      Everything is on my github check link from description

  • @kafkatamura2461
    @kafkatamura2461 7 месяцев назад +2

    Sir, after choosing an image I'm getting following error at the place where your image size in kb is showing
    AxiosError: Request failed with status code 403
    please look into this sir

    • @kafkatamura2461
      @kafkatamura2461 7 месяцев назад

      Sir, please reply 🙏

    • @darkbgm4582
      @darkbgm4582 Месяц назад

      same issue
      bro

    • @kafkatamura2461
      @kafkatamura2461 Месяц назад

      @@darkbgm4582 bhai mera issue nikal gya tha later on. I did some changes

  • @minhnhatle5234
    @minhnhatle5234 5 месяцев назад

    How can I get the model ?

    • @SPOTLESSTECH
      @SPOTLESSTECH  5 месяцев назад

      We have saved model while training you have to use that model
      Also I have provided saved model in playlist description you can download and use in your streamlit web app

    • @minhnhatle5234
      @minhnhatle5234 5 месяцев назад

      @@SPOTLESSTECH thanks sir. can I use in Mobile android App with Android Studio

  • @eskinderniguse1901
    @eskinderniguse1901 5 месяцев назад +1

    I like ur project.pls be honest and the video clarity is not good.

    • @SPOTLESSTECH
      @SPOTLESSTECH  5 месяцев назад

      Whats the problem you are experiencing in the video can you please tell so that I’ll try to fix it in upcoming videos

  • @yashinisamarakoon1830
    @yashinisamarakoon1830 7 месяцев назад +1

    Dear sir, I'm getting following error when I'm trying to load the keras model into my python test, could you please help me on this,
    I have already imported followings,
    from tensorflow import keras
    import pandas as pd
    from PIL import Image
    import numpy as np
    from sklearn.preprocessing import LabelEncoder
    oduleNotFoundError: No module named 'keras.src.engine'
    During handling of the above exception, another exception occurred:
    Traceback (most recent call last):
    File "C:\Users\YashiniSamarakoon\PycharmProjects\New\test.py", line 34, in
    model = keras.models.load_model('OurModel.keras')
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\YashiniSamarakoon\AppData\Local\Programs\Python\Python312\Lib\site-packages\keras\src\saving\saving_api.py", line 176, in load_model
    return saving_lib.load_model(
    ^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\YashiniSamarakoon\AppData\Local\Programs\Python\Python312\Lib\site-packages\keras\src\saving\saving_lib.py", line 155, in load_model
    model = deserialize_keras_object(
    ^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\YashiniSamarakoon\AppData\Local\Programs\Python\Python312\Lib\site-packages\keras\src\saving\serialization_lib.py", line 687, in deserialize_keras_object
    cls = _retrieve_class_or_fn(

    • @SPOTLESSTECH
      @SPOTLESSTECH  6 месяцев назад

      Check tensorflow version looks like its a problem with your tensorflow version

  • @furkan-6014
    @furkan-6014 6 месяцев назад +2

    Thank you sir . Im getting an error , Lemme contact you and please tell me where. Im in emergency

  • @yashkataria2992
    @yashkataria2992 7 месяцев назад +2

    its working only for h5 file if i use keras file then it is giving me error
    ValueError: File not found: filepath=trained_plant_disease_model.keras. Please ensure the file is an accessible `.keras` zip file.
    Traceback:
    File "C:\Users\Acer\AppData\Local\Programs\Python\Python312\Lib\site-packages\streamlit
    untime\scriptrunner\script_runner.py", line 542, in _run_script
    exec(code, module.__dict__)
    File "C:\Users\Acer\Desktop\Plant disease detection\New Plant Diseases Dataset(Augmented)\main.py", line 69, in
    result_index = model_prediction(test_image)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\Acer\Desktop\Plant disease detection\New Plant Diseases Dataset(Augmented)\main.py", line 7, in model_prediction
    model = tf.keras.models.load_model('trained_plant_disease_model.keras')
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\Acer\AppData\Local\Programs\Python\Python312\Lib\site-packages\keras\src\saving\saving_api.py", line 185, in load_model
    raise ValueError(

    • @SPOTLESSTECH
      @SPOTLESSTECH  6 месяцев назад

      It may be possible that your pc is not able to process keras file
      I am using mac so keras is supported
      In windows use h5 only

    • @galineharupsica5795
      @galineharupsica5795 5 месяцев назад

      can you please guide how to save in h5 file

    • @yashkataria2992
      @yashkataria2992 5 месяцев назад

      @@galineharupsica5795 watch part 5

  • @galineharupsica5795
    @galineharupsica5795 5 месяцев назад

    ValueError: File not found: filepath=trained_plant_disease_model.keras. Please ensure the file is an accessible `.keras` zip file.
    Traceback:
    File "C:\Users\DELL\anaconda3\Lib\site-packages\streamlit
    untime\scriptrunner\script_runner.py", line 600, in _run_script
    exec(code, module.__dict__)
    File "C:\Users\DELL\Downloads\machineLearning-main\machineLearning-main\Plant_Disease_Prediction\main.py", line 71, in
    result_index = model_prediction(test_image)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\DELL\Downloads\machineLearning-main\machineLearning-main\Plant_Disease_Prediction\main.py", line 8, in model_prediction
    model = tf.keras.models.load_model("trained_plant_disease_model.keras")
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "C:\Users\DELL\anaconda3\Lib\site-packages\keras\src\saving\saving_api.py", line 187, in load_model
    raise ValueError(
    sir i am getting error like please look into this sir its urgent

  • @KwabenaOpoku-pt9hb
    @KwabenaOpoku-pt9hb 6 месяцев назад +3

    Take you for this project. Really loved your teachings.