abreza commited on
Commit
8d823b9
·
1 Parent(s): 27daf6b
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -34,9 +34,6 @@ import spaces
34
 
35
  # print(adaptive_conv_cuda_impl, adaptive_conv_cpp_impl)
36
 
37
- output = subprocess.check_output(['ls', '/']).decode()
38
- print(output)
39
-
40
  def plot_feats(image, lr, hr):
41
  from featup.util import pca, remove_axes
42
  assert len(image.shape) == len(lr.shape) == len(hr.shape) == 3
@@ -115,6 +112,13 @@ model_option = gr.Radio(options, value="dino16",
115
 
116
  @spaces.GPU
117
  def upsample_features(image, model_option):
 
 
 
 
 
 
 
118
  from featup.util import norm, unnorm
119
  models = {o: torch.hub.load("mhamilton723/FeatUp", o) for o in options}
120
 
 
34
 
35
  # print(adaptive_conv_cuda_impl, adaptive_conv_cpp_impl)
36
 
 
 
 
37
  def plot_feats(image, lr, hr):
38
  from featup.util import pca, remove_axes
39
  assert len(image.shape) == len(lr.shape) == len(hr.shape) == 3
 
112
 
113
  @spaces.GPU
114
  def upsample_features(image, model_option):
115
+
116
+ output = subprocess.check_output(['ls', '/']).decode()
117
+ print(output)
118
+ print(torch.version.cuda)
119
+ cuda_version = subprocess.run(['nvcc', '--version'], stdout=subprocess.PIPE)
120
+ print(cuda_version.stdout.decode('utf-8'))
121
+
122
  from featup.util import norm, unnorm
123
  models = {o: torch.hub.load("mhamilton723/FeatUp", o) for o in options}
124