SDAtom-WebUi-us icon indicating copy to clipboard operation
SDAtom-WebUi-us copied to clipboard

Possible to change prompt *during* an i2i batch export?

Open linelenil opened this issue 2 years ago • 8 comments

Hey! Is it possible to use this script when, let's say, i have a batch of 10 images I want to process. Then I want to use "description1" for image 1 to 5, and "description2" for image 6 to 10?

At the moment all my test gives me the result that i'll have a first batch of 10 images with "description1", then another batch of 10 images with "description2"

Am I doing something wrong, or maybe this script wasnt made for this specific usage?

linelenil avatar Aug 10 '23 13:08 linelenil

You are supposed to be able to use different descriptions/prompts for each entry in the queue if you want. So if you want to switch description after 5 images then you should add it to the queue once set that one to 5 and then change the description and add it again with another 5.

However the script is not able to switch the actual image so when using i2i you have to manually load the image and then the same one will be used for the entire queue (batch is an exception since you use folders there instead of images).

Kryptortio avatar Aug 10 '23 14:08 Kryptortio

I'm pretty sure that's what i'm doing, but it doesnt work as intended image

Here for example, I added 4 prompt to the queue, each of them set to 1. So I'd expect the first prompt to execute on the first image of the batch, the second prompt on the second image, etc..

But instead, I'll have the script running throught the full batch with the first description, then running a second time with the second description -erasing the first batch of image-

Maybe there is an option i'm missing?

linelenil avatar Aug 10 '23 15:08 linelenil

Ahh, I was not sure exactly what you were doing. Then that makes sense, the script does not know about each image when you use batch just the folder names. So I think what you could do is simply to have separate folders for each row (both input and output).

Kryptortio avatar Aug 10 '23 15:08 Kryptortio

Ah damn, so there is no simple way to do what i wanted with your script? If I want 10 prompt changes, then i'll have to split my initial image sequence 10 times manually?

linelenil avatar Aug 10 '23 15:08 linelenil

Yeah, I don't think there is an easy way to change settings in the middle of a batch. You could make it easier in other way's though, like a script that creates the folders if you need one for each image https://stackoverflow.com/questions/37766429/copy-batch-file-into-newly-created-folder-of-same-name

Kryptortio avatar Aug 10 '23 15:08 Kryptortio

got it, thanks for your answers :) That's a functionality that i'll need a lot sadly. Abit like the "loopback wave" script, were you can queue those changes pretty easily .. Guess I'll have to make my way and investigate how to code that myself Any recommendations for coding tutorial within the SD API btw? I had a look couple of weeks ago but all tutos i've seen were abit confusing :p

linelenil avatar Aug 10 '23 15:08 linelenil

This script does not use the api, it just uses the GUI. This one probably does though, it also works differently than mine so you could try it out.

Kryptortio avatar Aug 10 '23 16:08 Kryptortio

Ah nice! Thanks so much, I'll have a look :)

linelenil avatar Aug 10 '23 16:08 linelenil