Spaces:
Running
on
Zero
Running
on
Zero
Update trellis/pipelines/trellis_image_to_3d.py
Browse files
trellis/pipelines/trellis_image_to_3d.py
CHANGED
|
@@ -19,7 +19,7 @@ from typing import *
|
|
| 19 |
from scipy.spatial.transform import Rotation
|
| 20 |
from transformers import AutoModelForImageSegmentation
|
| 21 |
import rembg
|
| 22 |
-
from dreamsim import dreamsim
|
| 23 |
|
| 24 |
def export_point_cloud(xyz, color):
|
| 25 |
# Convert tensors to numpy arrays if needed
|
|
@@ -987,8 +987,8 @@ class TrellisVGGTTo3DPipeline(TrellisImageTo3DPipeline):
|
|
| 987 |
|
| 988 |
new_pipeline._init_image_cond_model(args['image_cond_model'])
|
| 989 |
|
| 990 |
-
model, _ = dreamsim(pretrained=True, device=new_pipeline.device, dreamsim_type="dino_vitb16", cache_dir="weights/dreamsim")
|
| 991 |
-
new_pipeline.dreamsim_model = model
|
| 992 |
-
new_pipeline.dreamsim_model.eval()
|
| 993 |
|
| 994 |
return new_pipeline
|
|
|
|
| 19 |
from scipy.spatial.transform import Rotation
|
| 20 |
from transformers import AutoModelForImageSegmentation
|
| 21 |
import rembg
|
| 22 |
+
# from dreamsim import dreamsim
|
| 23 |
|
| 24 |
def export_point_cloud(xyz, color):
|
| 25 |
# Convert tensors to numpy arrays if needed
|
|
|
|
| 987 |
|
| 988 |
new_pipeline._init_image_cond_model(args['image_cond_model'])
|
| 989 |
|
| 990 |
+
# model, _ = dreamsim(pretrained=True, device=new_pipeline.device, dreamsim_type="dino_vitb16", cache_dir="weights/dreamsim")
|
| 991 |
+
# new_pipeline.dreamsim_model = model
|
| 992 |
+
# new_pipeline.dreamsim_model.eval()
|
| 993 |
|
| 994 |
return new_pipeline
|