SwanLab icon indicating copy to clipboard operation
SwanLab copied to clipboard

建议支持文字加图像的表格形式

Open KashiwaByte opened this issue 11 months ago • 1 comments

🤩 Features description [Please make everyone to understand it]

支持一种新的表格形式,表格的每一格可以根据输入的内容自适配保存为文字或者图片

👍 What problem does this feature solve

解决文生图的记录问题,前面是提示词后面是对应生成的图像

👾 What does the proposed API look like

prompt = [
    "a photograph of an astronaut riding a horse",
    "a photograph of a dragon"
]
images = pipeline(
    prompt,
    num_images_per_prompt=2,
    generator=generator,
)
SD_table=swanlab.table(table_type={“prompt”:prompt,"photo":photo.png})
SD_table.log(prompt,images)

🚑 Any additional [like screenshots]

image

KashiwaByte avatar Mar 19 '24 13:03 KashiwaByte

Must support

Zeyi-Lin avatar Mar 19 '24 13:03 Zeyi-Lin