Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -270,6 +270,8 @@ with gr.Blocks(delete_cache=(600, 600)) as demo:
|
|
270 |
|
271 |
if __name__ == "__main__":
|
272 |
pipeline = TrellisImageTo3DPipeline.from_pretrained("JeffreyXiang/TRELLIS-image-large")
|
273 |
-
pipeline.cuda()
|
274 |
try:
|
275 |
-
pipeline.
|
|
|
|
|
|
|
|
270 |
|
271 |
if __name__ == "__main__":
|
272 |
pipeline = TrellisImageTo3DPipeline.from_pretrained("JeffreyXiang/TRELLIS-image-large")
|
|
|
273 |
try:
|
274 |
+
pipeline.preprocess_image(Image.fromarray(np.zeros((512, 512, 3), dtype=np.uint8))) # Preload rembg
|
275 |
+
except:
|
276 |
+
pass
|
277 |
+
demo.launch()
|