bartduis commited on
Commit
7338f96
·
1 Parent(s): 01d5275
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -11,9 +11,15 @@ 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 torchvision import transforms
15
  from spaces import GPU
16
 
 
 
 
 
 
 
 
17
  outdir = "/tmp/rayst3r"
18
 
19
  # loading all necessary models
 
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
 
25
  # loading all necessary models