Chi tiết
Gợi Ý
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.

Xem bản dịch

Đánh giá và nhận xét

-- /5
0 đánh giá

Chưa nhận đủ đánh giá hoặc bình luận

no-data
Không có dữ liệu
R
Thông báo
2024-07-25
Đăng mô hình
2024-04-30
Cập nhật thông tin mô hình
Chi tiết mô hình
Loại
Other
Thời gian đăng tải
2024-04-30
Mô Hình Cơ Bản
Other
Giới thiệu phiên bản

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

Phạm Vi Giấy Phép
Model Source: civitai

1. Quyền đối với các mô hình được đăng lại thuộc về người sáng tạo ban đầu.

2. Người sáng tạo gốc muốn xác nhận mô hình vui lòng liên hệ nhân viên SeaArt AI qua kênh chính thức. Nhấp để xác nhận

Phạm Vi Giấy Phép Tạo Dựng
Hình Ảnh Trực Tuyến
Thực Hiện Kết Hợp
Cho phép tải xuống
Giấy Phép Thương Mại
Hình ảnh được tạo có thể bán hoặc sử dụng cho mục đích thương mại
Cho phép bán lại hoặc bán sau khi hợp nhất
QR Code
Tải xuống ứng dụng SeaArt
Tiếp tục hành trình sáng tạo AI trên thiết bị di động