test
Browse files
app.py
CHANGED
@@ -93,10 +93,16 @@ def upsample_features(image, model_option):
|
|
93 |
with torch.no_grad():
|
94 |
from setuptools import setup, find_packages
|
95 |
from torch.utils.cpp_extension import BuildExtension, CUDAExtension, CppExtension
|
96 |
-
from torch.utils.cpp_extension import _find_cuda_home
|
97 |
|
98 |
-
|
99 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
setup(
|
101 |
name='featup',
|
102 |
version='0.1.2',
|
|
|
93 |
with torch.no_grad():
|
94 |
from setuptools import setup, find_packages
|
95 |
from torch.utils.cpp_extension import BuildExtension, CUDAExtension, CppExtension
|
|
|
96 |
|
97 |
+
cuda_available = torch.cuda.is_available()
|
98 |
+
cuda_version = torch.version.cuda
|
99 |
+
|
100 |
+
if cuda_available:
|
101 |
+
print(f"CUDA is available. CUDA Version: {cuda_version}")
|
102 |
+
print(f"CUDA Device Name: {torch.cuda.get_device_name(0)}")
|
103 |
+
else:
|
104 |
+
print("CUDA is not available.")
|
105 |
+
|
106 |
setup(
|
107 |
name='featup',
|
108 |
version='0.1.2',
|