kevalnagda / plant-disease-detection

A plant disease detector (classifier) based on the PlantVillage dataset.
32 stars 27 forks source link

too low val_acc #1

Open ozlemalci opened 3 years ago

ozlemalci commented 3 years ago

I do same process but i see too low val_acc and val_loss Why?

Thanks

SureshbabuAkash1999 commented 3 years ago

Try changing the no of epochs.

WJJLPK commented 2 years ago

Hello,When I predict the disease of a plant from an image, the error:

AttributeError Traceback (most recent call last)

in () ----> 1 predict_disease('/content/PlantVillage/val/Potato___Early_blight/03b0d3c1-b5b0-48f4-98aa-f8904670290f___RS_Early.B 7051.JPG') in predict_disease(image_path) 4 np_image = np.expand_dims(np_image,0) 5 plt.imshow(plt.imread(image_path)) ----> 6 result = model.predict_classes(np_image) 7 print((image_labels.classes_[result][0])) AttributeError: 'Sequential' object has no attribute 'predict_classes' I don't know why. Thanks
ozlemalci commented 2 years ago

You may controlled file path

20 Ara 2021 Pzt 16:22 tarihinde WJJLPK @.***> şunu yazdı:

Hello,When I predict the disease of a plant from an image, the error:

AttributeError Traceback (most recent call last) in () ----> 1 predict_disease('/content/PlantVillage/val/Potato_Earlyblight/03b0d3c1-b5b0-48f4-98aa-f8904670290fRS_Early.B 7051.JPG')

in predict_disease(image_path) 4 np_image = np.expand_dims(np_image,0) 5 plt.imshow(plt.imread(image_path)) ----> 6 result = model.predict_classes(np_image) 7 print((imagelabels.classes[result][0]))

AttributeError: 'Sequential' object has no attribute 'predict_classes'

I don't know why.

Thanks

— Reply to this email directly, view it on GitHub https://github.com/kevalnagda/plant-disease-detection/issues/1#issuecomment-997921264, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK44JTGJAKGGF6XWAMQK5F3UR4U3BANCNFSM454RXL5Q . You are receiving this because you authored the thread.Message ID: @.***>