1 Star 0 Fork 1

代号"死神"/OneButtonPrompt

forked from ComfyUI/OneButtonPrompt 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
upscaler.py 629 Bytes
一键复制 编辑 原始数据 按行查看 历史
from call_img2img import *
from call_extras import *
import os
# C:\automated_output\extras\
# C:\automated_output\img2img\
# C:\automated_output\upscale me\
# takes all images with prompt info in their PNG, from the upscale directory, and upscales them
if __name__ == "__main__":
directory = 'C:\\automated_output\\Upscale me\\'
for filename in os.listdir(directory):
f = os.path.join(directory, filename)
# checking if it is a file
if os.path.isfile(f):
img2img1 = call_img2img(f,0.25,1.5,256)
finalfile = call_extras(img2img1)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/sh_demo/OneButtonPrompt.git
git@gitee.com:sh_demo/OneButtonPrompt.git
sh_demo
OneButtonPrompt
OneButtonPrompt
main

搜索帮助