1 Star 0 Fork 0

01jiangwei01/faceswap

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
update_deps.py 917 Bytes
一键复制 编辑 原始数据 按行查看 历史
torzdf 提交于 2022-07-28 23:53 . setup.py: implement logging
#!/usr/bin/env python3
""" Installs any required third party libs for faceswap.py
Checks for installed Conda / Pip packages and updates accordingly
"""
import logging
import os
import sys
from lib.logger import log_setup
from setup import Environment, Install
logger = logging.getLogger(__name__)
def main(is_gui=False) -> None:
""" Check for and update dependencies
Parameters
----------
is_gui: bool, optional
``True`` if being called by the GUI. Prevents the updater from outputting progress bars
which get scrambled in the GUI
"""
logger.info("Updating dependencies...")
update = Environment(updater=True)
Install(update, is_gui=is_gui)
logger.info("Dependencies updated")
if __name__ == "__main__":
logfile = os.path.join(os.path.dirname(os.path.realpath(sys.argv[0])), "faceswap_update.log")
log_setup("INFO", logfile, "setup")
main()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/gxkj_admin/faceswap.git
git@gitee.com:gxkj_admin/faceswap.git
gxkj_admin
faceswap
faceswap
master

搜索帮助