Commit f043117d authored by gd1551's avatar gd1551 Committed by GitHub

put todict

parent c7f0a0ac
......@@ -119,8 +119,8 @@ def generate(request: GenerationRequest):
if seed is not None:
request.seed = seed
seed += 1
print(request, json.dumps(request))
metadata.add_text("Comment", json.dumps(request))
print(request, json.dumps(request.toDict()))
metadata.add_text("Comment", json.dumps(request.toDict()))
#image = simplejpeg.encode_jpeg(images[x], quality=95)
image = Image.fromarray(images[x])
#save pillow image with bytesIO
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment