Commit Graph

6 Commits

Author SHA1 Message Date
Smirking Kitsune
b775eb56cf Bug fix for a Bug Fix test_my_prompt_custom_script.py
Changed the checks for `state.skippped` due to a bad interaction with `excluded_keywords` . It was possible for a user to cause a `job_no` calculation error if the `skipped` command was called when an `excluded_keyword` job should be skipped. This fixes it so that the user cannot cause a calculation error using the `skipped` command by incrementing the `excluded_jobs` count when a excluded keyword is present.
2024-05-22 00:09:39 -07:00
Smirking Kitsune
92170783c5 Bug Fix test_my_prompt_custom_script.py
Discovered a `job_no` calculation error when `excluded_keyword` was used. I think this should be resolved by keeping track of the number of times a job was skipped due to an excluded keyword and subtracting the number from the `job_no` update calculation. I think this should work because jobs that are skipped due to excluded keywords should not be counted. This bug would sometimes cause the number of jobs `job_no` to be larger than the total jobs `job_count`.
2024-05-21 23:25:16 -07:00
Smirking Kitsune
7298733ec4 Update test_my_prompt_custom_script.py
Removed a comment that questioned the functionality of a new code logic, since it was already tested and determined that it worked.
2024-05-21 17:15:31 -07:00
Smirking Kitsune
88bcbb8ae7 Filtered Prompts and Better A1111 State Intigration Update
Commit includes a feature to filter prompts from the `prompt_array` and better integration with A1111 shared state.

Filtered Prompts:
-New UI textbox that will allow users to specifically designate keywords that should not be tested.
-Textbox will use the separator for string interpretation. 
-Designed to work with the shared state `job_count` system.

Improved Shared State Integration:
-Script will communicate with the state job system, allowing loading bars to operate correctly and log steps to be calculated for overall jobs.
-Script will now obey the skip command, allowing users to skip a `job_no` (every image rendered is a `job_no`, while the overall jobs is `job_count`)
-Script will now obey the `interrupted` and `stopping_generation` commands. Allowing users to prematurely terminate the job loop.
2024-05-21 16:51:28 -07:00
triviador
f0e7499b9e Update test_my_prompt_custom_script.py
Fix for "No module named 'fonts'"
Change max in 'Skip X first words"
2023-08-21 14:27:23 +03:00
Xyem
a0442cb4c1 Fix script location for use as an extension 2023-03-08 19:49:31 +00:00