Update controlnet_module.py
Browse files- controlnet_module.py +3 -0
controlnet_module.py
CHANGED
|
@@ -186,6 +186,9 @@ class ControlNetProcessor:
|
|
| 186 |
|
| 187 |
except Exception as e:
|
| 188 |
print(f"⚠️ SAM 2 Fehler (Transformers API): {str(e)[:200]}")
|
|
|
|
|
|
|
|
|
|
| 189 |
import traceback
|
| 190 |
traceback.print_exc()
|
| 191 |
print("ℹ️ Fallback auf rechteckige Maske")
|
|
|
|
| 186 |
|
| 187 |
except Exception as e:
|
| 188 |
print(f"⚠️ SAM 2 Fehler (Transformers API): {str(e)[:200]}")
|
| 189 |
+
print(f"🔍 SAM 2 Model dtype: {self.sam_model.dtype}")
|
| 190 |
+
print(f"🔍 SAM 2 Parameter dtype Beispiel: {next(self.sam_model.parameters()).dtype}")
|
| 191 |
+
print(f"🔍 Input 'pixel_values' dtype: {inputs['pixel_values'].dtype}")
|
| 192 |
import traceback
|
| 193 |
traceback.print_exc()
|
| 194 |
print("ℹ️ Fallback auf rechteckige Maske")
|