mirror of
https://github.com/Physton/sd-webui-prompt-all-in-one.git
synced 2026-12-03 18:42:25 +07:00
[PR #301] [MERGED] Add cond_stage_model to get_prompt_lengths argument only when using f… #352
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
Physton/sd-webui-prompt-all-in-one#352
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/Physton/sd-webui-prompt-all-in-one/pull/301
Author: @serick4126
Created: 2/14/2024
Status: ✅ Merged
Merged: 2/14/2024
Merged by: @Physton
Base:
main← Head:forge_support📝 Commits (1)
8a41850Add cond_stage_model to get_prompt_lengths argument only when using forge📊 Changes
1 file changed (+17 additions, -3 deletions)
View changed files
📝
scripts/physton_prompt/get_token_counter.py(+17 -3)📄 Description
https://github.com/Physton/sd-webui-prompt-all-in-one/issues/299
This issue occurred because forge now requires get_prompt_lengths to have a cond_stage_model as an argument when counting tokens.
Since the original A1111 still does not require this, it has been changed to determine if forge is used and add cond_stage_model as an argument only if it is used.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.