test
Browse files
app.py
CHANGED
@@ -10,6 +10,7 @@ import os
|
|
10 |
import requests
|
11 |
import csv
|
12 |
import spaces
|
|
|
13 |
|
14 |
|
15 |
def plot_feats(image, lr, hr):
|
@@ -108,10 +109,8 @@ def find_cuda_home():
|
|
108 |
|
109 |
@spaces.GPU
|
110 |
def upsample_features(image, model_option):
|
111 |
-
|
112 |
-
print(
|
113 |
-
|
114 |
-
os.environ['CUDA_HOME'] = cuda_home
|
115 |
os.environ['PATH'] = '/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
|
116 |
os.environ['LD_LIBRARY_PATH'] = '/usr/local/nvidia/lib:/usr/local/nvidia/lib64'
|
117 |
|
|
|
10 |
import requests
|
11 |
import csv
|
12 |
import spaces
|
13 |
+
from triton.fb import build_paths
|
14 |
|
15 |
|
16 |
def plot_feats(image, lr, hr):
|
|
|
109 |
|
110 |
@spaces.GPU
|
111 |
def upsample_features(image, model_option):
|
112 |
+
os.environ["CUDA_HOME"] = build_paths.cuda()
|
113 |
+
print(os.environ["CUDA_HOME"])
|
|
|
|
|
114 |
os.environ['PATH'] = '/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
|
115 |
os.environ['LD_LIBRARY_PATH'] = '/usr/local/nvidia/lib:/usr/local/nvidia/lib64'
|
116 |
|