NovelAI Diffusionの生成に必要な情報はExifに埋め込まれている
情報を取得できるWebサービスを使うのが早い
画像に埋め込まれていればいいという考え方になっている
Gyazoのアップロードでexifは消えないのでいいか...
code:zsh
mdls 1girl,\ short\ hair,\ dynamic\ angle,\ kitchen\ s-1558403052.png | grep kMDItemComment
kMDItemComment = "{"steps": 50, "sampler": "k_euler_ancestral", "seed": 1558403052, "strength": 0.7, "noise": 0.2, "scale": 11.0, "uc": "lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry"}"
code:zsh
mdls illust.png | grep kMDItemComment |awk '{print substr($0, 39)}' | awk '{print substr($0,1,length($0)-1)}' | jq [.
code:finder
ユーザのコメント: {"steps": 28, "sampler": "k_euler_ancestral", "seed": 2490768833, "strength": 0.69, "noise": 0.667, "scale": 15.0, "uc": "lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal q