mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-04 15:05:04 -05:00
fix a few more metadata bugs
- facetool and upscale arguments now written into metadata - cleaned up handling of !fetch command
This commit is contained in:
@@ -113,8 +113,8 @@ PRECISION_CHOICES = [
|
||||
]
|
||||
|
||||
# is there a way to pick this up during git commits?
|
||||
APP_ID = 'lstein/stable-diffusion'
|
||||
APP_VERSION = 'v1.15'
|
||||
APP_ID = 'invoke-ai/InvokeAI'
|
||||
APP_VERSION = 'v2.02'
|
||||
|
||||
class ArgFormatter(argparse.RawTextHelpFormatter):
|
||||
# use defined argument order to display usage
|
||||
@@ -852,7 +852,7 @@ def metadata_dumps(opt,
|
||||
# remove any image keys not mentioned in RFC #266
|
||||
rfc266_img_fields = ['type','postprocessing','sampler','prompt','seed','variations','steps',
|
||||
'cfg_scale','threshold','perlin','step_number','width','height','extra','strength',
|
||||
'init_img','init_mask']
|
||||
'init_img','init_mask','facetool','facetool_strength','upscale']
|
||||
|
||||
rfc_dict ={}
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ class PngWriter:
|
||||
info = PngImagePlugin.PngInfo()
|
||||
info.add_text('Dream', dream_prompt)
|
||||
if metadata:
|
||||
info.add_text('sd-metadata', json.dumps(metadata))
|
||||
info.add_text('sd-metadata', json.dumps(metadata))
|
||||
image.save(path, 'PNG', pnginfo=info, compress_level=compress_level)
|
||||
return path
|
||||
|
||||
|
||||
Reference in New Issue
Block a user