Update sam_module.py
Browse files- sam_module.py +1 -1
sam_module.py
CHANGED
|
@@ -1003,7 +1003,7 @@ def create_sam_mask(self, image, bbox_coords, mode):
|
|
| 1003 |
print(f" Maskengröße auf Ausschnitt: {temp_mask.size}")
|
| 1004 |
|
| 1005 |
# Maske auf 512x512 skalieren (für Inpainting)
|
| 1006 |
-
mask_512 = temp_mask.
|
| 1007 |
print(f" Maske auf 512x512 skaliert")
|
| 1008 |
|
| 1009 |
|
|
|
|
| 1003 |
print(f" Maskengröße auf Ausschnitt: {temp_mask.size}")
|
| 1004 |
|
| 1005 |
# Maske auf 512x512 skalieren (für Inpainting)
|
| 1006 |
+
mask_512 = temp_mask.resize((512,512), Image.Resampling.LANCZOS)
|
| 1007 |
print(f" Maske auf 512x512 skaliert")
|
| 1008 |
|
| 1009 |
|