File size: 10,921 Bytes
33d55e0
 
 
318142b
87277ce
33d55e0
318142b
 
 
 
 
 
 
87277ce
 
 
318142b
87277ce
318142b
 
87277ce
318142b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33d55e0
87277ce
33d55e0
 
 
 
5296b53
33d55e0
 
 
 
 
a1b43d0
33d55e0
 
 
3d9892a
4f13e55
3d9892a
 
33d55e0
3d9892a
 
 
 
 
 
a04f678
4f13e55
c5fb512
 
cbc7330
a1b43d0
e6e65e1
c40929d
a1b43d0
 
 
54c8c64
33d55e0
0dd18ea
33d55e0
 
54c8c64
33d55e0
 
e6e65e1
33d55e0
54c8c64
33d55e0
 
ea3d919
edfbaaa
7bcb9a1
beb103d
7bcb9a1
beb103d
ea3d919
edfbaaa
ea3d919
beb103d
ea3d919
 
beb103d
bf34d9a
ea3d919
edfbaaa
7bcb9a1
beb103d
7bcb9a1
beb103d
beb405d
b1cc59e
6791f38
 
54c8c64
6791f38
b1cc59e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33d55e0
54c8c64
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33d55e0
 
 
 
 
 
aac5323
33d55e0
 
 
 
a4dce3b
 
aa8dbe1
 
0a2ff37
33d55e0
 
c8569ee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
---
license: creativeml-openrail-m
language:
- en
base_model: Laxhar/noobai-XL-Vpred-1.0
tags:
- SDXL
- noobai-XL
- Vpred-1.0
- text-to-image
- ComfyUI
- Automatic1111
- Diffuser
pipeline_tag: text-to-image
library_name: diffusers
datasets:
- LaxharLab/NoobAI-XL-dataset
metrics:
- FID
- IS
widget:
- text: >-
    high quality, masterpiece, detailed, 8K, artist:nyantcha,
    evangeline_(nyantcha), vibrant surreal artwork, rainbow, light particles,
    from above, volumetric lighting, ((adult girl:1.2)), natural huge breasts,
    woman dressed as white rabbit, sleek pure white outfit, delicate white bunny
    ears, braid, plump, skindentation, huge breasts, falling into swirling black
    hole, seen from behind, glancing over shoulder, alluring mysterious
    expression, dress, zipper, zipper pull, detached sleeves, breasts apart
    (shoulder straps), buckles, long dress, swirling cosmic patterns, glowing
    particles, dramatic lighting, vibrant neon pink and blue tones,
    hyper-detailed, cinematic depth of field, smooth texture, film grain,
    chromatic aberration, high contrast, limited palette
  parameters:
    negative_prompt: >-
      lowres, worst quality, low quality, bad anatomy, bad hands, 4koma, comic,
      greyscale, censored, jpeg artifacts, overly saturated, overly vivid,
      (multiple views:1.1), (bad:1.05), fewer, extra, missing, worst quality,
      jpeg artifacts, bad quality, watermark, unfinished, displeasing, sepia,
      sketch, flat color, signature, artistic error, username, scan, (blurry,
      lowres, worst quality, (low quality:1.1), ugly, (bad anatomy:1.05), artist
      name, (patreon username:1.2)
  output:
    url: stand_on_ripplewater.jpeg
---

# MIDNIGHT_NAI-XL_vPredV1

**Model Type:** Diffusion-based text-to-image generative model

**Base Model:** SDXL 1.0 & Laxhar/noobai-XL-Vpred-1.0

**License:** [CreativeML Open RAIL++-M](https://github.com/CompVis/stable-diffusion/blob/main/LICENSE)

## Model Description

MIDNIGHT_NAI-XL_vPredV1 is a specialized fine-tuning of the NoobAI-XL (NAI-XL) model, designed to enhance anatomical precision, compositional coherence, and versatile style integration. This model excels in generating high-quality images with vibrant colors while minimizing overexposure.

## Usage Recommendations

### **Sampling Methods**
MIDNIGHT_NAI-XL_vPred is optimized specifically for **Euler (normal)**.  
Use **ModelSamplingDiscrete** with **V-prediction** and **ZsNR set to true**.  
Other samplers may not provide stable results, and **V-prediction models do not support other samplers**.

### **CFG Scaling**
**Dynamic CFG Plugin is bypassed as a backup for potential future needs.**  
Manually adjust **CFG scaling within a range of 5-6** for the best balance.  
For optimal results, a **preferred setting of 5.3** is recommended.

### **Custom Workflow**
For an optimized generation process, use the [**MIDNIGHT1111_Chasm 2025-02-04**](https://huggingface.co/MidnightRunner/MIDNIGHT_NAI-XL_vPredV1/blob/main/MIDNIGHT1111_Chasm%202025-02-04.json) ComfyUI workflow.  
This workflow is specifically designed to **leverage the strengths of MIDNIGHT_NAI-XL_vPred**, providing a streamlined and efficient image generation pipeline.

  
## MIDNIGHT1111_Chasm

For an optimized generation process, consider using the custom workflow [MIDNIGHT1111_Chasm 02-05-25](https://huggingface.co/MidnightRunner/MIDNIGHT_NAI-XL_vPredV1/blob/main/MIDNIGHT1111_Chasm%2002-05-25.json). This workflow is tailored to leverage the strengths of the MIDNIGHT_NAI-XL_vPredV1 model, providing a streamlined and efficient image generation pipeline.
![MIDNIGHT1111_Chasm Workflow](https://huggingface.co/MidnightRunner/MIDNIGHT_NAI-XL_vPredV1/resolve/main/MIDNIGHT1111_Chasm%20Workflow.png)

*Note: The above image is a preview of the `MIDNIGHT1111_Chasm` workflow.*

### Method I: reForge without MIDNIGHT1111_Chasm Workflow

1. **Installation:** If not already installed, follow the instructions in the [reForge repository](https://github.com/Panchovix/stable-diffusion-webui-reForge) to set up.
2. **Usage:** Launch WebUI and use the model as usual.

### Method II: ComfyUI *with* MIDNIGHT1111_Chasm Workflow

1. **Installation:** Follow the setup instructions in the [ComfyUI repository](https://github.com/comfyanonymous/ComfyUI).
2. **Workflow Sample:** Utilize the provided [ComfyUI workflow sample](https://huggingface.co/MidnightRunner/MIDNIGHT_NAI-XL_vPredV1/blob/main/MIDNIGHT1111_Chasm%2002-05-25.json) for guidance.

### Method III: WebUI without MIDNIGHT1111_Chasm Workflow

1. **Installation:** Follow the instructions in the [WebUI repository](https://github.com/AUTOMATIC1111/stable-diffusion-webui) to set up.

2. **Navigate to the WebUI Directory:** Before updating or switching branches, ensure you're inside the `stable-diffusion-webui` folder
    command: |
      ```bash
      cd stable-diffusion-webui
      ```

3. **Switch to the Development Branch (Optional, for testing new features):** If you want to use the latest features from the development branch, run:
    command: |
      ```bash
      git switch dev
      git pull
      ```
    ⚠️ **Note:** The `dev` branch may contain bugs. If stability is your priority, it's best to stay on the `main` branch.

4. **Update WebUI (Main or Dev Branch):** To pull the latest updates while on either branch, run:
    command: |
      ```bash
      git pull
      ```
    🔄 **Restart WebUI after updating to apply changes.**"

5. **Configuration:** Ensure you're using a stable branch, as the dev branch may contain bugs.

### Method IV: Diffusers without MIDNIGHT1111_Chasm Workflow

```bash
import torch
from diffusers import StableDiffusionXLPipeline
from diffusers import EulerDiscreteScheduler

ckpt_path = "/path/to/model.safetensors"
pipe = StableDiffusionXLPipeline.from_single_file(
    ckpt_path,
    use_safetensors=True,
    torch_dtype=torch.float16,
)
scheduler_args = {"prediction_type": "v_prediction", "rescale_betas_zero_snr": True}
pipe.scheduler = EulerDiscreteScheduler.from_config(pipe.scheduler.config, **scheduler_args)
pipe.enable_xformers_memory_efficient_attention()
pipe = pipe.to("cuda")

prompt = """masterpiece, best quality,artist:john_kafka,artist:nixeu,artist:quasarcake, chromatic aberration, film grain, horror \(theme\), limited palette, x-shaped pupils, high contrast, color contrast, cold colors, arlecchino \(genshin impact\), black theme,  gritty, graphite \(medium\)"""
negative_prompt = "nsfw, worst quality, old, early, low quality, lowres, signature, username, logo, bad hands, mutated hands, mammal, anthro, furry, ambiguous form, feral, semi-anthro"

image = pipe(
    prompt=prompt,
    negative_prompt=negative_prompt,
    width=832,
    height=1216,
    num_inference_steps=28,
    guidance_scale=5,
    generator=torch.Generator().manual_seed(42),
).images[0]

image.save("output.png")
```

## e621/Danbooru Artist Wildcards for A1111 & ComfyUI Enclosed in CSV & TXT Formats

To enhance the model's performance and specificity, the following trigger word lists in CSV format are included:

- [`danbooru_artist_webui.csv`](https://huggingface.co/MidnightRunner/MIDNIGHT_NAI-XL_vPredV1/blob/main/danbooru_artist_webui.csv)
- [`danbooru_character_webui.csv`](https://huggingface.co/MidnightRunner/MIDNIGHT_NAI-XL_vPredV1/blob/main/danbooru_character_webui.csv)
- [`e621_artist_webui.csv`](https://huggingface.co/MidnightRunner/MIDNIGHT_NAI-XL_vPredV1/blob/main/e621_artist_webui.csv)
- [`e621_character_webui.csv`](https://huggingface.co/MidnightRunner/MIDNIGHT_NAI-XL_vPredV1/blob/main/e621_character_webui.csv)

These lists provide recognized tags for various artists and characters, facilitating more accurate and tailored image generation.

The wildcard file in 'TXT' format is included and designed for seamless integration with **AUTOMATIC1111** and **ComfyUI**, optimized for dynamic prompt generation using artist data from **e621** and **Danbooru**.

- **TXT Format:** Sanitized artist tags by removing URLs and converted from `.csv` to `.txt` format for improved readability across different extensions.
- **Dual Dataset Support:** Supports both e621 and Danbooru datasets to enhance art style diversity.
- **Smooth Randomization:** Structured with trailing commas for seamless wildcard cycling during prompt generation.

## How to Use Wildcards

### For A1111
1. **Install:** [stable-diffusion-webui-wildcards](https://github.com/AUTOMATIC1111/stable-diffusion-webui-wildcards)  
2. **Place the `.txt` file in:**  
   ```
   /A1111/extensions/stable-diffusion-webui-wildcards
   ```
3. **Use in your prompt like this:**  
   ```
   __e621_artist_wildcard__, very awa, masterpiece, best quality, amazing quality
   ```
   ```
   __danbooru_character_wildcard__, very awa, masterpiece, best quality, amazing quality
   ```
   ```
   __e621_artist_wildcard__, __danbooru_character_wildcard__, very awa, masterpiece, best quality, amazing quality
   ```

### For ComfyUI
1. **Install:** [ComfyUI-Impact-Pack](https://github.com/ltdrdata/ComfyUI-Impact-Pack)  
2. **Place the `.txt` file in:**  
   ```
   /ComfyUI/custom_nodes/ComfyUI-Impact-Pack/wildcards
   ```
   or  
   ```
   /ComfyUI/custom_nodes/ComfyUI-Impact-Pack/custom_wildcards
   ```
3. **Use the wildcard node to trigger dynamic randomization in your workflows.**

## What’s Included in Wildcards

TXT formatted file containing clean, artist-focused wildcard files ready for dynamic prompt workflows in A1111 and ComfyUI.
  - [danbooru_artist_wildcard.txt](https://huggingface.co/MidnightRunner/MIDNIGHT_NAI-XL_vPredV1/blob/main/danbooru_artist_wildcard.txt)
  - [danbooru_character_wildcard.txt](https://huggingface.co/MidnightRunner/MIDNIGHT_NAI-XL_vPredV1/blob/main/danbooru_character_wildcard.txt)
  - [e621_artist_wildcard.txt](https://huggingface.co/MidnightRunner/MIDNIGHT_NAI-XL_vPredV1/blob/main/e621_artist_wildcard.txt)
  - [e621_character_wildcard.txt](https://huggingface.co/MidnightRunner/MIDNIGHT_NAI-XL_vPredV1/blob/main/e621_character_wildcard.txt)

## Acknowledgments

Special thanks to:

- **Development Team:** Laxhar Lab
- **Coding Contributions:** Euge
- **e621/Danbooru Wildcards** [ipsylon0000](https://civitai.com/user/ipsylon0000)
- **Community Support:** Various contributors

## Additional Resources

- **Guidebook for NoobAI XL:** [English Version](https://civitai.com/articles/8962)  
- **Recommended LoRa List for NoobAI XL:** [Resource Link](https://fcnk27d6mpa5.feishu.cn/wiki/IBVGwvVGViazLYkMgVEcvbklnge)  
- **Fixing Black Images in ComfyUI on macOS (M1/M2):** [Read the Article](https://civitai.com/articles/11106)
- **Creative Solutions and Services:** [Magnabos.co](https://magnabos.co/)
  
## License

This model is licensed under the [CreativeML Open RAIL++-M License](https://github.com/CompVis/stable-diffusion/blob/main/LICENSE). By using this model, you agree to the terms and conditions outlined in the license.