Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,9 @@ import os
|
|
3 |
os.system("pip install git+https://github.com/facebookresearch/detectron2.git")
|
4 |
os.system("git clone https://github.com/Visual-AI/Mr.DETR.git MrDETR && cd MrDETR && rm -f requirements.txt && cd ..")
|
5 |
# os.system("cp multi_scale_deform_attn.py MrDETR/detrex/layers/ && cd MrDETR && pip install . & cd ..")
|
6 |
-
os.system("cd MrDETR && export CUDA_HOME=$(dirname $(dirname $(which nvcc))) && pip install . & cd ..")
|
|
|
|
|
7 |
import sys
|
8 |
sys.path.append("MrDETR/")
|
9 |
|
|
|
3 |
os.system("pip install git+https://github.com/facebookresearch/detectron2.git")
|
4 |
os.system("git clone https://github.com/Visual-AI/Mr.DETR.git MrDETR && cd MrDETR && rm -f requirements.txt && cd ..")
|
5 |
# os.system("cp multi_scale_deform_attn.py MrDETR/detrex/layers/ && cd MrDETR && pip install . & cd ..")
|
6 |
+
# os.system("cd MrDETR && export CUDA_HOME=$(dirname $(dirname $(which nvcc))) && pip install . & cd ..")
|
7 |
+
os.environ["CUDA_HOME"] = os.environ.get("CUDA_PATH")
|
8 |
+
os.system("cd MrDETR && pip install . & cd ..")
|
9 |
import sys
|
10 |
sys.path.append("MrDETR/")
|
11 |
|