Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
39cf56c
1
Parent(s):
540a9b3
update
Browse files
trellis2/pipelines/trellis2_image_to_3d.py
CHANGED
|
@@ -113,7 +113,8 @@ class Trellis2ImageTo3DPipeline(Pipeline):
|
|
| 113 |
if not self.low_vram:
|
| 114 |
super().to(device)
|
| 115 |
self.image_cond_model.to(device)
|
| 116 |
-
self.rembg_model
|
|
|
|
| 117 |
|
| 118 |
def preprocess_image(self, input: Image.Image) -> Image.Image:
|
| 119 |
"""
|
|
|
|
| 113 |
if not self.low_vram:
|
| 114 |
super().to(device)
|
| 115 |
self.image_cond_model.to(device)
|
| 116 |
+
if self.rembg_model is not None:
|
| 117 |
+
self.rembg_model.to(device)
|
| 118 |
|
| 119 |
def preprocess_image(self, input: Image.Image) -> Image.Image:
|
| 120 |
"""
|