mirror of
https://github.com/Extraltodeus/test_my_prompt.git
synced 2026-11-05 00:17:26 +00:00
[PR #29] [MERGED] Filtered Prompts and Better A1111 State Intigration Update #31
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Extraltodeus/test_my_prompt#31
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Extraltodeus/test_my_prompt/pull/29
Author: @SmirkingKitsune
Created: 5/22/2024
Status: ✅ Merged
Merged: 6/3/2024
Merged by: @Extraltodeus
Base:
main← Head:patch-1📝 Commits (4)
88bcbb8Filtered Prompts and Better A1111 State Intigration Update7298733Update test_my_prompt_custom_script.py9217078Bug Fix test_my_prompt_custom_script.pyb775eb5Bug fix for a Bug Fix test_my_prompt_custom_script.py📊 Changes
1 file changed (+43 additions, -4 deletions)
View changed files
📝
scripts/test_my_prompt_custom_script.py(+43 -4)📄 Description
Commit includes a feature to filter prompts from the
prompt_arrayand better integration with A1111 shared state.Filtered Prompts:
prompt_arrayarray will no longer store empty entries.job_countsystem.Improved Shared State Integration:
job_no(In A1111 every image rendered is ajob_no, while the overall jobs isjob_count)interruptedandstopping_generationcommands. Allowing users to prematurely terminate the job loop.Special notes:On line 66,filtered_prompt_arraycan be replaced withprompt_array, butstate.job_countwill needs to be decremented at the excluded keyword check on line 87. If we useprompt_arraythere will be an overestimation of steps at the beginning of a run ifexcluded_keywordsis used by the user, but using the aforementioned decrement will fix the overestimation as the excluded keywords are excluded.I got around this problem by counting the number of runs in theprompt_arrayand excluded theexcluded_keywordfrom that count. I think it looks nicer if the script did not need to correct the job state, so I created thefiltered_prompt_arrayto fix this, butfiltered_prompt_arrayis not used anywhere else.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.