CharlieAmalet commited on
Commit
6af6ea2
·
verified ·
1 Parent(s): 9e6d7b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -21,7 +21,7 @@ css = """
21
 
22
  """
23
  DEVICE = 'cuda' if torch.cuda.is_available() else 'cpu'
24
- model = torch.hub.load('isl-org/ZoeDepth', "ZoeD_N", pretrained=True).to(DEVICE).eval()
25
 
26
  # config_mode="infer"
27
  # pretrained_resource = f"local::C:/Users/Charl/.cache/torch/hub/checkpoints/ZoeD_M12_N.pt"
@@ -35,9 +35,9 @@ with gr.Blocks(css=css) as API:
35
  # gr.Markdown(title)
36
  # gr.Markdown(description)
37
  with gr.Tab("Depth Prediction"):
38
- depth_interface(model)
39
  with gr.Tab("Image to 3D"):
40
- mesh_interface(model)
41
  # with gr.Tab("360 Panorama to 3D"):
42
  # create_pano_to_3d_demo(model)
43
 
 
21
 
22
  """
23
  DEVICE = 'cuda' if torch.cuda.is_available() else 'cpu'
24
+ model = torch.hub.load('isl-org/ZoeDepth', "ZoeD_N", pretrained=True).to("cpu").eval()
25
 
26
  # config_mode="infer"
27
  # pretrained_resource = f"local::C:/Users/Charl/.cache/torch/hub/checkpoints/ZoeD_M12_N.pt"
 
35
  # gr.Markdown(title)
36
  # gr.Markdown(description)
37
  with gr.Tab("Depth Prediction"):
38
+ depth_interface(model, DEVICE)
39
  with gr.Tab("Image to 3D"):
40
+ mesh_interface(model, DEVICE)
41
  # with gr.Tab("360 Panorama to 3D"):
42
  # create_pano_to_3d_demo(model)
43