Spaces:
Sleeping
Sleeping
File size: 648 Bytes
40ac571 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import os
def create_directory(path):
if not os.path.exists(path):
os.makedirs(path)
def download():
emoji_path = './ckpt_models/'
create_directory(emoji_path)
os.system(f'git clone https://code.openxlab.org.cn/houshaowei/FollowYourEmoji.git {emoji_path}')
os.system(f'cd {emoji_path} && git lfs pull')
base_path = './ckpt_models/base'
create_directory(base_path)
os.system(f'git clone https://code.openxlab.org.cn/houshaowei/FollowYourEmoji_BaseModelPack.git {base_path}')
os.system(f'cd {base_path} && git lfs pull')
if __name__ == "__main__":
download()
|