1 Star 0 Fork 0

muwanqing123 / faceswap

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
update_deps.py 738 Bytes
一键复制 编辑 原始数据 按行查看 历史
torzdf 提交于 2019-07-03 11:07 . Fixups
#!/usr/bin/env python3
""" Installs any required third party libs for faceswap.py
Checks for installed Conda / Pip packages and updates accordingly
"""
from setup import Environment, Install, Output
_LOGGER = None
def output(msg):
""" Output to print or logger """
if _LOGGER is not None:
_LOGGER.info(msg)
else:
Output().info(msg)
def main(logger=None):
""" Check for and update dependencies """
if logger is not None:
global _LOGGER # pylint:disable=global-statement
_LOGGER = logger
output("Updating dependencies...")
update = Environment(logger=logger, updater=True)
Install(update)
output("Dependencies updated")
if __name__ == "__main__":
main()
Python
1
https://gitee.com/mitbook/faceswap.git
git@gitee.com:mitbook/faceswap.git
mitbook
faceswap
faceswap
master

搜索帮助