disable expansion when empty since it is not meaningful and influences image prompt
This commit is contained in:
parent
175f3e3040
commit
d7ee814579
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue