Chi tiết
Gợi Ý
Civitai-2-Name v4
Civitai - LoRA Model Renamer

Civitai - LoRA Model Renamer

0
0
0

This script will help you fix your folders of jumbled / ugly LoRA Names.

It will prompt you to rename your LoRAs and adjacent files with the suggested name from the civitai.info files. It will also let you choose your own name, and even update the info files with your new name if you want.

It will parse the folder you run it from and check each of the model.civitai.info files that are created by the Civitai Helper extension. ( https://github.com/butaixianran/Stable-Diffusion-Webui-Civitai-Helper )

Within those files is a name that the models creator titled it, and it is often much cleaner and easier to understand than the filename of the downloaded file.

Instructions:

Place the Python file in a folder with the models you want to parse.
It will run recursively through any folder you run it from as well as subfolders.

Run the script by either double-clicking on the Python file or the included .Bat file.

It will check for the following files:

LORANAME.safetensors
LORANAME.preview.png
LORANAME.civitai.info
LORANAME.json

As well as other adjacent files with the same prefix.

It will parse the info file and check the name stored in there and compare it to the current name. If they match it will skip the files and move on to the next set. If the files don't match the name it will present you with some options.

Choosing Y

If you choose "y" it will rename all of the files with that prefix to the suggested Civitai name.

In the above case, it would rename

3rq-0003.safetensors
3rq-0003.preview.png
3rq-0003.civitai.info
3rq-0003.json

to

A theme of birds and flowers.safetensors
A theme of birds and flowers.preview.png
A theme of birds and flowers.civitai.info
A theme of birds and flowers.json

Choosing S

If you choose "s" it will skip those files and move on to the next set

Choosing W

If you choose "w" it will write the current file name back into the .civitai.info file.
This is useful if you are happy with your file names and don't want the script to prompt you about them anymore.

For example, if you are prompted with:
If you choose "w" it will write the name Birds and Flowers to the .civitai.file and not prompt you with future runs of the script.

Choosing E

If you choose "e" it will prompt you to choose a new name you want to use for the set of files.

If you choose "y" it will rename the files to:

Birds and Flowers.safetensors
Birds and Flowers.preview.png
Birds and Flowers.civitai.info
Birds and Flowers.json

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
Thông báo
2024-07-25
Đăng mô hình
2024-05-02
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-05-02
Mô Hình Cơ Bản
Other
Giới thiệu phiên bản

Version 4 of this script

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