Replies: 11 comments 19 replies
-
To be clear, do you want to store the template (containing DPs constructs like wildcards and combinations,) or the final resolved prompt? In the latter case, Auto1111 already stores it in the png metadata |
Beta Was this translation helpful? Give feedback.
-
@masslevel I was hoping you could test a new version for me. It's another big backend change and I don't want to release it without a few users testing it. You shouldn't noticed any changes on the frontend but the update should make it easier to add and test features in future. to test:
To get back to the current version Let me know if it breaks anything or if something looks off. Much appreciated. |
Beta Was this translation helpful? Give feedback.
-
That's great news - let me know if you encounter any issues with v2, I would like to release it by the weekend if there aren't any serious bugs. Don't update using the extensions tab yet as you will probably be downgraded to v1.5. |
Beta Was this translation helpful? Give feedback.
-
Regarding your initial request for saving the raw prompt template. I've just push a version (v2.2.0) which gives you the option to write the prompt directly into the image metadata, viewable using the PNG Info tab. It's disabled by default but you can find the checkbox under advanced settings. Let me know if that works for you. |
Beta Was this translation helpful? Give feedback.
-
Have you had a look at the write prompts to file checkbox? I think it does what you're asking for. |
Beta Was this translation helpful? Give feedback.
-
I haven't had a chance yet. I'll give it a read this weekend.
…On Thu, 19 Jan 2023, 06:38 masslevel, ***@***.***> wrote:
@adieyal <https://github.com/adieyal> I don't know if you have seen my
message above. If you want let me know if I should add any additional
information or if you think the approach doesn't make sense.
—
Reply to this email directly, view it on GitHub
<#149 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADGXMRR2677A5LMZRWHXY3WTDAM3ANCNFSM6AAAAAATPI5NXI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Have you tried the branch mentioned in #178?
what I do there is take the name and path of the first image generated, with a csv extension. Does that address the "Enabling Write prompts to file" part of your message? |
Beta Was this translation helpful? Give feedback.
-
I pushed a fix for "Enabling Save template to metadata" - see #177 |
Beta Was this translation helpful? Give feedback.
-
With regards to the .txt file - how do you get auto1111 to read parameters from it? I see the checkbox in settings to save it but I'm not sure how it gets read later. I've fixed the ability to copy and paste the contents of that file into the prompt text box in case that's how you use it |
Beta Was this translation helpful? Give feedback.
-
So this works already really great, @adieyal ! I haven't checked the png chunk metadata fix, but the csv file is now placed and named correctly right beside the other files using the prompts-filename branch. Now you can easily copy'n'paste the Dynamic Prompts construct that was used for the image. That is already a huge workflow optimization for me and I can stop using secondary workflows. Wonderful! (see update below: #149 (comment)) As an optional ideaThe ultimate workflow optimizer for this, and you would be absolutely right that this could really well be out of the scope of Dynamic Prompts, would be an additional .txt file that is an exact copy of the a111 info file but replaces the prompt and Maybe you have already thought about it and concluded that it doesn't make sense or is way too convoluted to implement. With this solution you could use the standard text parser (blue icon in the web-ui) but it would include the Dynamic Prompt construct instead of the populated prompt. The advantage would be that all the other settings would also be ready to go when using this file. Also since new parameters are added to the infofile every so often by a1111, if you only replace the beginning of the file (the positive prompt) and the I would definitely keep the csv option as well, since it's much better to process this further than a non-standard data structured text file. And you have both prompts available in one file (unprocessed and processed). Example0000-my-image.txt (default a1111 info file)
0000-my-image-dp.txt (Dynamic Prompts info file)
I hope this makes sense. |
Beta Was this translation helpful? Give feedback.
-
Ok, I did run into some strange behavior with the I first thought maybe it does it only for one batch. Which could make sense, but I would prefer it to have with every image since they might get sorted and copied to different locations. So one csv per image would be ideal. I'm trying to reproduce the issue now. It's not generating any .csv's currently and I have not updated or switched the branch. |
Beta Was this translation helpful? Give feedback.
-
Hi, all!
I wanted to ask if anyone has got a good workflow (beside having a general txt file) how to manage and save their raw prompt builds with all the Dynamic Prompt variables?
I apologize if something like this does already exist and I have missed it!
Current workflow
Maybe it's just my workflow, but I have been repeating the same steps over and over to reconstruct Dynamic Prompt builds with their variables since I work on many different projects at the same time or on and off when doing prompt engineering - sometimes creating hundreds or thousands of images per day.
I have a general or project based txt file to save the raw dynamic prompt builds, but sometimes you do small prompt changes on the fly like moving variables around, adding new ones, restructuring the prompt etc. and you run a small batch with that.
It's cumbersome and hard to keep track of all the different versions and variations.
Idea
In my mind it would make sense having the raw unprocessed Dynamic Prompt with all variables also saved somewhere - ideally as a companion file like the text information files from Automatic1111.
For example
A raw Dynamic Prompt companion file could use the [Images filename pattern] set in the Automatic1111 webui settings and it would create a file for every image with a suffix like "
filename-pattern
-dp.txt" that includes the full unprocessed dynamic prompt with variables.I'm aware that this would mean that all companion files using the same dynamic prompt would contain the same information, but at least you would have access to the image's full unprocessed prompt build and it's also attached to the images that used it.
Since I don't know if it's possible to add this to the already existing a1111 information files, I thought another companion file could be a workaround.
This might be an absolute edge case to many or maybe it doesn't make sense, but I always try to optimize my workflows and reduce DRY (don't repeat yourself).
This may very well be out of scope of Dynamic Prompts, but I wanted to ask if anyone has a better workflow how to store and manage raw dynamic prompts variations with their images and projects.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions