lemonaddie commited on
Commit
279855a
1 Parent(s): 59715a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -359,7 +359,7 @@ def run_demo_server(pipe):
359
  map_id_to_default = {b._id: b.value for b in blocks_settings}
360
 
361
  inputs = [
362
- input_image.cuda(),
363
  ensemble_size,
364
  denoise_steps,
365
  processing_res,
@@ -503,7 +503,8 @@ def main():
503
 
504
  from pipeline.depth_normal_pipeline_clip_cfg import DepthNormalEstimationPipeline
505
 
506
- device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
 
507
  pipe = DepthNormalEstimationPipeline.from_pretrained(CHECKPOINT)
508
 
509
  try:
 
359
  map_id_to_default = {b._id: b.value for b in blocks_settings}
360
 
361
  inputs = [
362
+ input_image,
363
  ensemble_size,
364
  denoise_steps,
365
  processing_res,
 
503
 
504
  from pipeline.depth_normal_pipeline_clip_cfg import DepthNormalEstimationPipeline
505
 
506
+ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
507
+ print(device)
508
  pipe = DepthNormalEstimationPipeline.from_pretrained(CHECKPOINT)
509
 
510
  try: