Détails
Recommandé
v1.3
v1.0
v1.2bugFix
v1.1
Civitai-to-A1111 translator

Civitai-to-A1111 translator

0
1
0
#outils
#outil
#Forge
#A1111

Update: Bugfix - Embeddings didn't make it into translation on some newer images. On a related note: Civitai nowadays adds the names of used resources for new images, so some of the following is obsolete. Still a useful script...

Purpose: I like to save AI-images, to drop them later into A1111 and play with the used Loras/Styles. However, the Civitai-Generator doesn't offer Meta-Data in the format A1111 is used to, so it's quite a effort to set everything up. With help of Civitai-API I wrote a little extension, that helps with that.

Usage: ????? the extension into your Extensions folder and restart the UI. A new Button appears. Drop an image into the prompt-area. Hit the new button (1) under "Generate". Hit the good old apply-button (2), hit Generate and see (or read) what happens.

What happens:

Let's take for example: https://civitai.com/images/8010475 (and leave a thumbs up, while you're there). If you'd save it and drop it into the prompt area, you can see, it has the following info...

[{"type":"checkpoint","modelVersionId":290640},{"type":"lora","weight":1,"modelVersionId":349887},{"type":"embed","weight":1,"modelVersionId":5637}]

... which A1111 and Forge totally ignore. The overall Prompt is used, but the Checkpoint and the Loras are lost, even if they are installed. Hitting the new translate button, my script asks the Civitai-Api for a little more Info to convert it to a format the "Apply" button understands

After the # you get a "ready to paste" URL to open the models on Civitai, in case you don't have the model installed(currently I can't check if you have, so the URL is always included). By default A1111 ignores everything in a line after a "#" when it comes to generation, so you can just ignore it, if you don't need the URLs.

On top it adds "RNG:CPU", which comes closer to the Civitai's style than RNG:NV or RNG:GPU.
After this, hit "Apply", like usual and "Generate" now has a chance to find the the correct loras/models. If it doesn't find the models, despite them being in your folders, check if the filename is correct in the <angle brackets:1>. Sometimes files get renamed and that's enough for A1111 and forge to skip over them (sometimes even over all included Lora's). Still trying to figure out, how to circumvent that.

Limitations:

A) You will not get the exact same picture, just pretty close. Differences in Hardware and Software-versions as well as Civitai's "behind the scenes magic/optimizations" will always make at least a tiny difference (You can experiment to set the CFG/Guidance a little higher, in my experiments +1.5 or +2.5 get the results often a little closer, but that seems to be random as well). However for me the important thing, is to use pictures as an archive for interesting styles, so this is only making sure, that I have the right ingredients together.

B) It will only work for Images created with the Civitai-Generator.

C) Updates/Changes in the Api might break this little script in no time.

D) If a resource is gone from Civitai, my script and the Api will be probably of no use.

E) If your Web UI is set to remove styles on "apply", the whole procedure will probably be useless.

Voir la traduction

Notes & Commentaires

-- /5
0 Notes

Pas encore reçu suffisamment d'évaluations ou de commentaires

no-data
Aucune donnée disponible
R
Annonce
2024-07-25
Publier un modèle
2024-04-30
Mettre à jour les informations du modèle
Détails du modèle
Type
Other
Temps de Publication
2024-04-30
Modèle Basique
Other
Introduction de version

New URLs - instead of searching, they should open the models directly

Périmètre de la licence
Source: civitai

1. Modèle partagé uniquement à l'apprentissage et au partage. Droits d'auteur et interprétation finale réservés à l'auteur original.

2. Auteur souhaitant revendiquer le modèle : Contactez officiellement SeaArt AI pour l'authentification. Nous protégeons les droits de chaque auteur. Cliquer pour revendiquer

Périmètre de la licence de création
Génération d'images en ligne
Effectuer une fusion
Autoriser le téléchargement
Périmètre de la licence de commerce
Les images générées peuvent être vendues ou utilisées à des fins commerciales
La revente ou la vente après fusion du modèle est autorisée.
QR Code
Télécharger l'App SeaArt
Poursuivez votre voyage de création AI sur mobile