Spaces:
Paused
Paused
Update trellis/pipelines/trellis_image_to_3d.py
Browse files818 unmodified lines819820821822823824825826827818 unmodified linesnew_pipeline.__dict__ = pipeline.__dict__args = pipeline._pretrained_argsnew_pipeline.VGGT_dtype = torch.float32# VGGT_model = VGGT()# VGGT_model_weight = torch.load("weights/VGGT_weight/object_vggt_model.pt", map_location=torch.device('cpu'))# VGGT_model.load_state_dict(VGGT_model_weight)VGGT_model = VGGT.from_pretrained("Stable-X/vggt-object-v0-1")new_pipeline.VGGT_model = VGGT_model.to(new_pipeline.device)del new_pipeline.VGGT_model.depth_head818 unmodified lines819820821822823824818 unmodified linesnew_pipeline.__dict__ = pipeline.__dict__args = pipeline._pretrained_argsnew_pipeline.VGGT_dtype = torch.float32VGGT_model = VGGT.from_pretrained("Stable-X/vggt-object-v0-1")new_pipeline.VGGT_model = VGGT_model.to(new_pipeline.device)del new_pipeline.VGGT_model.depth_head
trellis/pipelines/trellis_image_to_3d.py-3