Alessio Grancini
commited on
Update image_segmenter.py
Browse files- image_segmenter.py +4 -0
image_segmenter.py
CHANGED
@@ -11,6 +11,10 @@ class ImageSegmenter:
|
|
11 |
self.model = YOLO('models/'+ model_type +'.pt')
|
12 |
self.model.to(self.device)
|
13 |
|
|
|
|
|
|
|
|
|
14 |
self.is_show_bounding_boxes = True
|
15 |
self.is_show_segmentation_boundary = False
|
16 |
self.is_show_segmentation = False
|
|
|
11 |
self.model = YOLO('models/'+ model_type +'.pt')
|
12 |
self.model.to(self.device)
|
13 |
|
14 |
+
# Print all categories
|
15 |
+
print("YOLOv8 Categories:")
|
16 |
+
print(self.model.names)
|
17 |
+
|
18 |
self.is_show_bounding_boxes = True
|
19 |
self.is_show_segmentation_boundary = False
|
20 |
self.is_show_segmentation = False
|