Spaces:
Runtime error
Runtime error
Update
Browse files- README.md +1 -1
- model.py +2 -2
- requirements.txt +2 -2
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: 🧢
|
|
4 |
colorFrom: yellow
|
5 |
colorTo: blue
|
6 |
sdk: gradio
|
7 |
-
sdk_version: 3.
|
8 |
python_version: 3.10.11
|
9 |
app_file: app.py
|
10 |
pinned: false
|
|
|
4 |
colorFrom: yellow
|
5 |
colorTo: blue
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 3.38.0
|
8 |
python_version: 3.10.11
|
9 |
app_file: app.py
|
10 |
pinned: false
|
model.py
CHANGED
@@ -12,12 +12,12 @@ class Model:
|
|
12 |
def __init__(self):
|
13 |
self.device = torch.device(
|
14 |
'cuda' if torch.cuda.is_available() else 'cpu')
|
15 |
-
self.pipe = ShapEPipeline.from_pretrained('
|
16 |
torch_dtype=torch.float16)
|
17 |
self.pipe.to(self.device)
|
18 |
|
19 |
self.pipe_img = ShapEImg2ImgPipeline.from_pretrained(
|
20 |
-
'
|
21 |
self.pipe_img.to(self.device)
|
22 |
|
23 |
def to_glb(self, ply_path: str) -> str:
|
|
|
12 |
def __init__(self):
|
13 |
self.device = torch.device(
|
14 |
'cuda' if torch.cuda.is_available() else 'cpu')
|
15 |
+
self.pipe = ShapEPipeline.from_pretrained('openai/shap-e',
|
16 |
torch_dtype=torch.float16)
|
17 |
self.pipe.to(self.device)
|
18 |
|
19 |
self.pipe_img = ShapEImg2ImgPipeline.from_pretrained(
|
20 |
+
'openai/shap-e-img2img', torch_dtype=torch.float16)
|
21 |
self.pipe_img.to(self.device)
|
22 |
|
23 |
def to_glb(self, ply_path: str) -> str:
|
requirements.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
git+https://github.com/huggingface/diffusers@
|
2 |
-
gradio==3.
|
3 |
torch==2.0.1
|
4 |
torchvision==0.15.2
|
5 |
trimesh==3.22.3
|
|
|
1 |
+
git+https://github.com/huggingface/diffusers@09fab56
|
2 |
+
gradio==3.38.0
|
3 |
torch==2.0.1
|
4 |
torchvision==0.15.2
|
5 |
trimesh==3.22.3
|