Stable-X commited on
Commit
6901e5d
·
verified ·
1 Parent(s): 175894a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -480,9 +480,9 @@ def main():
480
 
481
  x_start_pipeline = YOSONormalsPipeline.from_pretrained(
482
  'Stable-X/yoso-normal-v0-1', trust_remote_code=True,
483
- t_start=300).to(device, torch.float16)
484
  dinov2_prior = DINOv2_Encoder(size=672)
485
- dinov2_prior.to(device, torch.float16)
486
 
487
  pipe = StableNormalPipeline.from_pretrained('Stable-X/stable-normal-v0-1', t_start=300, trust_remote_code=True,
488
  scheduler=HEURI_DDIMScheduler(prediction_type='sample',
@@ -491,7 +491,7 @@ def main():
491
  # two stage concat
492
  pipe.x_start_pipeline = x_start_pipeline
493
  pipe.prior = dinov2_prior
494
- pipe.to(device, torch.float16)
495
 
496
  try:
497
  import xformers
 
480
 
481
  x_start_pipeline = YOSONormalsPipeline.from_pretrained(
482
  'Stable-X/yoso-normal-v0-1', trust_remote_code=True,
483
+ t_start=300).to(device)
484
  dinov2_prior = DINOv2_Encoder(size=672)
485
+ dinov2_prior.to(device)
486
 
487
  pipe = StableNormalPipeline.from_pretrained('Stable-X/stable-normal-v0-1', t_start=300, trust_remote_code=True,
488
  scheduler=HEURI_DDIMScheduler(prediction_type='sample',
 
491
  # two stage concat
492
  pipe.x_start_pipeline = x_start_pipeline
493
  pipe.prior = dinov2_prior
494
+ pipe.to(device)
495
 
496
  try:
497
  import xformers