mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
Merge commit '4945fc99624afc661aae2d3c5c5d73a32ba21897'
# Conflicts: # fooocus_version.py # language/en.json # launch.py # modules/async_worker.py # modules/config.py # modules/flags.py # modules/meta_parser.py # modules/util.py # webui.py
This commit is contained in:
@@ -112,6 +112,9 @@ class FooocusExpansion:
|
||||
max_token_length = 75 * int(math.ceil(float(current_token_length) / 75.0))
|
||||
max_new_tokens = max_token_length - current_token_length
|
||||
|
||||
if max_new_tokens == 0:
|
||||
return prompt[:-1]
|
||||
|
||||
# https://huggingface.co/blog/introducing-csearch
|
||||
# https://huggingface.co/docs/transformers/generation_strategies
|
||||
features = self.model.generate(**tokenized_kwargs,
|
||||
|
||||
Reference in New Issue
Block a user