代码拉取完成,页面将自动刷新
A simple image viewer that can display multiple images with optional titles.
Example:
import comfy_script.ui as ui
def gen(x):
image, _ = LoadImage(r'D:\ComfyUI\output\test_00001_.png')
image = ImageBlur(image, x)
return PreviewImage(image).wait()
images = []
titles = []
for x in [1, 5, 10, 15, 20, 25, 30]:
title = f'radius {x}'
print(title)
images.append(gen(x))
titles.append(title)
ui.ipy.ImageViewer(images, titles=titles)
It is also possible to specify the number of rows/columns and height/width of each image. For example:
ui.ipy.ImageViewer(images, titles=titles).display(rows=2)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。