Linaqruf commited on
Commit
0f81383
1 Parent(s): d0ad515

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
utils.py CHANGED
@@ -169,7 +169,7 @@ def save_image(image, metadata, output_dir, is_colab):
169
  filepath = os.path.join(output_dir, filename)
170
  metadata_str = json.dumps(metadata)
171
  info = PngImagePlugin.PngInfo()
172
- info.add_text("metadata", metadata_str)
173
  image.save(filepath, "PNG", pnginfo=info)
174
  return filepath
175
 
 
169
  filepath = os.path.join(output_dir, filename)
170
  metadata_str = json.dumps(metadata)
171
  info = PngImagePlugin.PngInfo()
172
+ info.add_text("parameters", metadata_str)
173
  image.save(filepath, "PNG", pnginfo=info)
174
  return filepath
175