상세 정보
추천
v1.3
v1.0
v1.2bugFix
v1.1
Civitai-to-A1111 translator

Civitai-to-A1111 translator

0
1
0
#툴
#도구
#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.

번역문 보기

평점 및 리뷰

-- /5
0 개의 평점

충분한 평가나 댓글을 받지 못했습니다.

no-data
데이터 없음
R
공고
2024-07-25
모델 게시
2024-04-30
모델 정보 업데이트
모델 상세정보
유형
Other
게시 날짜
2024-04-30
기본 모델
Other
버전 소개

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

허가 범위
모델 출처: civitai

1. 재게시된 모델의 권리는 원 제작자에게 있습니다.

2. 모델 원작자가 모델을 인증받으려면 공식 채널을 통해 SeaArt.AI 직원에게 문의하세요. 저희는 모든 창작자의 권리를 보호하기 위해 노력합니다. 인증하러 이동

창작 허가 범위
온라인 생방송
혼합 진행
다운로드 허용
상업적 허가 범위
생성된 이미지를 판매하거나 상업적 목적으로 사용 가능
모델의 재판매 또는 융합 후 판매 허용
QR Code
SeaArt 앱 다운로드
모바일에서 AI 창작 여정을 계속하세요