Skip to content

Transform your 3D texturing workflow with the power of generative AI, directly within Blender!

add birefnet fp32 patch to trellis2 installer

sakalondd42a1f0634c5
diff --git a/installer.py b/installer.py
index a3ba11f..8dbfd6c 100644
--- a/installer.py
+++ b/installer.py
@@ -624,6 +624,13 @@ DEPENDENCIES: Dict[str, Dict[str, Any]] = {
"patch": _PATCH_TRELLIS_TEMP_CLEANUP_REPLACE,
"mode": "replace",
},
+ {
+ "file": "nodes/rembg/BiRefNet.py",
+ "marker": "StableGen patch: BiRefNet fp32",
+ "anchor": "self.model.eval()",
+ "patch": "self.model.eval()\n self.model.float() # StableGen patch: BiRefNet fp32 — avoid fp16/fp32 dtype mismatch",
+ "mode": "replace",
+ },
]
},
# --- FLUX.2 Klein 4B ---