Update sam_module.py
Browse files- sam_module.py +1 -0
sam_module.py
CHANGED
|
@@ -121,6 +121,7 @@ def create_sam_mask(self, image, bbox_coords, mode):
|
|
| 121 |
# Heuristik-Berechnung
|
| 122 |
mask_area_pixels = np.sum(mask_binary)
|
| 123 |
|
|
|
|
| 124 |
bbox_mask = np.zeros((image.height, image.width), dtype=np.uint8)
|
| 125 |
bbox_mask[y1:y2, x1:x2] = 1
|
| 126 |
|
|
|
|
| 121 |
# Heuristik-Berechnung
|
| 122 |
mask_area_pixels = np.sum(mask_binary)
|
| 123 |
|
| 124 |
+
#Berechnung von Überlappung SAM-Maske und ursprünglicher BBox
|
| 125 |
bbox_mask = np.zeros((image.height, image.width), dtype=np.uint8)
|
| 126 |
bbox_mask[y1:y2, x1:x2] = 1
|
| 127 |
|