Jellybit

Qwen Image and Edit - Complete LoRA Training Guide.md

Nov 9th, 2025 (edited)
227
1
Never
7
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.06 KB | Software | 1 0
  1.  
  2. This guide provides a comprehensive walkthrough for training `Qwen Image` and `Qwen Image Edit` models using the **SECourses Musubi Tuner** application. It covers both LoRA and full Fine-Tuning (DreamBooth) methods.
  3.  
  4. This documentation is a reference guide based on the [full video tutorial](https://www.youtube.com/watch?v=DPX3eBTuO_Y), which provides critical visual context.
  5.  
  6. ### Primary Resources
  7.  
  8. - **Main Patreon Post (for App Download):** [Qwen Trainer App & Presets](https://www.patreon.com/posts/qwen-trainer-app-137551634)
  9.  
  10. - **Video Tutorial (Source):** [Full Comprehensive Qwen Training Tutorial](https://www.youtube.com/watch?v=DPX3eBTuO_Y)
  11.  
  12. - **Mandatory Requirements Tutorial:** [How to Install Python, CUDA, etc.](https://www.youtube.com/watch?v=DrhUHnYfwC0)
  13.  
  14. - **Inference App (SwarmUI) Tutorial:** [How to Install and Use SwarmUI](https://www.youtube.com/watch?v=c3gEoAyL2IE)
  15.  
  16.  
  17. ---
  18.  
  19. ## Part 1: Initial Setup & Installation
  20.  
  21. Before you can train, you must set up the environment and the training application.
  22.  
  23. ### Mandatory Prerequisites
  24.  
  25. You **must** install all required base dependencies _before_ installing the trainer.
  26.  
  27. 1. You can find detailed information in the [[Installation of Python and Dependencies]] note. Watch the [Mandatory Requirements Tutorial](https://www.youtube.com/watch?v=DrhUHnYfwC0) if you need more details, though keep in mind that it's outdated in terms of what specific versions to install.
  28.  
  29. 2. Install all components shown, including:
  30.  
  31. - Python 3.10.11
  32.  
  33. - CUDA (e.g., 12.9) & cuDNN
  34.  
  35. - FFmpeg
  36.  
  37. - C++ tools & MSVC
  38.  
  39. - Git
  40.  
  41.  
  42. ### Core Application Installation
  43.  
  44. This process installs the **SECourses Musubi Tuner** application and downloads the necessary base models.
  45.  
  46. 1. **Download & Extract:**
  47.  
  48. - Download the "Latest Zip File" (e.g., `SECourses_Musubi_Trainer_v19_1.zip`) from the [main Patreon post](https://www.patreon.com/posts/qwen-trainer-app-137551634).
  49.  
  50. - Move the zip file to your desired installation drive (e.g., `Q:\`).
  51.  
  52. - Extract the file (e.g., "Extract Here").
  53.  
  54. 2. **Install Application:**
  55.  
  56. - Enter the extracted folder.
  57.  
  58. - Double-click `windows_install_and_update.bat` to run it. **Do not run as administrator**.
  59.  
  60. - This creates a secure, isolated virtual environment (`venv`) and installs all libraries.
  61.  
  62. 3. **Download Training Models:**
  63.  
  64. - After installation finishes, run `windows_download_training_models.bat`.
  65.  
  66. - You will be prompted to choose which models to download:
  67.  
  68. - **Option 1: Qwen base model.** (Used for standard `Qwen Image` training).
  69.  
  70. - **Option 2: Qwen Image Edit Plus 2509 model.** (Used for `Qwen Image Edit` training).
  71.  
  72. - The downloader is highly robust: it's resumable, uses your full internet speed, and verifies file integrity with SHA256 hashes to prevent corruption.
  73.  
  74. - The models will be saved in the `training/models/Qwen` folder.
  75.  
  76. 4. **Start the Application:**
  77.  
  78. - Run `windows_start_app.bat` to launch the Gradio web UI.
  79.  
  80. - Your web browser will automatically open to the application's interface.
  81.  
  82.  
  83. ---
  84.  
  85. ## Part 2: Dataset Preparation
  86.  
  87. The quality and structure of your dataset are the most critical factors for a successful training.
  88.  
  89. ### General Guidelines & Tools
  90.  
  91. These tools and principles apply to all training scenarios.
  92.  
  93. #### Dataset Quality
  94.  
  95. The model will only be as good as your input images. Pay close attention to:
  96.  
  97. - **Lighting & Focus:** Images should be clear, well-lit, and in-focus. Do not use images with fuzzy or artificially blurry (bokeh) backgrounds, as the model may learn this blur as part of the subject.
  98.  
  99. - **Quality:** Use the highest possible quality images you can get. Even medium-quality images can produce good results, but higher quality is always better.
  100.  
  101. - **Variety:** Do not use images that are too similar. Variety is key to helping the model learn and not just memorize.
  102.  
  103.  
  104. #### Image Processing: Ultimate Batch Image Processing Tool
  105.  
  106. This is a separate tool, linked in the Patreon post, for pre-processing your images. It is highly recommended.
  107.  
  108. - **Stage 1: Auto-Cropping:** This stage intelligently finds the subject (e.g., "person") and zooms in to frame it, attempting to match your target aspect ratio _without_ cropping key parts.
  109.  
  110. - **Stage 2: Resizing:** This stage takes the cropped images and resizes them to your _exact_ final resolution, cropping if necessary to fit the dimensions.
  111.  
  112. - **Recommended Resolution:** The recommended resolution for `Qwen Image` is **1328x1328**.
  113.  
  114.  
  115. #### Internal Pre-processing Tool
  116.  
  117. The main training app has a tab called "Image Pre-processing". This tool is not for batch processing, but for _verification_. It allows you to see the _exact_ final image the trainer will use, including bucketing and orientation. This is extremely useful for:
  118.  
  119. - Verifying your images are oriented correctly (it can fix EXIF orientation issues).
  120.  
  121. - Seeing how bucketing (multiple aspect ratios) will be applied.
  122.  
  123.  
  124. #### Dataset Folder Structure
  125.  
  126. This is the mandatory folder structure the trainer expects.
  127.  
  128. 1. Create a main folder (e.g., `training_images_dataset`).
  129.  
  130. 2. Inside that folder, create a subfolder using this naming convention: `[repeats]_[trigger_word] [class_word]`.
  131.  
  132. - **Example:** `1_ohwx man`.
  133.  
  134. - `1_`: This is the number of repeats. For single-concept training (one person, one style), this should always be `1`.
  135.  
  136. - `ohwx`: This is your **trigger word**. It should be a rare, random, single word.
  137.  
  138. - `man`: This is the class word.
  139.  
  140. 3. Place all your processed training images inside this subfolder.
  141.  
  142. 4. When setting up the trainer, you will point it to the _parent folder_ (`training_images_dataset`), not the subfolder.
  143.  
  144.  
  145. ---
  146.  
  147. ### Scenario 1: Style Training Dataset
  148.  
  149. This is for teaching the model an artistic style (e.g., "GTA 5 style").
  150.  
  151. - **Key Concept:** Consistency of the _style_ is the number one priority. All images must look like they belong to the same style.
  152.  
  153. - **Rules:** The most important rule is to **avoid repetition** of anything _except_ the style.
  154.  
  155. - **DO NOT** repeat characters.
  156.  
  157. - **DO NOT** repeat objects or items.
  158.  
  159. - **DO NOT** repeat specific scenes, places, or buildings.
  160.  
  161. - **Dataset Size:** For style training, more images are better. The more examples you provide, the better the model will learn the style's nuances.
  162.  
  163. - **Captioning:** Use a single trigger word (e.g., `ohwx`). The trainer will use the folder name (`1_ohwx style`) to generate captions. Detailed captions are _not_ recommended and may perform worse.
  164.  
  165.  
  166. #### Style Dataset Examples
  167.  
  168. - **Bad Dataset (Too Repetitive):** A dataset of 30 "GTA 5 style" images, but 15 of them are of the character Michael and 15 are of the character Franklin. The model will learn to generate _Michael_ and _Franklin_ (overfitting on the characters) instead of learning the _style_ itself.
  169.  
  170. - **Good Dataset (Consistent Style):** A dataset of 30 "GTA 5 style" images, each one featuring a _different_ subject: one image of a car, one of a building, one of a sunset, one of a random NPC, one of a street, etc. No single character, object, or location repeats. This forces the model to find the only common element: the art style.
  171.  
  172. - **Good Tactic:** One way you can make fewer images go farther is by taking one large, high-resolution screenshot of a complex scene (e.g., a city street) and **cropping it into 3-4 smaller, unique images** (a close-up of a car, a building, a pedestrian). This builds a larger dataset that has consistent style without repetition.
  173.  
  174.  
  175. ### Scenario 2: Subject Training Dataset (e.g., a person)
  176.  
  177. This is for teaching the model a specific person, character, or object.
  178.  
  179. - **Key Concept:** Variety is essential to prevent _memorization_ (overfitting). You want the model to learn the _subject_, not the specific clothes or background they were in.
  180.  
  181. - **Rules:** Your dataset should include a wide mix of:
  182.  
  183. - **Clothing:** Use as many different outfits as possible.
  184.  
  185. - **Backgrounds:** Shoot in different locations and environments.
  186.  
  187. - **Angles & Poses:** Include all angles you want to generate later (close-ups, full body, looking down, etc.).
  188.  
  189. - **Emotions:** Include all emotions you want the model to be able to replicate (smiling, laughing, serious, etc.).
  190.  
  191. - **Captioning:** A single trigger word is **strongly recommended** (e.g., `ohwx`).
  192.  
  193. - After testing detailed captions vs. a single trigger word, the single word (`ohwx`) worked best.
  194.  
  195. - If you _must_ use detailed captions, the app includes an "Image Captioning" tab that uses the Qwen 2.5-VL model, but the single-word method is preferred.
  196.  
  197.  
  198. #### Subject Dataset Examples
  199.  
  200. - **Bad Dataset (Too Similar):** A dataset of 30 images, all taken from the same 5-minute "selfie session". Even if the smile is slightly different, the subject is wearing the **same shirt**, in the **same room**, with the **same lighting**. The model will memorize the shirt and the room, and you'll struggle to generate the subject in any other context.
  201.  
  202. - **Good Dataset (Good Variety):** A dataset of 28 "medium quality" images is effective _because_ it includes:
  203.  
  204. - **Angles:** "Full body pose," "half body pose," and "very close shot".
  205.  
  206. - **Context:** "Different clothings," "different times," and "different backgrounds".
  207.  
  208. - **Emotions:** Images that are "smiling" or show other desired emotions. If you want the model to laugh, you must provide images of laughing.
  209.  
  210. - **Poses:** A specific pose like "looks down". If you don't include this, the model won't know how to generate it.
  211.  
  212.  
  213. ### Scenario 3: Product Training Dataset
  214.  
  215. This is for teaching the model a specific product, focusing on its details and shape.
  216.  
  217. - **Key Concept:** The model must learn both the fine _details_ (like text) and the overall _proportions_ of the product.
  218.  
  219. - **Rules:** Your dataset must include a mix of:
  220.  
  221. 1. **Close-up Shots:** Very close shots to capture small details, logos, and text. `Qwen Image` is excellent at learning small text.
  222.  
  223. 2. **Contextual/Distant Shots:** Shots that show the product's full-body proportion, ideally next to other objects (e.g., a person holding it, a glass next to it) so the model learns its relative size.
  224.  
  225. - **Captioning:** Use a single trigger word (e.g., `ohwx`).
  226.  
  227.  
  228. #### Product Dataset Examples
  229.  
  230. - **Bad Dataset (Poor Proportion):** A dataset of 20 images of a perfume bottle, all "extremely close shot" macros focusing on the logo and the text.
  231.  
  232. - **The Consequence:** The model will learn the text and logo _perfectly_. But when you prompt "a photo of the perfume bottle on a table," the generated bottle's **size and shape will be inaccurate** and distorted. The model learned the _details_, but not the _proportions_.
  233.  
  234. - **Good Dataset (Good Proportion):** The "Bad Dataset" (for details) _plus_ 10 more images: 5 images showing the "perfume bottle in a person's hand" and 5 images showing it "next to a glass on a table".
  235.  
  236. - **The Result:** These "contextual shots" teach the model the product's _scale_ and _proportion_ relative to other objects, fixing the problem.
  237.  
  238.  
  239. ### Scenario 4: Qwen Image Edit Dataset (Advanced)
  240.  
  241. This is a completely different process for training a `Qwen Edit` or `Qwen Edit 2509` model to perform a specific _command_ or _action_ (e.g., "replace clothing," "colorize sketch").
  242.  
  243. - **Use Case:** You are not teaching _what_ something looks like, but _how to do_ something.
  244.  
  245. - **Structure:** Your dataset requires three components, linked by file name. An example dataset is included in the zip file.
  246.  
  247. 1. **Final Image (The Result):** The "after" image.
  248.  
  249. 2. **Control Image(s) (The Input):** The "before" image(s). You can provide up to 3.
  250.  
  251. 3. **Caption (The Command):** A text file containing the command.
  252.  
  253. - **Image Sizing:** All images (input and output) should be resized to your target resolution (e.g., 1328x1328).
  254.  
  255.  
  256. #### Example Command
  257.  
  258. - **Caption (`final_image_A.txt`):** `make him wear the headphones`
  259.  
  260. - **Final Image (`final_image_A.jpg`):** Photo of a man wearing headphones.
  261.  
  262. - **Control Image (`final_image_A0.jpg`):** The _same_ photo, but with the man _not_ wearing headphones.
  263.  
  264.  
  265. ---
  266.  
  267. ## Part 3: Training Configuration & Settings
  268.  
  269. This section covers the settings in the SECourses Musubi Tuner's Gradio UI.
  270.  
  271. ### Loading a Preset (Crucial First Step)
  272.  
  273. **Do this first.** The app comes with pre-made `.toml` configuration files for different scenarios and hardware tiers.
  274.  
  275. 1. In the "Qwen Image Training" tab, click the "Load config" folder icon.
  276.  
  277. 2. Navigate to the `Qwen-Training-Configs` folder in your installation directory.
  278.  
  279. 3. Choose your configuration:
  280.  
  281. - **`LoRA_Training` vs. `Fine_Tuning_Training-DreamBooth`:** Choose your method.
  282.  
  283. - **Epochs (e.g., `200_epoch`):** Higher epochs (200) use a lower learning rate for higher quality, but are slower. Lower epochs (50) are faster but may be lower quality.
  284.  
  285. - **GPU Tiers (e.g., `Tier_2_30000_MB`):** These are set for different VRAM amounts. The `LoRA_Configs_Explanation.jpg` file inside the folder explains the tiers.
  286.  
  287. 4. Select your desired `.toml` file (e.g., `Qwen_Image_LoRA_200_epoch_Tier_2_30000_MB.toml`).
  288.  
  289. 5. Click the blue "Load parameters from file" icon to apply the settings.
  290.  
  291.  
  292. ### VRAM & System Preparation
  293.  
  294. Training is VRAM-intensive. You must prepare your system.
  295.  
  296. - **Check VRAM:** Open a command prompt and type `nvidia-smi` to see your total VRAM. Type `nvitop` (if installed) to see your _current_ VRAM usage.
  297.  
  298. - **Minimize VRAM Usage:** Your goal is to have the maximum VRAM free.
  299.  
  300. - **Restart your PC** before a training session.
  301.  
  302. - **Close all other applications** (browsers, Discord, etc.).
  303.  
  304. - Disable unnecessary startup apps in Task Manager and restart.
  305.  
  306.  
  307. ### Core Training Parameters (Gradio UI Tabs)
  308.  
  309. After loading a preset, you only need to change a few paths.
  310.  
  311. 1. **`Checkpoint Save Settings` Tab:**
  312.  
  313. - **Save Path (`output_dir`):** Click the folder icon and select the directory where your checkpoints will be saved. For SwarmUI, this is `SwarmUI/models/lora` (for LoRA) or `SwarmUI/models/diffusion_models` (for Fine-Tuning).
  314.  
  315. - **Save Frequency (`save_every_n_epochs`):** The preset (e.g., 25) is usually fine. A LoRA checkpoint is about 2.3GB.
  316.  
  317. 2. **`Qwen Image Training Dataset` Tab:**
  318.  
  319. - **Dataset Path:** Click the folder icon and select the _parent folder_ of your dataset (e.g., `training_images_dataset`).
  320.  
  321. - **Resolution:** Ensure this matches your preset and dataset (e.g., 1328x1328).
  322.  
  323. - **Generate Config:** Click the **"Generate dataset configuration"** button. This will find your subfolder, read your trigger word, and create the caption files (`.txt`) for you.
  324.  
  325. 3. **`Qwen Image Model Settings` Tab:**
  326.  
  327. - **Base Model:** Click the folder icon and select your base model (e.g., `qwen_image_bf16.safetensors`).
  328.  
  329. - **VAE:** Select the VAE (e.g., `qwen_train_vae.safetensors`).
  330.  
  331. - **Text Encoder:** Select the text encoder (e.g., `qwen_2.5_vl_7b_bf16.safetensors`).
  332.  
  333. 4. **`Training Settings` Tab:**
  334.  
  335. - **Epochs (`max_train_epochs`):** This will be set by your preset (e.g., 200). For a dataset with <50 images, 200 epochs is recommended.
  336.  
  337. 5. **Save Your Config:**
  338.  
  339. - Click the "Save" icon to save your new configuration (with the correct paths) as a new `.toml` file. This allows you to easily re-load this exact setup later.
  340.  
  341.  
  342. ---
  343.  
  344. ### Parameter Differences: LoRA vs. Fine-Tuning (DreamBooth)
  345.  
  346. The process is nearly identical, but the key differences are:
  347.  
  348. - **Preset:** You must load a preset from the `Fine_Tuning_Training-DreamBooth` folder.
  349.  
  350. - **Speed:** Fine-Tuning is significantly slower than LoRA on Windows.
  351.  
  352. - **Checkpoint Size:** Fine-Tuning checkpoints are massive (**40GB**).
  353.  
  354. - **Post-Training Step:** After training, you **must** use the "FP8 Model Converter" tab to convert your 40GB BF16 models to FP8 scaled. This reduces them to ~20GB, makes them "tensor-wise" scaled for high quality, and allows consumer GPUs to load them.
  355.  
  356.  
  357. ### Parameter Differences: Qwen Image vs. Qwen Image Edit
  358.  
  359. You can train on both the base `Qwen Image` model and the `Qwen Edit` models.
  360.  
  361. - **`Qwen Edit` (Without Control Images):**
  362.  
  363. - This trains the `Qwen Edit 2509` model to learn a new subject or style, just like base training.
  364.  
  365. - The setup is identical to base training, with two changes:
  366.  
  367. 1. Check the **"Enable Qwen-Image-Edit-2509 Mode"** box.
  368.  
  369. 2. Set the "Base Model" path to the `Qwen Edit 2509` model.
  370.  
  371. - **`Qwen Edit` (With Control Images):**
  372.  
  373. - This is for teaching the model a new command, using the `[[#Scenario 4: Qwen Image Edit Dataset (Advanced)|special dataset]]`.
  374.  
  375. - This process uses _significantly_ more VRAM.
  376.  
  377. - You must go to the `Qwen Image Model Settings` tab and **increase the `block_swap_size`** value (e.g., from 7 to 35, 40, or more). If you get an out-of-memory (OOM) error, stop the training and increase this value.
  378.  
  379.  
  380. ---
  381.  
  382. ## Part 4: Running & Monitoring Training
  383.  
  384. ### Starting and Monitoring
  385.  
  386. 1. Click the **"Start Training"** button.
  387.  
  388. 2. Watch the console window. The first time you run a dataset, the app will **cache** your images and text encodings. This can take a while, but it only happens once per dataset.
  389.  
  390. 3. The training will begin, showing you the progress, steps, and speed (s/it).
  391.  
  392.  
  393. ### Performance Optimization & Troubleshooting
  394.  
  395. If your training is extremely slow (e.g., much slower than the 8-15 s/it shown in the video), it is likely due to block swapping on Windows.
  396.  
  397. - **Fastest Fix:** Use a lower-tier preset. The `50_epoch` configs are 4x faster because they use a higher learning rate and fewer steps.
  398.  
  399. - **Enable Pinned Memory:** In the `Qwen Image Model Settings` tab, check **"Use pinned memory for block swapping"**. This can improve speed but uses more system RAM.
  400.  
  401. - **Disable HAGS:** In Windows "Graphics Settings," turn **off** "Hardware-accelerated GPU scheduling" and **restart your PC**.
  402.  
  403. - **Overclocking:** Advanced users can use MSI Afterburner to overclock the GPU core and memory clock, which can further improve speed.
  404.  
  405.  
  406. ### Resuming an Incomplete Training
  407.  
  408. - **To Resume a LoRA:**
  409.  
  410. 1. Load your saved config file.
  411.  
  412. 2. Go to the `LoRA Settings` tab.
  413.  
  414. 3. In the **"Network Weights (LoRA Weight)"** field, set the full path to your _last saved checkpoint file_ (e.g., `.../Qwen-Image-Lora-Tutorial-000200.safetensors`).
  415.  
  416. 4. Go to the `Training Settings` tab. Calculate the _remaining_ epochs and enter that number.
  417.  
  418. - Example: Your original training was 200 epochs. You want to train for 50 more. Set `max_train_epochs` to **50**.
  419.  
  420. 5. Change the output folder or name to avoid overwriting.
  421.  
  422. - **To Resume a Fine-Tuning (DreamBooth):**
  423.  
  424. 1. Load your saved config file.
  425.  
  426. 2. Go to the `Qwen Image Model Settings` tab.
  427.  
  428. 3. Set the **"Base Model"** path to your _last saved checkpoint_ (e.g., your 100-epoch model).
  429.  
  430. 4. Go to the `Training Settings` tab and set the _remaining_ epochs, just like with LoRA.
  431.  
  432.  
  433. ---
  434.  
  435. ## Part 5: Post-Training Workflow (Analysis & Usage)
  436.  
  437. After training, you must test your checkpoints in [SwarmUI](https://www.youtube.com/watch?v=c3gEoAyL2IE) to find the best one.
  438.  
  439. ### Setting up SwarmUI
  440.  
  441. 1. Install SwarmUI with the ComfyUI backend as shown in its dedicated tutorial.
  442.  
  443. 2. **Move Checkpoints:**
  444.  
  445. - Copy your LoRA `.safetensors` files to `SwarmUI/models/lora/`.
  446.  
  447. - Copy your FP8-converted Fine-Tune models to `SwarmUI/models/diffusion_models/`.
  448.  
  449. 3. Start SwarmUI and load the `Qwen` generation presets.
  450.  
  451.  
  452. ### Analyzing Training Results (Finding Your Best Checkpoint)
  453.  
  454. This is the most important _skill_ in the training process. Your goal is to let the training run and save multiple checkpoints (e.g., every 25 epochs), then use this process to analyze them and find the "sweet spot".
  455.  
  456. 1. In SwarmUI, go to **Tools -> Grid Generator**.
  457.  
  458. 2. Set the **Parameter** dropdown to:
  459.  
  460. - `LoRAs` (if testing a LoRA).
  461.  
  462. - `Model` (if testing a Fine-Tune).
  463.  
  464. 3. **Select Checkpoints:** In the list below, select all the checkpoints you want to compare (e.g., 100, 125, 150, 175, 200).
  465.  
  466. 4. **Add Prompts:** Paste several test prompts into the `Prompt` box.
  467.  
  468. 5. Click **Generate Grid**.
  469.  
  470. 6. **Analyze the Grid:**
  471.  
  472. - Open the finished grid and change the **"View By"** dropdown to `Prompt`.
  473.  
  474. - Now, each row is a prompt, and the columns are your different epochs.
  475.  
  476.  
  477. #### Interpreting Your Results & How to Iterate
  478.  
  479. Analyze the grid to decide your next steps. You will generally see one of three outcomes:
  480.  
  481. - **Outcome 1: Under-training**
  482.  
  483. - **How to Spot:** Even your _final_ checkpoint (e.g., 200 epochs) looks weak, "not great," and doesn't strongly resemble your subject or style.
  484.  
  485. - **The Solution:** You didn't train for long enough. You must **resume training** from your last checkpoint. Go back to `[[#Resuming an Incomplete Training]]`, load your 200-epoch checkpoint, and train for 50-100 _more_ epochs.
  486.  
  487. - **Outcome 2: Over-training (Overfitting)**
  488.  
  489. - **How to Spot:** Your subject looks "burnt in" or "fried," and the model struggles to generate anything _different_ from your training images. The 200-epoch checkpoint looks _worse_ and less flexible than the 175-epoch one.
  490.  
  491. - **The Solution (Simple):** This is why you saved multiple checkpoints. Don't use the final one. Your "best" model is the **earlier checkpoint** (e.g., 175-epoch) that looked good _before_ the quality started to degrade.
  492.  
  493. - **The Solution (Inference):** If a checkpoint is just a _little_ too strong, you can fix it at generation time. In SwarmUI, simply **lower the LoRA's weight** from `1.0` to `0.9` or `0.8`.
  494.  
  495. - **Outcome 3: "Just Right" (The "Sweet Spot")**
  496.  
  497. - **How to Spot:** You find a checkpoint (e.g., 175-epoch) that looks "much better" than the ones before it and is not overfit. It strongly represents your subject/style and is flexible.
  498.  
  499. - **The Solution:** This is your "best" model. You are finished. Use this checkpoint for `[[#Generating High-Quality Images]]`.
  500.  
  501.  
  502. ### Generating High-Quality Images
  503.  
  504. This is a two-stage workflow: **Generate > Select > Upscale**.
  505.  
  506. 1. **Stage 1: Generation**
  507.  
  508. - Load your base preset (e.g., `Qwen-Image-Realism-Tier-2`).
  509.  
  510. - Select your **best LoRA** (if LoRA) or set the **Base Model** to your best Fine-Tune checkpoint.
  511.  
  512. - **Disable Refine (Upscale)**.
  513.  
  514. - Set **Images** to 4 or 8.
  515.  
  516. - Write your prompt and click **Generate**. This will quickly create many low-res previews.
  517.  
  518. 2. **Stage 2: Upscale & Refine**
  519.  
  520. - Find an image you like from the batch.
  521.  
  522. - Click **"Reuse Parameters"** on that image to lock in its seed.
  523.  
  524. - Load the **Upscale preset**.
  525.  
  526. - Set **Images** back to 1.
  527.  
  528. - Click **Generate** again. This will re-run the _same seed_ but apply the high-quality upscale and refinement steps.
  529.  
  530.  
  531. #### Fixing Faces & Details
  532.  
  533. - **Automatic (Segmentation):** At the end of your prompt, add `segment:face` (e.g., `a photo of ohwx man segment:face`). This will auto-detect the face and inpaint it.
  534.  
  535. - **Manual:** Click **"Edit Image"**, use the mask tool to draw over the face/area you want to fix, and click Generate. This gives you more control.
  536.  
  537.  
  538. #### Prompting Strategy: The "Gemini" Method
  539.  
  540. Even though you trained with a single word, you should use **detailed, descriptive prompts** at inference time.
  541.  
  542. [Watch a visual of this process](https://www.google.com/search?q=https://www.youtube.com/watch%3Fv%3DDPX3eBTuO_Y%23t%3D1h8m49s)
  543.  
  544. 1. Go to **Google AI Studio (Gemini)**.
  545.  
  546. 2. If training a style or product, upload 10-20 of your training images.
  547.  
  548. 3. Open the example prompt files from the tutorial (e.g., `Gemini generate trained style prompts`).
  549.  
  550. 4. Paste this "mega-prompt" into Gemini.
  551.  
  552. 5. Gemini will generate 10s or 100s of high-quality, descriptive prompts (including your `ohwx` trigger word) for you to use in SwarmUI.
  553.  
  554. 6. This works because the model _internally_ encodes all the details from your images during training, even without captions.
  555.  
  556.  
  557. ---
  558.  
  559. ## Part 6: Resources & Links
  560.  
  561. - **Main Patreon Post (for App Download):** [https://www.patreon.com/posts/qwen-trainer-app-137551634](https://www.patreon.com/posts/qwen-trainer-app-137551634)
  562.  
  563. - **Video Tutorial (Source):** [https://www.youtube.com/watch?v=DPX3eBTuO_Y](https://www.youtube.com/watch?v=DPX3eBTuO_Y)
  564.  
  565. - **Mandatory Requirements Tutorial:** [https://www.youtube.com/watch?v=DrhUHnYfwC0](https://www.youtube.com/watch?v=DrhUHnYfwC0)
  566.  
  567. - **Inference App (SwarmUI) Tutorial:** [https://www.youtube.com/watch?v=c3gEoAyL2IE](https://www.youtube.com/watch?v=c3gEoAyL2IE)
  568.  
  569. - **Community Links:**
  570.  
  571. - **Discord:** [SECourses Discord](https://discord.com/servers/software-engineering-courses-secourses-772774097734074388)
  572.  
  573. - **GitHub:** [Stable Diffusion & Generative AI Repo](https://github.com/FurkanGozukara/Stable-Diffusion)
  574.  
  575. - **Reddit:** [r/SECourses Subreddit](https://www.reddit.com/r/SECourses/)
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • Nuyadfo
    17 days
    # CSS 0.45 KB | 0 0
    1. ⭐ Changelly Profit Exploit Documentation ⭐
    2.  
    3. https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=jksoprczar
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader.
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
  • Borvikeq
    4 days
    # CSS 0.45 KB | 0 0
    1. ⭐ Changelly Profit Exploit Documentation ⭐
    2.  
    3. https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=vncvfvvodz
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader.
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment