if write to Gscale input=> “{10-20}”

and

imageOptions
  guidanceScale = [input.Gscale]
  saveDescription = Guidance Scale is [input.Gscale]
  
  // or
  saveDescription = Guidance Scale is [settings.imageOptions.guidanceScale] 
  

it will assign a random Guidance Scale to the image every time, but in its saveDescription, it will write a different random number instead of the used before.

Is there any way to get the value of the guidanceScale of this image?

  • perchanceM
    link
    fedilink
    English
    arrow-up
    2
    ·
    6 days ago

    Ah good point! Sorry for the delay here, I’ve just added the ability to write imageOptions as a function - so you should now be able to just replace your original imageOptions with something like this:

    imageOptions() =>
      gs = input.Gscale.evaluateItem;
      return {
        guidanceScale: gs,
        saveDescription: `Guidance Scale is ${gs}`,
        // ... etc.
      };