bartduis commited on
Commit
c83929c
·
1 Parent(s): 7338f96
Files changed (1) hide show
  1. app.py +9 -7
app.py CHANGED
@@ -1,3 +1,12 @@
 
 
 
 
 
 
 
 
 
1
  import numpy as np
2
  import gradio as gr
3
  import torch
@@ -11,14 +20,7 @@ from huggingface_hub import hf_hub_download
11
  from PIL import Image
12
  import matplotlib.pyplot as plt
13
  from eval_wrapper.eval import EvalWrapper, eval_scene
14
- from spaces import GPU
15
 
16
- @GPU
17
- def dummy_warmup():
18
- import torch
19
- if torch.cuda.is_available():
20
- print("Warmup: GPU is available!")
21
- _ = torch.tensor([0.0]).to("cuda")
22
 
23
  outdir = "/tmp/rayst3r"
24
 
 
1
+ from spaces import GPU
2
+ @GPU
3
+ def dummy_warmup():
4
+ import torch
5
+ if torch.cuda.is_available():
6
+ print("Warmup: GPU is available!")
7
+ _ = torch.tensor([0.0]).to("cuda")
8
+ dummy_warmup()
9
+
10
  import numpy as np
11
  import gradio as gr
12
  import torch
 
20
  from PIL import Image
21
  import matplotlib.pyplot as plt
22
  from eval_wrapper.eval import EvalWrapper, eval_scene
 
23
 
 
 
 
 
 
 
24
 
25
  outdir = "/tmp/rayst3r"
26