Closed nosdregamon closed 6 months ago
sd webui has a png info tab, which you can put any image into it to get generation info.
Also, there is a button on your model preview image, can open civitai's model page, on that page, you can check everything about that model and its preivew image.
This extension is under maintenance phase so it will only fix bugs, no new feature.
The thing is: Images generated with Civitai's Online-Generator, currently don't store a name but the internal Citai-ID, so dropping an image (I saved earlier) into sd webui's PNG-Info won't help me any longer. I wouldn't know, which model to search for.
PNG Info only gives {"type":"checkpoint","modelVersionId":291443} and no model name.
However, I think, I found a solution, that just requires Javascript - which I understand in opposite to Gradio - so I'll do a fork and see if I can fix it :)
Thanks for your reply.
Oh and with "fix" I mean "a work-around of Civitai's changes", there's nothing wrong with your extension.
Thanks for your fine work.
Your example image is a jpeg file. Jpeg file won't store any generation information. You can only get generation infomation from a .png file.
If this image is a preview image of a model, you can open that model's web page with additional button of this addon
If this image is not a preview image of a model, then it is not a business of this extension. You should ask sd webui to do something with its png info function, to add a link for civitai model's web page.
If you say it's out of the scope of the Civitai-Helper, well, I don't want to bother you.
I got a workaround for now, maybe it's helpful for others and/or maybe I can translate it into it's own thing: https://github.com/butaixianran/Stable-Diffusion-Webui-Civitai-Helper/pull/277
Just a nickpick aside: Somehow the Jpg has stored information!?
Sorry, checked again, seems jpeg file can have custom data section. But still, this should be a new feature to sd webui's png info function, not to this extension.
Civitai changed it's on-site generator to ditch some meta-data, namely model hashes.
Instead of something along the lines of "Model hash: 529c72f6c3, Model: mfcgPDXL_v10.pony" you get "{"type":"checkpoint","modelVersionId":290640}," which is unusable with A1111 and unreadable for me.
Could you add a "translator" that gives the user an idea, what model or loras were used?
I know there's an API for that, ( say https://civitai.com/api/v1/model-versions/298238 ) but I got no clue about how gradio works or how to integrate it into a fork of your extension.
Ideally the translator could also check, if the Lora is already downloaded, or give the option to DL it (or a link to the models/loras' page).
If would probably be overkill, but perhaps you could even add a variation of the normal "apply styles" button, that works like the original but with translated civitai-images?