[~] Refactor
This commit is contained in:
parent
44427e91ca
commit
b6697e71b1
@ -1,20 +1,19 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
t1 = r'''
|
if os.system(r''' pip show alphapose''') != 0:
|
||||||
rm -fr /kaggle/working/AlphaPose
|
t1 = r'''
|
||||||
pip install pyyaml==5.2
|
rm -fr /kaggle/working/AlphaPose
|
||||||
pip install scipy==1.1.0
|
pip install pyyaml==5.2
|
||||||
git clone https://github.com/WildflowerSchools/AlphaPose
|
pip install scipy==1.1.0
|
||||||
python -m pip install cython gdown
|
git clone https://github.com/WildflowerSchools/AlphaPose
|
||||||
apt-get install libyaml-dev
|
python -m pip install cython gdown
|
||||||
cd /kaggle/working/AlphaPose && python setup.py build develop
|
apt-get install libyaml-dev
|
||||||
mkdir -p /kaggle/working/test-input && mkdir -p /kaggle/working/test-output && cp examples/demo/*.jpg /kaggle/working/test-input
|
cd /kaggle/working/AlphaPose && python setup.py build develop
|
||||||
cd /kaggle/working/AlphaPose && python3 scripts/demo_inference.py --cfg configs/coco/resnet/256x192_res50_lr1e-3_1x.yaml --checkpoint pretrained_models/fast_res50_256x192.pth --indir /kaggle/working/test-input --save_img
|
'''
|
||||||
'''
|
|
||||||
|
|
||||||
for o in t1.splitlines():
|
for o in t1.splitlines():
|
||||||
print(o)
|
print(o)
|
||||||
assert os.system(o) == 0
|
assert os.system(o) == 0
|
||||||
|
|
||||||
import os
|
import os
|
||||||
#!git clone https://github.com/MVIG-SJTU/AlphaPose.git
|
#!git clone https://github.com/MVIG-SJTU/AlphaPose.git
|
||||||
@ -47,3 +46,9 @@ for o1, o2 in [
|
|||||||
o2,
|
o2,
|
||||||
quiet=False
|
quiet=False
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
assert os.system(r'''
|
||||||
|
mkdir -p /kaggle/working/test-input && mkdir -p /kaggle/working/test-output && cp /kaggle/working/AlphaPose/examples/demo/*.jpg /kaggle/working/test-input
|
||||||
|
cd /kaggle/working/AlphaPose && python3 scripts/demo_inference.py --cfg configs/coco/resnet/256x192_res50_lr1e-3_1x.yaml --checkpoint pretrained_models/fast_res50_256x192.pth --indir /kaggle/working/test-input --save_img
|
||||||
|
''') == 0
|
||||||
|
Loading…
Reference in New Issue
Block a user