SwanHubX / SwanLab

⚡️SwanLab: your ML experiment notebook. 你的AI实验笔记本,日志记录与可视化AI训练全流程。
https://swanlab.cn?utm_source=github_description-hompage
Apache License 2.0
492 stars 48 forks source link

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

Open KashiwaByte opened 7 months ago

KashiwaByte commented 7 months ago

🤩 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

Zeyi-Lin commented 7 months ago

Must support