Downloads · 30 days
696
9% of all-time downloads
MidnightRunner/MIDNIGHT_NAI-XL_vPredV1
MIDNIGHT_NAI-XL_vPredV1 is a text-to-image model from MidnightRunner. Use it when you need an image from a text prompt. It is set up for diffusers. The card lists the license as creativeml-openrail-m.
Model Type: Diffusion-based text-to-image generative model
Downloads · 30 days
696
9% of all-time downloads
All-time downloads
7.9K
Public
Repo size
14.5 GB
Likes
5
Public
Click a slice to open those files.
.safetensors14.2 GB · 99%
From the Hugging Face model README
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
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.
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.
Dynamic CFG Plugin is bypassed as a backup for potential future needs.
Manually adjust CFG scaling within a range of 3-4 for the best balance.
For optimal results, a preferred setting of 3.5 is recommended.
For an optimized generation process, use the MIDNIGHT1111_Chasm 2025-02-04 ComfyUI workflow.
This workflow is specifically designed to leverage the strengths of MIDNIGHT_NAI-XL_vPred, providing a streamlined and efficient image generation pipeline.
For an optimized generation process, consider using the custom workflow MIDNIGHT1111_Chasm 02-05-25. This workflow is tailored to leverage the strengths of the MIDNIGHT_NAI-XL_vPredV1 model, providing a streamlined and efficient image generation pipeline.

Note: The above image is a preview of the MIDNIGHT1111_Chasm workflow.
Installation: Follow the instructions in the WebUI repository to set up.
Navigate to the WebUI Directory: Before updating or switching branches, ensure you're inside the stable-diffusion-webui folder
command: |
cd stable-diffusion-webui
Switch to the Development Branch (Optional, for testing new features): If you want to use the latest features from the development branch, run: command: |
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.
Update WebUI (Main or Dev Branch): To pull the latest updates while on either branch, run: command: |
git pull
🔄 Restart WebUI after updating to apply changes."
Configuration: Ensure you're using a stable branch, as the dev branch may contain bugs.
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")
To enhance the model's performance and specificity, the following trigger word lists in CSV format are included:
danbooru_artist_webui.csvdanbooru_character_webui.csve621_artist_webui.csve621_character_webui.csvThese 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.
.csv to .txt format for improved readability across different extensions..txt file in:
/A1111/extensions/stable-diffusion-webui-wildcards
__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
.txt file in:
/ComfyUI/custom_nodes/ComfyUI-Impact-Pack/wildcards
or
/ComfyUI/custom_nodes/ComfyUI-Impact-Pack/custom_wildcards
TXT formatted file containing clean, artist-focused wildcard files ready for dynamic prompt workflows in A1111 and ComfyUI.
Special thanks to:
This model is licensed under the CreativeML Open RAIL++-M License. By using this model, you agree to the terms and conditions outlined in the license.