1 Star 0 Fork 0

sd-comfy/ComfyUI-BiRefNet

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
install.py 1.25 KB
一键复制 编辑 原始数据 按行查看 历史
viperyl 提交于 1年前 . init this repo
# import sys
# import locale
# import subprocess
# import threading
# # copied from https://github.com/ltdrdata/ComfyUI-Impact-Pack/blob/Main/install.py#L37
# def handle_stream(stream, is_stdout):
# stream.reconfigure(encoding=locale.getpreferredencoding(), errors='replace')
# for msg in stream:
# if is_stdout:
# print(msg, end="", file=sys.stdout)
# else:
# print(msg, end="", file=sys.stderr)
# # copied from https://github.com/ltdrdata/ComfyUI-Impact-Pack/blob/Main/install.py#L37
# def process_wrap(cmd_str, cwd=None, handler=None):
# print(f"[Impact Pack] EXECUTE: {cmd_str} in '{cwd}'")
# process = subprocess.Popen(cmd_str, cwd=cwd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True, bufsize=1)
# if handler is None:
# handler = handle_stream
# stdout_thread = threading.Thread(target=handler, args=(process.stdout, True))
# stderr_thread = threading.Thread(target=handler, args=(process.stderr, False))
# stdout_thread.start()
# stderr_thread.start()
# stdout_thread.join()
# stderr_thread.join()
# return process.wait()
# pip_install = [sys.executable, "-s", "-m", "pip", "install"]
# process_wrap(pip_install + ['-r', 'requirements.txt'], cwd=__file__)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sd-comfy/ComfyUI-BiRefNet.git
git@gitee.com:sd-comfy/ComfyUI-BiRefNet.git
sd-comfy
ComfyUI-BiRefNet
ComfyUI-BiRefNet
main

搜索帮助