File size: 7,228 Bytes
d42c639 d1e532e d42c639 9545e58 9cb5883 787e177 ec8ad73 787e177 ec8ad73 25522bf ec8ad73 288ccd9 ec8ad73 787e177 ec8ad73 787e177 ec8ad73 787e177 9cb5883 25522bf 1a60e3d 9cb5883 787e177 ec8ad73 787e177 ec8ad73 a432893 aeddf70 afe90ec f55347a a432893 aeddf70 afe90ec 6af1f8e aeddf70 afe90ec a432893 afe90ec 6af1f8e afe90ec a432893 aeddf70 a432893 aeddf70 c185134 aeddf70 a432893 eb83543 a432893 aeddf70 f55347a 6af1f8e f55347a a432893 f55347a 6af1f8e f55347a 6af1f8e f55347a aeddf70 afe90ec f55347a afe90ec f55347a afe90ec a432893 afe90ec aeddf70 b94ee91 db3e514 aeddf70 5783a6f 617b973 d1e532e 999000a b94ee91 617b973 b94ee91 617b973 999000a 617b973 999000a 617b973 97e6d39 67b082e 97e6d39 67b082e 617b973 67b082e 617b973 999000a d42c639 |
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 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 |
---
license: apache-2.0
language:
- en
base_model:
- stabilityai/stable-diffusion-xl-base-1.0
pipeline_tag: text-to-image
tags:
- art
---
# SDXL-ProteusSigma Training with ZTSNR and NovelAI V3 Improvements
- [x] 10k dataset proof of concept (completed)[link](https://huggingface.co/dataautogpt3/ProteusSigma)
- [ ] 200k+ dataset finetune (in testing/training)
- [ ] 12M million dataset finetune (planned)
<style>
.logo-container {
position: relative;
text-align: center;
margin: 40px 0;
}
.text-layer {
font-family: 'Arial Black', 'Helvetica', sans-serif;
font-size: 72px;
font-weight: bold;
white-space: nowrap;
}
.text-base {
position: relative;
color: #ff71ce;
text-shadow: 2px 2px 0 #ff00ff;
}
.text-overlay {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-49%, -47%); /* Slightly offset */
color: #01cdfe;
text-shadow: -2px -2px 0 #00ffff;
opacity: 0.8;
mix-blend-mode: screen;
}
.sigma {
color: #00ffff;
text-shadow:
2px 2px 0 #ff00ff,
-2px -2px 0 #00ffff;
}
</style>
<div class="logo-container">
<div class="text-layer text-overlay">
Proteus<span class="sigma">Σ</span>
</div>
<div class="text-layer text-base">
Proteus<span class="sigma">Σ</span>
</div>
</div>
## Example Outputs
<style>
.gallery {
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 10px;
justify-content: center;
align-items: center;
width: 100%;
padding: 10px;
}
.gallery-item {
flex: 0 0 300px;
margin: 0;
position: relative;
}
.gallery-item.large { /* New class for larger item */
flex: 0 0 340px;
}
.gallery img {
width: 300px;
cursor: pointer;
transition: transform 0.2s;
border-radius: 8px;
}
.gallery-item.large img { /* Larger size for last image */
width: 512px;
}
.gallery img:hover {
transform: scale(1.05);
}
.caption {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.4);
color: white;
padding: 8px;
font-size: 11px;
border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;
opacity: 0.7;
transition: opacity 0.3s ease;
}
.gallery-item:hover .caption {
opacity: 0.2;
}
.modal {
display: none;
position: fixed;
z-index: 1000;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.9);
padding: 20px;
box-sizing: border-box;
}
.modal img {
max-width: 90%;
max-height: 90vh;
margin: auto;
display: block;
position: relative;
top: 50%;
transform: translateY(-50%);
}
.modal.active {
display: block;
}
</style>
<div class="gallery">
<div class="gallery-item">
<img src="https://huggingface.co/dataautogpt3/ProteusSigma/resolve/main/example.png" alt="Example Output 1" onclick="showImage(this.src)"/>
<div class="caption">A digital illustration of a lich with long grey hair and beard, as a university professor wearing a formal suit and standing in front of a class, writing on a whiteboard. He holds a marker, writing complex equations or magical symbols on the whiteboard.</div>
</div>
<div class="gallery-item">
<img src="https://huggingface.co/dataautogpt3/ProteusSigma/resolve/main/example2.png" alt="Example Output 2" onclick="showImage(this.src)"/>
<div class="caption">A Candid Photo of a real short grey alien peering around a corner while trying to hide from the viewer in a living room, real photography, fujifilm superia, full HD, taken on a Canon EOS R5 F1.2 ISO100 35MM</div>
</div>
<div class="gallery-item">
<img src="https://huggingface.co/dataautogpt3/ProteusSigma/resolve/main/example3.png" alt="Example Output 3" onclick="showImage(this.src)"/>
</div>
<div class="gallery-item">
<img src="https://huggingface.co/dataautogpt3/ProteusSigma/resolve/main/example4.png" alt="Example Output 4" onclick="showImage(this.src)"/>
</div>
<div class="gallery-item large"> <!-- Added 'large' class -->
<img src="https://huggingface.co/dataautogpt3/ProteusSigma/resolve/main/example5.png" alt="Example Output 5" onclick="showImage(this.src)"/>
</div>
</div>
<div class="modal" onclick="this.classList.remove('active')">
<img id="modal-img" src="" alt="Full size image"/>
</div>
<script>
function showImage(src) {
document.getElementById('modal-img').src = src;
document.querySelector('.modal').classList.add('active');
}
</script>
# Combined Proteus and Mobius datasets with ZTSNR and NovelAI V3 Improvements
# Recommended Inference Parameters
[Example ComfyUI workflow](https://github.com/DataCTE/SDXL-Training-Improvements/blob/main/src/inference/Comfyui-zsnrnode/ztsnr%2Bv-pred.json)
## Installation
1. Install the custom nodes:
```bash
cd /path/to/ComfyUI/custom_nodes
git clone https://github.com/DataCTE/SDXL-Training-Improvements.git
mv SDXL-Training-Improvements/src/inference/Comfyui-zsnrnode ./zsnrnode
```
Restart ComfyUI to load the new nodes
Load the example workflow from the link above
Recommended Settings
Sampler: dpmpp_2m
Scheduler: Karras (Normal noise schedule)
Steps: 28 (Optimal step count)
CFG: 3.0 to 5.5 (Classifier-free guidance scale)
## Model Details
- **Model Type:** SDXL Fine-tuned with ZTSNR and NovelAI V3 Improvements
- **Base Model:** stabilityai/stable-diffusion-xl-base-1.0
- **Training Dataset:** 10,000 high-quality images
- **License:** Apache 2.0
## Key Features
- Zero Terminal SNR (ZTSNR) implementation
- Increased σ_max ≈ 20000.0 (NovelAI research)
- High-resolution coherence enhancements
- Tag-based CLIP weighting
- VAE improvements
### Technical Specifications
- **Noise Schedule**: σ_max ≈ 20000.0 to σ_min ≈ 0.0292
- **Progressive Steps**: [20000, 17.8, 12.4, 9.2, 7.2, 5.4, 3.9, 2.1, 0.9, 0.0292]
- **Resolution Scaling**: √(H×W)/1024
## Training Details
### Training Configuration
- **Learning Rate:** 1e-6
- **Batch Size:** 1
- **Gradient Accumulation Steps:** 1
- **Optimizer:** AdamW
- **Precision:** bfloat16
- **VAE Finetuning:** Enabled
- **VAE Learning Rate:** 1e-6
### CLIP Weight Configuration
- **Character Weight:** 1.5
- **Style Weight:** 1.2
- **Quality Weight:** 0.8
- **Setting Weight:** 1.0
- **Action Weight:** 1.1
- **Object Weight:** 0.9
## Performance Improvements
- 47% fewer artifacts at σ < 5.0
- Stable composition at σ > 12.4
- 31% better detail consistency
- Improved color accuracy
- Enhanced dark tone reproduction
## Repository and Resources
- **GitHub Repository:** [SDXL-Training-Improvements](https://github.com/DataCTE/SDXL-Training-Improvements)
- **Training Code:** Available in the repository
- **Documentation:** [Implementation Details](https://github.com/DataCTE/SDXL-Training-Improvements/blob/main/README.md)
- **Issues and Support:** [GitHub Issues](https://github.com/DataCTE/SDXL-Training-Improvements/issues)
## Citation
```bibtex
@article{ossa2024improvements,
title={Improvements to SDXL in NovelAI Diffusion V3},
author={Ossa, Juan and Doğan, Eren and Birch, Alex and Johnson, F.},
journal={arXiv preprint arXiv:2409.15997v2},
year={2024}
}
``` |