[PR #301] [MERGED] Add cond_stage_model to get_prompt_lengths argument only when using f… #352

Closed
opened 2026-11-07 17:43:41 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • 8a41850 Add 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.

## 📋 Pull Request Information **Original PR:** https://github.com/Physton/sd-webui-prompt-all-in-one/pull/301 **Author:** [@serick4126](https://github.com/serick4126) **Created:** 2/14/2024 **Status:** ✅ Merged **Merged:** 2/14/2024 **Merged by:** [@Physton](https://github.com/Physton) **Base:** `main` ← **Head:** `forge_support` --- ### 📝 Commits (1) - [`8a41850`](https://github.com/Physton/sd-webui-prompt-all-in-one/commit/8a41850bff2a86b681a9bf9c54f6154a8e423991) Add cond_stage_model to get_prompt_lengths argument only when using forge ### 📊 Changes **1 file changed** (+17 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `scripts/physton_prompt/get_token_counter.py` (+17 -3) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 17:43:41 +07:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Physton/sd-webui-prompt-all-in-one#352
No description provided.