Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ threshold = 0.75
|
|
| 8 |
model = tf.saved_model.load("best_saved_model") #Loading the saved model
|
| 9 |
|
| 10 |
def process_img(img):
|
| 11 |
-
img = img.resize(640,640) # resize the image as reqired for the model input
|
| 12 |
copy_img = img.copy()
|
| 13 |
img = np.array(img/255) # Normalizing the picel value
|
| 14 |
img = img.astype("float32") # Convert the format double to format float
|
|
|
|
| 8 |
model = tf.saved_model.load("best_saved_model") #Loading the saved model
|
| 9 |
|
| 10 |
def process_img(img):
|
| 11 |
+
img = img.resize((640,640)) # resize the image as reqired for the model input
|
| 12 |
copy_img = img.copy()
|
| 13 |
img = np.array(img/255) # Normalizing the picel value
|
| 14 |
img = img.astype("float32") # Convert the format double to format float
|