Spaces:
Running
on
T4
Running
on
T4
Reverted build_ops.sh to the one from commit 0163de186a539bd69c6a45927face2578c0ff568
Browse files- build_ops.sh +5 -11
build_ops.sh
CHANGED
|
@@ -8,7 +8,7 @@
|
|
| 8 |
#wheel convert ./MultiScaleDeformableAttention-1.0-py3.9-linux-x86_64.egg
|
| 9 |
#./switch_cuda.sh 12.1
|
| 10 |
export CC=/usr/bin/gcc-11 # this ensures that gcc 11 is being used for compilation
|
| 11 |
-
export CUDA_HOME=/usr/local/cuda
|
| 12 |
#wget https://developer.download.nvidia.com/compute/cuda/12.1.0/local_installers/cuda_12.1.0_530.30.02_linux.run
|
| 13 |
#yes | ./cuda_12.1.0_530.30.02_linux.run
|
| 14 |
#pip install ./models/GroundingDINO/ops
|
|
@@ -16,19 +16,13 @@ export CUDA_HOME=/usr/local/cuda
|
|
| 16 |
#echo $LD_LIBRARY_PATH
|
| 17 |
#echo $PATH
|
| 18 |
#echo $CUDA_HOME
|
| 19 |
-
#cd ./models/GroundingDINO/ops
|
| 20 |
-
#python ./setup.py build install
|
| 21 |
-
#python3 setup.py build
|
| 22 |
cd ./models/GroundingDINO/ops
|
| 23 |
-
#
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
#mv ./ops/* .
|
| 27 |
-
#rm -r ops
|
| 28 |
-
pip3 install MultiScaleDeformableAttention-1.0-cp310-cp310-linux_x86_64.whl
|
| 29 |
#wheel convert ./dist/MultiScaleDeformableAttention-1.0-py3.10-linux-x86_64.egg
|
| 30 |
#mv MultiScaleDeformableAttention-1.0-py310-cp310-linux_x86_64.whl MultiScaleDeformableAttention-1.0-cp310-cp310-linux_x86_64.whl
|
| 31 |
#pip install MultiScaleDeformableAttention-1.0-cp310-cp310-linux_x86_64.whl
|
| 32 |
-
|
| 33 |
cd ../../../
|
| 34 |
#cp ./models/GroundingDINO/ops/build/lib.linux-x86_64-cpython-310/MultiScaleDeformableAttention.cpython-310-x86_64-linux-gnu.so .
|
|
|
|
| 8 |
#wheel convert ./MultiScaleDeformableAttention-1.0-py3.9-linux-x86_64.egg
|
| 9 |
#./switch_cuda.sh 12.1
|
| 10 |
export CC=/usr/bin/gcc-11 # this ensures that gcc 11 is being used for compilation
|
| 11 |
+
#export CUDA_HOME=/usr/local/cuda
|
| 12 |
#wget https://developer.download.nvidia.com/compute/cuda/12.1.0/local_installers/cuda_12.1.0_530.30.02_linux.run
|
| 13 |
#yes | ./cuda_12.1.0_530.30.02_linux.run
|
| 14 |
#pip install ./models/GroundingDINO/ops
|
|
|
|
| 16 |
#echo $LD_LIBRARY_PATH
|
| 17 |
#echo $PATH
|
| 18 |
#echo $CUDA_HOME
|
|
|
|
|
|
|
|
|
|
| 19 |
cd ./models/GroundingDINO/ops
|
| 20 |
+
#python ./setup.py build install
|
| 21 |
+
python3 setup.py build
|
| 22 |
+
pip3 install .
|
|
|
|
|
|
|
|
|
|
| 23 |
#wheel convert ./dist/MultiScaleDeformableAttention-1.0-py3.10-linux-x86_64.egg
|
| 24 |
#mv MultiScaleDeformableAttention-1.0-py310-cp310-linux_x86_64.whl MultiScaleDeformableAttention-1.0-cp310-cp310-linux_x86_64.whl
|
| 25 |
#pip install MultiScaleDeformableAttention-1.0-cp310-cp310-linux_x86_64.whl
|
| 26 |
+
python ./test.py # should result in 6 lines of * True
|
| 27 |
cd ../../../
|
| 28 |
#cp ./models/GroundingDINO/ops/build/lib.linux-x86_64-cpython-310/MultiScaleDeformableAttention.cpython-310-x86_64-linux-gnu.so .
|