Emmanuel Frimpong Asante
commited on
Commit
·
5aeb365
1
Parent(s):
e1b4407
"Update space"
Browse filesSigned-off-by: Emmanuel Frimpong Asante <[email protected]>
services/disease_detection.py
CHANGED
@@ -2,8 +2,11 @@
|
|
2 |
|
3 |
import cv2
|
4 |
import numpy as np
|
|
|
5 |
from keras.models import load_model
|
6 |
|
|
|
|
|
7 |
# Load the model (ensure the model path is correct)
|
8 |
my_model = load_model('models/Final_Chicken_disease_model.h5')
|
9 |
|
|
|
2 |
|
3 |
import cv2
|
4 |
import numpy as np
|
5 |
+
import tensorflow as tf
|
6 |
from keras.models import load_model
|
7 |
|
8 |
+
# Check your model optimizer configuration
|
9 |
+
optimizer = tf.keras.optimizers.Adam() # Default optimizer without weight_decay
|
10 |
# Load the model (ensure the model path is correct)
|
11 |
my_model = load_model('models/Final_Chicken_disease_model.h5')
|
12 |
|