feat: add prefix "Fooocus" to version

This commit is contained in:
Manuel Schmid 2024-01-29 16:29:40 +01:00
parent 7fefe3a3c2
commit 33d644f4a5
No known key found for this signature in database
GPG Key ID: 32C4F7569B40B84B
2 changed files with 2 additions and 2 deletions

View File

@ -808,7 +808,7 @@ def worker():
d.append((f'LoRA {li + 1} Name', f'lora_name_{li + 1}', n, False, False))
d.append((f'LoRA {li + 1} Weight', f'lora_weight_{li + 1}', w, False, False))
d.append((f'LoRA {li + 1} Hash', f'lora_hash_{li + 1}', lora_hashes[li], False, False))
d.append(('Version', 'version', 'v' + fooocus_version.version, True, True))
d.append(('Version', 'version', 'Fooocus v' + fooocus_version.version, True, True))
if modules.config.metadata_created_by != '':
d.append(('Created By', 'created_by', modules.config.metadata_created_by, False, False))

View File

@ -135,7 +135,7 @@ class A1111MetadataParser(MetadataParser):
generation_params |= {
self.fooocus_to_a1111['lora_hashes']: lora_hashes_string,
# "Denoising strength": data['denoising_strength'],
self.fooocus_to_a1111['version']: f"Fooocus {data['version']}"
self.fooocus_to_a1111['version']: {data['version']}
}
generation_params_text = ", ".join(