mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
disable expansion when empty since it is not meaningful and influences image prompt
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
version = '2.1.745'
|
||||
version = '2.1.746'
|
||||
|
||||
@@ -74,6 +74,9 @@ class FooocusExpansion:
|
||||
return scores + self.logits_bias
|
||||
|
||||
def __call__(self, prompt, seed):
|
||||
if prompt == '':
|
||||
return ''
|
||||
|
||||
if self.patcher.current_device != self.patcher.load_device:
|
||||
print('Fooocus Expansion loaded by itself.')
|
||||
model_management.load_model_gpu(self.patcher)
|
||||
|
||||
Reference in New Issue
Block a user