Alessio Grancini commited on
Commit
0fce87c
·
verified ·
1 Parent(s): 764f5d5

Update image_segmenter.py

Browse files
Files changed (1) hide show
  1. image_segmenter.py +2 -2
image_segmenter.py CHANGED
@@ -40,10 +40,10 @@ class ImageSegmenter:
40
  # params
41
  objects_data = []
42
  image = image.copy()
43
- #predictions = self.model.predict(image)
44
  # Use the original image resolution (1512x1008) instead of default YOLO resize
45
  # predictions = self.model.predict(image, imgsz=(1512, 1008), conf=self.confidence_threshold)
46
- predictions = self.model.predict(image, imgsz=(1536, 1024), conf=self.confidence_threshold)
47
 
48
  cls_ids = predictions[0].boxes.cls.cpu().numpy()
49
  bounding_boxes = predictions[0].boxes.xyxy.int().cpu().numpy()
 
40
  # params
41
  objects_data = []
42
  image = image.copy()
43
+ predictions = self.model.predict(image)
44
  # Use the original image resolution (1512x1008) instead of default YOLO resize
45
  # predictions = self.model.predict(image, imgsz=(1512, 1008), conf=self.confidence_threshold)
46
+ # predictions = self.model.predict(image, imgsz=(1536, 1024), conf=self.confidence_threshold)
47
 
48
  cls_ids = predictions[0].boxes.cls.cpu().numpy()
49
  bounding_boxes = predictions[0].boxes.xyxy.int().cpu().numpy()