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
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. 🙏🙏
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
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.
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
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?
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
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']
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
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?
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
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
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."
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?
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
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
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
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?
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)
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
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
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.
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
# 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 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.
@@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.
# 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
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')
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
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
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
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])
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
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
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(
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(
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
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
Thanks ☺️
Keep learning 👍
Take you for this project. Really loved your teachings.
Thanks for your valuable feedback
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. 🙏🙏
Okay thanks for your feedback
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
badiya project tha enjoyed it and got to learn many things
Thanks keep learning 👍👍
had you completed this project plz help me i am stuck with this
@@dreamsteamgorakhpur9899 where u got stuck
@@dreamsteamgorakhpur9899 where you got stuck
@@dreamsteamgorakhpur9899 tell me
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.
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
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?
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
thank you sir!!!@@SPOTLESSTECH
sir i am unable to load the model in vs code which has the same environment as test.ipynb file
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
sir the the GITHUB there plant disease is not showing all the file as in the video pls help to solve this
Same sir I too am facong same sort of issue
Dm me on Instagram
Will discuss and fix it
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']
these are videos are really good, worth watching the entire playlist
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
Do you provide consultant service ?@@SPOTLESSTECH
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?
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
make video on cnn in depth and this playlist is amazing
Thanks for the feedback 👍👍
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
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
Please, help me. I need where to get your " trained_model" file
Go to playlist description you will get drive link download from there
@@SPOTLESSTECH
I downloaded it, but I'm getting an error because I'm using tensorflow version 3.6.0
@@SPOTLESSTECH
They are saying typeError: class'keras.src.models.sequential.sequential' . Could not be deserialized properly
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."
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
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?
You have anaconda installed or not
@@SPOTLESSTECH yup anaconda already installed
Create the environment first. The tensorflow is his environment name
which testing tecnique is used for testing the recognition system?
Check model testing, model evaluation video
Various model evaluation techniques is used in the video
I have explained it in detail
had you completed this project
thanks and gg! btw is this as a college project?(the channel)
Starting from basic project step by step will move forward to advance things
sir please can you share the list of algorithms other than cnn ..
Trained model is not running, it's getting error when we predicting the image, provide proper link for trained model
Dm your error on Instagram
bro i have doubt if i give some images other than my dataset from google its giving wrong answer tell me why
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
@@SPOTLESSTECH but you have done some uploaded image processing in main.pyy doesn't it automatically resize the image
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
There may be possibility that your pc doesn’t supporting keras file
Try to save in h5 file and load model
Did your problem get solved if yes can you guide me how to fix this
@@THUNDER9160 please guide me also
@@SPOTLESSTECH how to save in h5 file same problem facing
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?
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
@@SPOTLESSTECH Can you please mention those? Unable to work in colab
tqq sir
yes sir we required a project on nlp
Thanks for the feedback
yes
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?
same here
Bro just upgrade your streamlit in terminal. It worked for me
Is it complete project playlist
Yes its completed
If i click the predict button it is give me a recursion error what should i do
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
thank you ,sir can i run it on jetson nano set ?
Yeah
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)
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
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?
You can deploy streamlit app check streamlit documentation
Just go on share.streamlit.com you will get it
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
use/allow cors
Adam' object has no attribute 'build' please resolve this am getting this error if i execute model_prediction()
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
@@shannunadish drive.google.com/file/d/1YNIs92QlZIJP0YQ2e5jGWUAuEWgFR_lE/view
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.
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
# 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
were you able to fix this ?
Please reply sir , I am also getting the same error how to fix it ?
@@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.
@@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.
I install tensorflow 2.15.0... but i get this error... What can i do?
# 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
I am also getting the same error ...plz reply
Sir i am getting this error... How can i solve this?
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')
If you have imported tensorflow as tf
Then replace all tensorflow call with tf
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
Your project is showing any error?
Is it giving output?
Did you get any error while training the model?
On which image you are getting error
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
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
Sir next video around accuracy please
I have already uploaded accuracy and all in my last videos
@@SPOTLESSTECH let me check sir
ValueError: No model config found in the file at trained_model_plant_leaf.h5.
now I got this error when using model h5
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])
Print result index and print class_name list separately and show the result, looks like index is exceeding
@@SPOTLESSTECH then please guide me how to fix this problem
Sir can you share the application pls
Everything is on my github check link from description
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
Sir, please reply 🙏
same issue
bro
@@darkbgm4582 bhai mera issue nikal gya tha later on. I did some changes
How can I get the model ?
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
@@SPOTLESSTECH thanks sir. can I use in Mobile android App with Android Studio
I like ur project.pls be honest and the video clarity is not good.
Whats the problem you are experiencing in the video can you please tell so that I’ll try to fix it in upcoming videos
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(
Check tensorflow version looks like its a problem with your tensorflow version
Thank you sir . Im getting an error , Lemme contact you and please tell me where. Im in emergency
Dm me on insta
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(
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
can you please guide how to save in h5 file
@@galineharupsica5795 watch part 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
Take you for this project. Really loved your teachings.
Great keep learning