#Batches have the same seed via web api

10 messages · Page 1 of 1 (latest)

void geyser
#

I'm having a problem with seeds in batches via the web api that I can't figure out just figured out, skip to the end for possible bug(?)

I assumed it was my code but multiple images from the same batch are reporting the same seed via api response and png metadata 🤯

I can't reproduce it in the web ui, and watching the websocket traffic my requests and responses look the same except for the seed being the same in mine but not in webui...

Does anyone have a clue why this could happen ?

#

Heres some logs from my app showing the raw request and what I get back for example..

ausbitbank:anon goes to space --number 2
emit generateImage {
  prompt: 'anon goes to space',
  iterations: 2,
  steps: 50,
  cfg_scale: 7.5,
  threshold: 0,
  perlin: 0,
  sampler_name: 'k_lms',
  width: 512,
  height: 512,
  seed: 2977597109,
  progress_images: false,
  variation_amount: 0,
  with_variations: [],
  strength: 0.75,
  fit: true
} false false

received generationResult {
  url: 'outputs/001723.2977597109.png',
  mtime: 1666452566.1893635,
  metadata: {
    model: 'stable diffusion',
    model_id: 'stable-diffusion-1.5',
    model_hash: 'cc6cb27103417325ff94f52b7a5d2dde45a7515b25c255d8e396c90014281516',
    app_id: 'lstein/stable-diffusion',
    app_version: 'v1.15',
    image: {
      prompt: [Array],
      steps: 50,
      cfg_scale: 7.5,
      threshold: 0,
      perlin: 0,
      width: 512,
      height: 512,
      seed: 2977597109,
      postprocessing: null,
      sampler: 'k_lms',
      variations: [],
      type: 'txt2img'
    }
  }
}
received generationResult {
  url: 'outputs/001724.2977597109.png',
  mtime: 1666452585.6753633,
  metadata: {
    model: 'stable diffusion',
    model_id: 'stable-diffusion-1.5',
    model_hash: 'cc6cb27103417325ff94f52b7a5d2dde45a7515b25c255d8e396c90014281516',
    app_id: 'lstein/stable-diffusion',
    app_version: 'v1.15',
    image: {
      prompt: [Array],
      steps: 50,
      cfg_scale: 7.5,
      threshold: 0,
      perlin: 0,
      width: 512,
      height: 512,
      seed: 2977597109,
      postprocessing: null,
      sampler: 'k_lms',
      variations: [],
      type: 'txt2img'
    }
  }
}
#

🤞 hoping someone sees a problem cos I dont understand

#

using latest development branch

#

I figured it out, maybe considered a bug even though its not an issue in the frontend atm ?

#

I was requesting with_variation:[]

#

removing that from the request (unless specifically needed) fixed the issue, now seeds vary

#

sorry for the noise, keep up the good work 🫡

ripe herald
#

I think you are sending unexpected input 😛 maybe we should fix the handling. Please submit a GH issue, thanks for investigating