Spaces:
Runtime error
Runtime error
Update app and requirements
Browse files- app.py +4 -4
- requirements.txt +2 -1
- requirements_min.txt +1 -0
app.py
CHANGED
@@ -46,7 +46,7 @@ class Geowizard(object):
|
|
46 |
'''
|
47 |
|
48 |
def __init__(self):
|
49 |
-
self.model = DepthNormalEstimationPipeline.from_pretrained("
|
50 |
|
51 |
def cuda(self):
|
52 |
self.model.cuda()
|
@@ -103,7 +103,7 @@ class Marigold(Geowizard):
|
|
103 |
'''
|
104 |
|
105 |
def __init__(self):
|
106 |
-
self.model= diffusers.MarigoldNormalsPipeline.from_pretrained("
|
107 |
|
108 |
|
109 |
@torch.no_grad()
|
@@ -131,9 +131,9 @@ class StableNormal(Geowizard):
|
|
131 |
'''
|
132 |
|
133 |
def __init__(self):
|
134 |
-
x_start_pipeline = YOSONormalsPipeline.from_pretrained('/
|
135 |
variant="fp16", torch_dtype=torch.float16)
|
136 |
-
self.model = StableNormalPipeline.from_pretrained('/
|
137 |
variant="fp16", torch_dtype=torch.float16,
|
138 |
scheduler=HEURI_DDIMScheduler(prediction_type='sample',
|
139 |
beta_start=0.00085, beta_end=0.0120,
|
|
|
46 |
'''
|
47 |
|
48 |
def __init__(self):
|
49 |
+
self.model = DepthNormalEstimationPipeline.from_pretrained("lemonaddie/Geowizard", torch_dtype=torch.float16)
|
50 |
|
51 |
def cuda(self):
|
52 |
self.model.cuda()
|
|
|
103 |
'''
|
104 |
|
105 |
def __init__(self):
|
106 |
+
self.model= diffusers.MarigoldNormalsPipeline.from_pretrained("prs-eth/marigold-normals-v0-1", torch_dtype=torch.float16)
|
107 |
|
108 |
|
109 |
@torch.no_grad()
|
|
|
131 |
'''
|
132 |
|
133 |
def __init__(self):
|
134 |
+
x_start_pipeline = YOSONormalsPipeline.from_pretrained('Stable-X/yoso-normal-v0-2', trust_remote_code=True,
|
135 |
variant="fp16", torch_dtype=torch.float16)
|
136 |
+
self.model = StableNormalPipeline.from_pretrained('Stable-X/stable-normal-v0-1', trust_remote_code=True,
|
137 |
variant="fp16", torch_dtype=torch.float16,
|
138 |
scheduler=HEURI_DDIMScheduler(prediction_type='sample',
|
139 |
beta_start=0.00085, beta_end=0.0120,
|
requirements.txt
CHANGED
@@ -109,7 +109,8 @@ sympy==1.12.1
|
|
109 |
tokenizers==0.15.2
|
110 |
tomlkit==0.12.0
|
111 |
toolz==0.12.1
|
112 |
-
torch==2.
|
|
|
113 |
tqdm==4.66.4
|
114 |
transformers==4.36.1
|
115 |
trimesh==4.0.5
|
|
|
109 |
tokenizers==0.15.2
|
110 |
tomlkit==0.12.0
|
111 |
toolz==0.12.1
|
112 |
+
torch==2.0.1
|
113 |
+
torchvision==v0.15.2
|
114 |
tqdm==4.66.4
|
115 |
transformers==4.36.1
|
116 |
trimesh==4.0.5
|
requirements_min.txt
CHANGED
@@ -13,6 +13,7 @@ diffusers>=0.28.0
|
|
13 |
matplotlib==3.8.2
|
14 |
scipy==1.11.4
|
15 |
torch==2.0.1
|
|
|
16 |
transformers==4.36.1
|
17 |
xformers==0.0.21
|
18 |
opencv-python-headless==4.8.1.78
|
|
|
13 |
matplotlib==3.8.2
|
14 |
scipy==1.11.4
|
15 |
torch==2.0.1
|
16 |
+
torchvision==v0.15.2
|
17 |
transformers==4.36.1
|
18 |
xformers==0.0.21
|
19 |
opencv-python-headless==4.8.1.78
|