Spaces:
Running
on
L4
Running
on
L4
update_caption
Browse files- gradio_app.py +3 -3
gradio_app.py
CHANGED
@@ -51,7 +51,7 @@ Generate consistent multi-view normals maps and color images.
|
|
51 |
<div>
|
52 |
The demo does not include the mesh reconstruction part, please visit <a href="https://github.com/xxlong0/Wonder3D/">our github repo</a> to get a textured mesh.
|
53 |
</div>
|
54 |
-
<span style="font-weight: bold; color: #d9534f;">- 2024.
|
55 |
'''
|
56 |
_GPU_ID = 0
|
57 |
|
@@ -61,8 +61,8 @@ if not hasattr(Image, 'Resampling'):
|
|
61 |
|
62 |
|
63 |
def sam_init():
|
64 |
-
model = SamModel.from_pretrained("facebook/sam-vit-
|
65 |
-
processor = SamProcessor.from_pretrained("facebook/sam-vit-
|
66 |
return model, processor
|
67 |
|
68 |
def sam_segment(sam_model, sam_processor, input_image, *bbox_coords):
|
|
|
51 |
<div>
|
52 |
The demo does not include the mesh reconstruction part, please visit <a href="https://github.com/xxlong0/Wonder3D/">our github repo</a> to get a textured mesh.
|
53 |
</div>
|
54 |
+
<span style="font-weight: bold; color: #d9534f;">- 2024.12 We shift our ckpt to the a more powerful model [Wonder3D_Plus] that supports both orthogonal and perspective camera settings and further improves generalizability.</span>
|
55 |
'''
|
56 |
_GPU_ID = 0
|
57 |
|
|
|
61 |
|
62 |
|
63 |
def sam_init():
|
64 |
+
model = SamModel.from_pretrained("facebook/sam-vit-large").to("cuda")
|
65 |
+
processor = SamProcessor.from_pretrained("facebook/sam-vit-large")
|
66 |
return model, processor
|
67 |
|
68 |
def sam_segment(sam_model, sam_processor, input_image, *bbox_coords):
|