Spaces:
Runtime error
Runtime error
launch app in the docker
Browse files- Dockerfile +3 -1
- app.py +0 -10
Dockerfile
CHANGED
@@ -46,4 +46,6 @@ ARG IABN_FORCE_CUDA="1"
|
|
46 |
ARG FORCE_CUDA="1"
|
47 |
RUN pip3 install --no-cache-dir \
|
48 |
inplace_abn \
|
49 |
-
git+https://github.com/mit-han-lab/[email protected]
|
|
|
|
|
|
46 |
ARG FORCE_CUDA="1"
|
47 |
RUN pip3 install --no-cache-dir \
|
48 |
inplace_abn \
|
49 |
+
git+https://github.com/mit-han-lab/[email protected]
|
50 |
+
|
51 |
+
CMD ["python3", "app.py"]
|
app.py
CHANGED
@@ -11,16 +11,6 @@ sys.path.append(code_dir)
|
|
11 |
elev_est_dir = os.path.abspath(os.path.join(code_dir, "elevation_estimate"))
|
12 |
sys.path.append(elev_est_dir)
|
13 |
|
14 |
-
# if not is_local_run:
|
15 |
-
# export TORCH_CUDA_ARCH_LIST="7.0;7.2;8.0;8.6"
|
16 |
-
# export IABN_FORCE_CUDA=1
|
17 |
-
# os.environ["TORCH_CUDA_ARCH_LIST"] = "8.0;8.6"
|
18 |
-
# os.environ["IABN_FORCE_CUDA"] = "1"
|
19 |
-
# os.environ["FORCE_CUDA"] = "1"
|
20 |
-
# subprocess.run(['pip', 'install', 'inplace_abn'])
|
21 |
-
# FORCE_CUDA=1 pip install --no-cache-dir git+https://github.com/mit-han-lab/[email protected]
|
22 |
-
# subprocess.run(['pip', 'install', '--no-cache-dir', 'git+https://github.com/mit-han-lab/[email protected]'])
|
23 |
-
|
24 |
import shutil
|
25 |
import torch
|
26 |
import fire
|
|
|
11 |
elev_est_dir = os.path.abspath(os.path.join(code_dir, "elevation_estimate"))
|
12 |
sys.path.append(elev_est_dir)
|
13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
import shutil
|
15 |
import torch
|
16 |
import fire
|