JaydeepR commited on
Commit
bb7814c
·
verified ·
1 Parent(s): e4b1e39

Update identification_model.py

Browse files
Files changed (1) hide show
  1. identification_model.py +2 -2
identification_model.py CHANGED
@@ -10,8 +10,8 @@ def load_yolov8_model():
10
 
11
  def run_object_detection(model, image_path):
12
  # Load the image
13
- image = Image.open(image_path).convert('RGB')
14
- image_np = np.array(image)
15
 
16
  # Run inference
17
  results = model(image_np)
 
10
 
11
  def run_object_detection(model, image_path):
12
  # Load the image
13
+ # image = Image.open(image_path).convert('RGB')
14
+ image_np = np.array(image_path)
15
 
16
  # Run inference
17
  results = model(image_np)