forked from open-mmlab/mmaction
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile.sh
40 lines (32 loc) · 712 Bytes
/
compile.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
PYTHON=${PYTHON:-"python"}
echo "Building package resample2d"
cd ./mmaction/ops/resample2d_package
if [ -d "build" ]; then
rm -r build
fi
$PYTHON setup.py install --user
echo "Building package trajectory_conv..."
cd ../trajectory_conv_package
if [ -d "build" ]; then
rm -r build
fi
$PYTHON setup.py install --user
echo "Building roi align op..."
cd ../roi_align
if [ -d "build" ]; then
rm -r build
fi
$PYTHON setup.py build_ext --inplace
echo "Building roi pool op..."
cd ../roi_pool
if [ -d "build" ]; then
rm -r build
fi
$PYTHON setup.py build_ext --inplace
echo "Building nms op..."
cd ../nms
if [ -d "build" ]; then
rm -r build
fi
$PYTHON setup.py build_ext --inplace