mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
set beam to 1 for balanced distrubution
This commit is contained in:
@@ -53,8 +53,7 @@ class FooocusExpansion:
|
||||
# https://huggingface.co/blog/introducing-csearch
|
||||
# https://huggingface.co/docs/transformers/generation_strategies
|
||||
features = self.model.generate(**tokenized_kwargs,
|
||||
penalty_alpha=0.6,
|
||||
top_k=8,
|
||||
num_beams=1,
|
||||
max_new_tokens=256,
|
||||
do_sample=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user