代码拉取完成,页面将自动刷新
#!/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()
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。