adieyal / sd-dynamic-prompts

A custom script for AUTOMATIC1111/stable-diffusion-webui to implement a tiny template language for random prompt generation
MIT License
1.96k stars 253 forks source link

bug: min range not work #794

Open bluelovers opened 1 week ago

bluelovers commented 1 week ago
{4-$$__lazy-wildcards/subject/art-type/sketch-pen-base/style__}

should always get >= 4, but it only >= 1

lazy-wildcards:
  subject:
    art-type:
      sketch-pen-landscape:
        prompts:
          - >-
            __lazy-wildcards/subject/art-type/sketch-pen-landscape/main__,
            __lazy-wildcards/subject/art-type/sketch-pen-base/prompts__
        main:
          - (XCYP) Landscape Sketch, (Sketch Landscape:1.4)
      sketch-pen-portrait:
        prompts:
          - >-
            __lazy-wildcards/subject/art-type/sketch-pen-portrait/main__,
            __lazy-wildcards/subject/art-type/sketch-pen-base/prompts__
        main:
          - (Sketch portrait, portrait)
      sketch-pen-base:
        prompts:
          - >-
            __lazy-wildcards/subject/art-type/sketch-pen-base/main__,
            {__lazy-wildcards/subject/art-type/sketch-pen-base/style-color__,|}
            ({3-$$__lazy-wildcards/subject/art-type/sketch-pen-base/style__})
        main:
          - (XCYP) Sketch, (Sketch:1.4), (Pen Drawing:2)
        style-color:
          - >-
            (Black and White Pen Drawing:2)
            {, (Strong Black and White Contrast)|}
        style:
          - High Summary
          - Minimalist Style
          - Thick Lines
          - Smooth Lines
          - Clean
          - Perfect Composition
          - High Contrast
          - Strong Contrast
          - pencil sketch
          - charcoal sketch
bluelovers commented 1 week ago

https://github.com/bluelovers/sd-wildcards-utils/blob/main/wildcards/lazy-wildcards.yaml