[~] Refactor
This commit is contained in:
parent
09b500a424
commit
1a7f21540b
@ -1,19 +1,19 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
if os.system(r''' pip show alphapose''') != 0:
|
if os.system(r''' pip show alphapose''') != 0:
|
||||||
t1 = r'''
|
t1 = r'''
|
||||||
rm -fr /kaggle/working/AlphaPose
|
rm -fr /kaggle/working/AlphaPose
|
||||||
pip install pyyaml==5.2
|
pip install pyyaml==5.2
|
||||||
pip install scipy==1.1.0
|
pip install scipy==1.1.0
|
||||||
git clone https://github.com/WildflowerSchools/AlphaPose
|
git clone https://github.com/WildflowerSchools/AlphaPose
|
||||||
python -m pip install cython gdown
|
python -m pip install cython gdown
|
||||||
apt-get install libyaml-dev
|
apt-get install libyaml-dev
|
||||||
cd /kaggle/working/AlphaPose && python setup.py build develop
|
cd /kaggle/working/AlphaPose && python setup.py build develop
|
||||||
'''
|
'''
|
||||||
|
|
||||||
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
|
||||||
@ -41,12 +41,12 @@ for o1, o2 in [
|
|||||||
),
|
),
|
||||||
]:
|
]:
|
||||||
os.makedirs(os.path.split(o2)[0], exist_ok=True)
|
os.makedirs(os.path.split(o2)[0], exist_ok=True)
|
||||||
if not os.path.exists(o2):
|
if not os.path.exists(o2):
|
||||||
gdown.download(
|
gdown.download(
|
||||||
'https://drive.google.com/u/0/uc?export=download&confirm=f_Ix&id=%s' % o1,
|
'https://drive.google.com/u/0/uc?export=download&confirm=f_Ix&id=%s' % o1,
|
||||||
o2,
|
o2,
|
||||||
quiet=False
|
quiet=False
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
assert os.system(r'''
|
assert os.system(r'''
|
||||||
|
Loading…
Reference in New Issue
Block a user