905saini commited on
Commit
38af6b6
·
1 Parent(s): b2fe7c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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