Spaces:
Runtime error
Runtime error
Commit
·
7388ff5
1
Parent(s):
89befaf
update
Browse files
app.py
CHANGED
|
@@ -3,6 +3,10 @@ import gradio as gr
|
|
| 3 |
import os
|
| 4 |
import subprocess
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
def install_cuda_toolkit():
|
| 7 |
# CUDA_TOOLKIT_URL = "https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run"
|
| 8 |
CUDA_TOOLKIT_URL = "https://developer.download.nvidia.com/compute/cuda/12.2.0/local_installers/cuda_12.2.0_535.54.03_linux.run"
|
|
@@ -25,7 +29,6 @@ install_cuda_toolkit()
|
|
| 25 |
|
| 26 |
os.system('pip install ./thirdparty/DROID-SLAM')
|
| 27 |
os.system('pip install ./thirdparty/DROID-SLAM/thirdparty/lietorch')
|
| 28 |
-
import torch
|
| 29 |
import numpy as np
|
| 30 |
from easydict import EasyDict
|
| 31 |
from scripts.scripts_test_video.detect_track_video import detect_track_video
|
|
|
|
| 3 |
import os
|
| 4 |
import subprocess
|
| 5 |
|
| 6 |
+
import torch
|
| 7 |
+
print(torch.__version__)
|
| 8 |
+
print(torch.version.cuda)
|
| 9 |
+
|
| 10 |
def install_cuda_toolkit():
|
| 11 |
# CUDA_TOOLKIT_URL = "https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run"
|
| 12 |
CUDA_TOOLKIT_URL = "https://developer.download.nvidia.com/compute/cuda/12.2.0/local_installers/cuda_12.2.0_535.54.03_linux.run"
|
|
|
|
| 29 |
|
| 30 |
os.system('pip install ./thirdparty/DROID-SLAM')
|
| 31 |
os.system('pip install ./thirdparty/DROID-SLAM/thirdparty/lietorch')
|
|
|
|
| 32 |
import numpy as np
|
| 33 |
from easydict import EasyDict
|
| 34 |
from scripts.scripts_test_video.detect_track_video import detect_track_video
|