Mexes

Mexes

616420638671868313
My goal is to have a great library of LoRAs in many styles so that you can find what you want in one place ;)
479
Followers
11
Following
1.1M
Runs
312
Downloads
1.7K
Likes
12.6K
Stars
Latest
Most Liked
Tools I use for LoRa training

Tools I use for LoRa training

Hi everyone!Training LoRas is a process that can be very time-consuming, especially dataset preparation. After many training sessions, I've found some tools that save me hours of manual work. I have compiled the tools I use in this article.The titles of each tool contain the direct links to access them.Notice: I use these applications on a system with a Ryzen 5 9600X and an Rx 570 4GB.1. Grabber (Image Collection)This application is wonderful for mass image collection, especially if you work with boorus (anime-style image sites).Main function: It allows you to search by tags on multiple sites simultaneously and download the images in their highest quality quickly.Additional function: It can automatically create a .txt file with the tags from the site itself for each downloaded image.How to set up Grabber's auto-tagging:Go to Tools > Options.In the Options menu, expand the Save tab.Go to Separate Log Files and create a new one.You must configure the values shown in this image:%character:spaces,separator=^, %, %general:spaces,separator=^, %Then, in the main application window, go to the Destination panel (on the left).In the Name field, use the nomenclature shown in this image:%md5%.%ext%And that's it! Now, each downloaded image will come with its corresponding tags file.My advice: Personally, I don't trust these tags 100%, as they are sometimes incorrect or incomplete. However, they are an excellent base if you supplement them using the Append tags option in the automatic tagging tool.2. DupeGuru and Krokiet (Duplicate Cleaning)Having duplicate or very similar images in a dataset is fatal for training, and cleaning them by hand is a nightmare. These two tools make it much easier.Both do the same thing: they scan a folder and detect duplicate or visually similar images.Why use both? I've noticed that DupeGuru sometimes detects duplicates that Krokiet misses, and vice versa. Using both gives me almost total certainty that the dataset is clean.In Krokiet: Simply select the Similar Images section on the left, set your folder, and let it scan.Adjustment: If it doesn't detect duplicates well, you can click the gear icon (⚙️) and adjust the similarity threshold.3. Regional MultiCrop (Image Extraction)This is a simple but incredibly useful tool I created to speed up the extraction of multiple images from a single one.It's perfect for those images that contain multiple angles of a character, facial expressions, or for cropping individual panels from a manga. It saves a lot of manual cropping time.4. Upscayl (Image Scaling)Although some tools (like Dataset Processor) have scaling functions, they often depend on modern hardware. Upscayl is my preferred solution.It allows for batch upscaling.It works wonderfully even with old hardware or if you have VRAM limitations; it can also use the CPU.5. Dataset Processor DesktopThis tool is the Swiss Army knife for processing datasets. It has many functions, but to keep the workflow fast, I focus on the following:Gallery Page: Gives you a quick view of all images. You can click to select them and then delete them with a single button. It's ideal for detecting images that don't add value, are duplicates, or simply clash with the rest of the LoRa.Inpaint Images: Allows you to quickly erase text, logos, or unwanted elements. You just navigate between images, paint over what you want to remove, and move on to the next one.Resize Images: Although this isn't necessary, I usually rescale them to 1024px on their longest side.Tip: The main reason I do this is speed. Inpainting at high resolutions takes a very long time and delays the process unnecessarily.Generate Tags: Allows you to automatically tag the entire dataset with the tagger you choose.My Threshold settings:Few images: I use WDv3Large with a low threshold, 0.25.Many images (+100): I raise the threshold to 0.4 or 0.5 to capture only the most relevant tags and avoid noise.Process Tags: Once tagged, this section gives you a quick overview of the most common tags. It has great options for cleaning duplicates, removing redundancies, and checkboxes to add or remove tags in bulk.6. tagguiAlthough I generally prefer the integrated tagger in Dataset Processor for convenience, taggui is a fantastic and more specialized alternative.Greater variety: It has many more tagger models than Dataset Processor.Use cases: It's especially useful if you need something more specific or if you are training a LoRa with natural language tagging (like Qwen).Technical: It offers more technical options that might interest you if you want more granular control.7. chaiNNerchaiNNer is an advanced node-based image processor. Its capabilities are enormous and go far beyond this guide, but I use it for two specific tasks:Dataset Augmentation: You can create workflows (chains) to rotate, flip, or make small changes to your images to artificially increase the dataset size. (Use chaiNNer to increase dataset quickly | Civitai)Quick Batch Editing: If you notice that all your images need an adjustment in contrast, color, saturation, or brightness, you can apply that correction to the entire dataset at once.8. Booru Prompt GalleryOnce the LoRa is trained, you have to test it! I made this simple webpage to get quick and varied prompts directly from sites like danbooru.Web App: Booru Prompt Gallery V5.1 | CivitaiThat’s it!Stay hydrated and don’t forget to blink.
Web App: Danbooru Prompt Gallery

Web App: Danbooru Prompt Gallery

Notice: The Aibooru API has been quite unstable in recent days. I recommend using the Danbooru API provider.LINK: WEBV5: A new API provider has been added.Just that, a new API provider.Minor changes:Remove the option to choose between “Most popular” and “Most recent”; now “Most recent” will always be used.Replace the rating selector with a simple button that switches between safe and unsafe.V4: new option and minor fixes.I added the possibility of a new input called "Tags to add". Unlike "Tags to remove", this one adds the tags you want at the beginning of the prompt. It’s useful if you want to test a LoRa with a keyword, if you simply want to add your preferred quality tags, or if you want to add new elements to all prompts.Minor changes:Added some more metatagsMade it so that disabling the "Characters" option also removes tags that refer to a character (alternate costume, official costume, alternate hairstyle, etc.)Fixed an issue that left behind residual commas when removing quality tagsV3: More options!!!I’ve added the ability to use Aibooru.Why Aibooru?Most of the images people upload to Aibooru come with all their generation metadata, including the prompt.So, if you use the prompts from Aibooru, it’s much more likely that you’ll get results closer to the reference image.Why didn’t I use this from the start?Personally, I don’t like how some people prompt (they use tags that don’t exist, write messy prompts, or simply use natural language). That’s why I went with Danbooru at first.But hey, now this is a tool for the community and not just for me, and the more options the better, right?Options:Remove LoRa Tags: Sometimes prompts come with LoRAs included. This simply removes them if you’re not interested.Remove Quality Tags: This removes the quality tags that are used, like “score_9_up, masterpiece, super ultra mega quality, etc.”Why can’t I use Danbooru options on Aibooru?The way prompts are obtained on Aibooru is different from Danbooru. On Danbooru, the tags come from the site itself, where they’re used to filter searches—making it easier to know which tag refers to a character, copyright, etc. On the other hand, Aibooru pulls the raw prompt directly from the metadata, so the tags don’t carry any additional information.V2: I added many more options to better configure the prompt according to your preferences.Tags to remove: this option lets you enter any tag you want to remove from the final prompt. Don’t want generations with blue jackets? Just type “blue jacket” and that tag will be removed from the prompt. (this does not filter the results you get from the API; you will still receive images that contain blue jackets)Character: this lets you remove or add character tags to the prompt.Copyright: this lets you remove or add tags for the name of the franchise of the respective character/setting.Combine tags: this combines tags to reduce the size of the prompt. For example: if the prompt contains “skirt, white skirt, pleated skirt” this will combine everything into a single tag “white pleated skirt.”As for minor changes, I can say that:I changed the page colors so they wouldn’t burn your eyes.I added more tags to remove (some of them: web address, original, patreon logo).V1:I’ve been creating LoRA models and checkpoints, and I was spending too much time crafting prompts to test them thoroughly. That’s why I decided to develop this web app. At first, it was just a personal tool, but I soon realized it could be useful to many more people, so I refined it to make it easy and comfortable for anyone to use.What does this tool do?It generates prompts based on the tags from Danbooru posts.It automatically removes metadata and tags that restrict generation (for example, “white background” or “censor”).It filters out artist tags and other irrelevant ones, so you can copy and paste the prompt directly.LimitationsIt won’t always recreate the original image accurately, since it depends on the quality of the tags in each post.Occasionally, unwanted tags may appear. If you notice any, feel free to let me know!Found a bug?Don’t hesitate to tell me — I’m happy to fix them all.Have feature suggestions?Absolutely! Your ideas are welcome.Is the site down?The app runs on a free hosting plan, so sometimes resources get exhausted. I apologize in advance if that happens.Why a web app and not a desktop app?I noticed many users access from mobile devices, and I wanted it to be accessible to everyone, regardless of platform.Want to support me?Thank you so much! you can help me:Leaving a comment and rating.Using my modelsThat’s it!Stay hydrated and don’t forget to blink.
2
1