Stable-X commited on
Commit
65ab932
·
2 Parent(s): b0aae1b 3c84520

Merge branch 'main' of https://huggingface.co/spaces/Stable-X/normal-estimation-comparison

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -46,7 +46,7 @@ class Geowizard(object):
46
  '''
47
 
48
  def __init__(self):
49
- self.model = DepthNormalEstimationPipeline.from_pretrained("weights/Geowizard/", torch_dtype=torch.float16)
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("weights/marigold-normals-v0-1", torch_dtype=torch.float16)
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('/workspace/code/InverseRendering/StableNormal/weights/yoso-normal-v0-2',
135
  variant="fp16", torch_dtype=torch.float16)
136
- self.model = StableNormalPipeline.from_pretrained('/workspace/code/InverseRendering/StableNormal/weights/stable-normal-v0-1',
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,