mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
fix do_sample bug
This commit is contained in:
@@ -54,7 +54,7 @@ class FooocusExpansion:
|
|||||||
# https://huggingface.co/docs/transformers/generation_strategies
|
# https://huggingface.co/docs/transformers/generation_strategies
|
||||||
features = self.model.generate(**tokenized_kwargs,
|
features = self.model.generate(**tokenized_kwargs,
|
||||||
penalty_alpha=0.6,
|
penalty_alpha=0.6,
|
||||||
top_k=4,
|
top_k=8,
|
||||||
max_new_tokens=256,
|
max_new_tokens=256,
|
||||||
do_sample=True)
|
do_sample=True)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user