DBaluchi

joined 6 months ago
3
submitted 1 week ago* (last edited 1 week ago) by DBaluchi@lemmy.world to c/perchance@lemmy.world
 

OK, so I've been having a great time playing with the image generator, and am struggling with a process to permanently add variables.

I can build a bunch of variables in Scratchpad using lists and curly brackets, and then use them in my prompts to create some variation. A simple example is to use a list of shirt colors, call a variable like [HUE1] and change my subject's outfit. That works great. I've gotten dynamic odds to work, and been able to make some dependent sub-choices (i.e., if HUE1 is white, then HUE2 must not be white). This is all great, but it is all in scratchpad.

I'm hung up on how to move those same lists and variables into my generator itself (out of the scratchpad), then call them with a variable in the prompt. In the example above, in Scratchpad I might have

HUE1 = {CHARCOAL GREY|WHITE|CRIMSON|EMERALD}

and then use [HUE1] in the prompt to get a bunch of similar images with different color shirts.

I'm struggling to understand where (and with what syntax) I can move all of that into the code of the generator itself, and still either call [HUE1] when writing my prompt or use a dropdown list or something to select a value and assign it to the variable.

Can anyone point me in the right direction?

[โ€“] DBaluchi@lemmy.world 2 points 2 weeks ago

I appreciate your answer, it appears I had some other background syntax error. Decided to rearrange my inputs just a moment ago and somehow fixxored it accimagically.

 

tl;dr - I want scratchpad variables input by users to work across multiple input boxes, can I do that?

Hey all, I was hoping someone might have already solved the puzzle I am working on. I am working on my T2I generator, and would like to split the positive prompt into multiple inputs. I can do this and make it work, but variables used in the Sratchpad will only work in the primary "description" input field. I assume this is hard-coded into the t2i plugin, but cant find a reference somewhere to how the scratchpad is coded. Any help is appreciated!

[โ€“] DBaluchi@lemmy.world 1 points 4 months ago (1 children)

Youre not crazy, I had this exact issue. I dont have a solution, I mostly stopped using galleries. If I could move images between them I might use them, but I always end up with the wrong file in the wrong gallery and get annoyed anyway so rarely use them. I tried to sort it, had no luck... I tried the same things as you, multiple browsers... never solved it. I found that while the gallery would be empty according to perchance, if I bookmarked the actual image file before they disappeared, I could still access the image - sometimes. Feels like a browser config issue, but I never went back to trying to figure it out.