Spaces:
Running
on
Zero
Running
on
Zero
Merge branch 'main' of https://huggingface.co/spaces/Stable-X/normal-estimation-comparison
Browse files
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,
|