disable expansion when empty since it is not meaningful and influences image prompt

This commit is contained in:
lllyasviel 2023-10-26 08:51:53 -07:00
parent 175f3e3040
commit d7ee814579
2 changed files with 4 additions and 1 deletions

View File

@ -1 +1 @@
version = '2.1.745'
version = '2.1.746'

View File

@ -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)