Skip to content

[Bug] No generation info in image metadata for sdapi #1348

Description

@choyuansu

Git commit

d6dd6d7b555c233bb9bc9f20b4751eb8c9269743

Operating System & Version

Ubuntu 24.04

GGML backends

CUDA

Command-line arguments used

sd-server -m /path/to/model.safetensors --diffusion-fa

Steps to reproduce

Generate an image using /sdapi/v1/txt2img and save.

import requests
from PIL import Image
from io import BytesIO
import base64
import subprocess

r = requests.post(
    "http://localhost:1234/sdapi/v1/txt2img",
    json={"prompt": "cat"},
)

print(Image.open(BytesIO(base64.b64decode(r.json()["images"][0]))).info)

subprocess.run(
    [
        "sd-cli",
        "-m",
        "/path/to/model.safetensors",
        "--diffusion-fa",
    ]
)

print(Image.open("output.png").info)

What you expected to happen

Generation parameters are saved in image metadata.

What actually happened

No metadata found.

Logs / error messages / stack trace

No response

Additional context / environment details

sd-cli works.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions