saroz014 / plant-diseases-recognition Goto Github PK
View Code? Open in Web Editor NEWCNN classifier for recognizing plant diseases using Keras
CNN classifier for recognizing plant diseases using Keras
hi , can you provide report of this project .
Loading the model you provided having accuracy around 2%.
Hi @saroz014 @bhavandar ,
I want to make an api this total application how can i make an api this application could you help me..
Thanks and Regards,
Manikantha Sekhar..
Hi Saroj,
This is a great project, how do we execute it? from terminal?
Thank you in advance!
which exact python version you used in this project
Hi @saroz014 ,
It is very helful for me i want the dataset of plant diseases which you explained in the readme.md file is their any link to download the dataset for that plant diseases
Thank and Regards,
Manikantha Sekhar.
If your python version is 3.7 or less this requirement.txt installation will work great,
Those who have python version 3.8+ will face some issues while installing Keras 1.15
For Python version 3.8+ first, install TensorFlow by
pip install tensorFlow
it will install TensorFlow version 2.5
Do these following steps in order to make the project working :
from keras.models import load_model
by this.
from tensorflow import keras
with graph.as_default():
model = tf.keras.models.load_model('AlexNetModel.hdf5')
prediction = model.predict(image_array)
4: The code is using Keras library for importing images you can now import it by Image library.
comment this line# img = image.load_img('sample_image.png', target_size=(224, 224))
comment this line# img = image.img_to_array(img)
comment this line# img = np.expand_dims(img, axis=0)
comment this line# img = img/255
comment this line# print(type(img))
comment this line# img = tf.keras.preprocessing.image.array_to_img(img_data)
Now replace those lines by these lines :
input_image=Image.open("sample_image.png")
input_image = input_image.resize((224,224), resample=Image.LANCZOS)
image_array=np.array(input_image)
image_array=image_array.astype('float32')
image_array/=255
image_array=image_array.reshape(1,224,224,3)
These steps will fix your code according to the version.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.