Update README.md
Browse files
README.md
CHANGED
|
@@ -1,198 +1,139 @@
|
|
| 1 |
---
|
| 2 |
library_name: diffusers
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
| 4 |
|
| 5 |
-
#
|
| 6 |
|
| 7 |
-
|
| 8 |
|
|
|
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
-
|
| 12 |
|
| 13 |
-
|
|
|
|
| 14 |
|
| 15 |
-
|
| 16 |
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
-
|
| 20 |
-
- **Funded by [optional]:** [More Information Needed]
|
| 21 |
-
- **Shared by [optional]:** [More Information Needed]
|
| 22 |
-
- **Model type:** [More Information Needed]
|
| 23 |
-
- **Language(s) (NLP):** [More Information Needed]
|
| 24 |
-
- **License:** [More Information Needed]
|
| 25 |
-
- **Finetuned from model [optional]:** [More Information Needed]
|
| 26 |
|
| 27 |
-
|
| 28 |
|
| 29 |
-
|
| 30 |
|
| 31 |
-
- **
|
| 32 |
-
- **Paper [optional]:** [More Information Needed]
|
| 33 |
-
- **Demo [optional]:** [More Information Needed]
|
| 34 |
|
| 35 |
-
## Uses
|
| 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 |
-
#### Training Hyperparameters
|
| 93 |
-
|
| 94 |
-
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
| 95 |
-
|
| 96 |
-
#### Speeds, Sizes, Times [optional]
|
| 97 |
-
|
| 98 |
-
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
| 99 |
-
|
| 100 |
-
[More Information Needed]
|
| 101 |
-
|
| 102 |
-
## Evaluation
|
| 103 |
-
|
| 104 |
-
<!-- This section describes the evaluation protocols and provides the results. -->
|
| 105 |
-
|
| 106 |
-
### Testing Data, Factors & Metrics
|
| 107 |
-
|
| 108 |
-
#### Testing Data
|
| 109 |
-
|
| 110 |
-
<!-- This should link to a Dataset Card if possible. -->
|
| 111 |
-
|
| 112 |
-
[More Information Needed]
|
| 113 |
-
|
| 114 |
-
#### Factors
|
| 115 |
-
|
| 116 |
-
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
| 117 |
-
|
| 118 |
-
[More Information Needed]
|
| 119 |
-
|
| 120 |
-
#### Metrics
|
| 121 |
-
|
| 122 |
-
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
| 123 |
-
|
| 124 |
-
[More Information Needed]
|
| 125 |
-
|
| 126 |
-
### Results
|
| 127 |
-
|
| 128 |
-
[More Information Needed]
|
| 129 |
-
|
| 130 |
-
#### Summary
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
## Model Examination [optional]
|
| 135 |
-
|
| 136 |
-
<!-- Relevant interpretability work for the model goes here -->
|
| 137 |
-
|
| 138 |
-
[More Information Needed]
|
| 139 |
-
|
| 140 |
-
## Environmental Impact
|
| 141 |
-
|
| 142 |
-
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
| 143 |
-
|
| 144 |
-
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
| 145 |
-
|
| 146 |
-
- **Hardware Type:** [More Information Needed]
|
| 147 |
-
- **Hours used:** [More Information Needed]
|
| 148 |
-
- **Cloud Provider:** [More Information Needed]
|
| 149 |
-
- **Compute Region:** [More Information Needed]
|
| 150 |
-
- **Carbon Emitted:** [More Information Needed]
|
| 151 |
-
|
| 152 |
-
## Technical Specifications [optional]
|
| 153 |
-
|
| 154 |
-
### Model Architecture and Objective
|
| 155 |
-
|
| 156 |
-
[More Information Needed]
|
| 157 |
-
|
| 158 |
-
### Compute Infrastructure
|
| 159 |
-
|
| 160 |
-
[More Information Needed]
|
| 161 |
-
|
| 162 |
-
#### Hardware
|
| 163 |
-
|
| 164 |
-
[More Information Needed]
|
| 165 |
-
|
| 166 |
-
#### Software
|
| 167 |
-
|
| 168 |
-
[More Information Needed]
|
| 169 |
-
|
| 170 |
-
## Citation [optional]
|
| 171 |
-
|
| 172 |
-
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
| 173 |
-
|
| 174 |
-
**BibTeX:**
|
| 175 |
-
|
| 176 |
-
[More Information Needed]
|
| 177 |
-
|
| 178 |
-
**APA:**
|
| 179 |
-
|
| 180 |
-
[More Information Needed]
|
| 181 |
-
|
| 182 |
-
## Glossary [optional]
|
| 183 |
-
|
| 184 |
-
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
| 185 |
-
|
| 186 |
-
[More Information Needed]
|
| 187 |
-
|
| 188 |
-
## More Information [optional]
|
| 189 |
-
|
| 190 |
-
[More Information Needed]
|
| 191 |
-
|
| 192 |
-
## Model Card Authors [optional]
|
| 193 |
-
|
| 194 |
-
[More Information Needed]
|
| 195 |
-
|
| 196 |
-
## Model Card Contact
|
| 197 |
-
|
| 198 |
-
[More Information Needed]
|
|
|
|
| 1 |
---
|
| 2 |
library_name: diffusers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
base_model:
|
| 5 |
+
- neta-art/Neta-Lumina
|
| 6 |
+
tags:
|
| 7 |
+
- diffusers,
|
| 8 |
+
- text-to-image
|
| 9 |
---
|
| 10 |
|
| 11 |
+
# Neta Lumina v1.0 for diffusers library
|
| 12 |
|
| 13 |
+
[**Neta Lumina Tech Report**](https://neta.art/blog/neta_lumina/)
|
| 14 |
|
| 15 |
+
## 📽️ Flash Preview
|
| 16 |
|
| 17 |
+
<video controls autoplay loop muted playsinline style="max-width:100%; border-radius:8px;">
|
| 18 |
+
<source src="https://pages-r2.neta.art/Neta_Lumina_Flash_PV.webm" type="video/webm" />
|
| 19 |
+
Your browser does not support the video tag.
|
| 20 |
+
</video>
|
| 21 |
|
| 22 |
+
# Introduction
|
| 23 |
|
| 24 |
+
**Neta Lumina** is a high‑quality anime‑style image‑generation model developed by Neta.art Lab.
|
| 25 |
+
Building on the open‑source **Lumina‑Image‑2.0** released by the Alpha‑VLLM team at Shanghai AI Laboratory, we fine‑tuned the model with a vast corpus of high‑quality anime images and multilingual tag data. The preliminary result is a compelling model with powerful comprehension and interpretation abilities (thanks to Gemma text encoder), ideal for illustration, posters, storyboards, character design, and more.
|
| 26 |
|
| 27 |
+
## Key Features
|
| 28 |
|
| 29 |
+
- Optimized for diverse creative scenarios such as Furry, Guofeng (traditional‑Chinese aesthetics), pets, etc.
|
| 30 |
+
- Wide coverage of characters and styles, from popular to niche concepts. (Still support danbooru tags!)
|
| 31 |
+
- Accurate natural‑language understanding with excellent adherence to complex prompts.
|
| 32 |
+
- Native multilingual support, with Chinese, English, and Japanese recommended first.
|
| 33 |
|
| 34 |
+
## Model Versions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
+
For models in alpha tests, requst access at https://huggingface.co/neta-art/NetaLumina_Alpha if you are interested. We will keep updating.
|
| 37 |
|
| 38 |
+
### neta-lumina-v1.0
|
| 39 |
|
| 40 |
+
- **Official Release**: overall best performance
|
|
|
|
|
|
|
| 41 |
|
|
|
|
| 42 |
|
| 43 |
+
### neta-lumina-beta-0624-raw (archived)
|
| 44 |
|
| 45 |
+
- **Primary Goal**: General knowledge and anime‑style optimization
|
| 46 |
+
- **Data Set**: >13 million anime‑style images
|
| 47 |
+
- **>46,000** A100 Hours
|
| 48 |
+
- Higher upper limit, suitable for pro users. Check [**Neta Lumina Prompt Book**](https://nieta-art.feishu.cn/wiki/RY3GwpT59icIQlkWXEfcCqIMnQd) for better results.
|
| 49 |
|
| 50 |
+
### neta-lumina-beta-0624-aes-experimental (archived)
|
| 51 |
|
| 52 |
+
- First beta release candidate
|
| 53 |
+
- **Primary Goal**: Enhanced aesthetics, pose accuracy, and scene detail
|
| 54 |
+
- **Data Set**: Hundreds of thousands of handpicked high‑quality anime images (fine‑tuned on an older version of raw model)
|
| 55 |
+
- User-friendly, suitable for most people.
|
| 56 |
+
<br>
|
| 57 |
|
| 58 |
+
# How to Use
|
| 59 |
|
| 60 |
+
[Try it at Hugging Face playground](https://huggingface.co/spaces/neta-art/NetaLumina_T2I_Playground)
|
| 61 |
|
| 62 |
+
## Or use it with diffusers:
|
| 63 |
+
```python
|
| 64 |
+
import torch
|
| 65 |
+
from diffusers import Lumina2Pipeline
|
| 66 |
|
| 67 |
+
pipe = Lumina2Pipeline.from_pretrained("VirtualAddressExtension/Neta-Lumina-v1.0-diffusers", torch_dtype=torch.bfloat16)
|
| 68 |
+
pipe.enable_model_cpu_offload() #save some VRAM by offloading the model to CPU. Remove this if you have enough GPU power
|
| 69 |
|
| 70 |
+
prompt = "You are an assistant designed to generate anime images based on textual prompts. <Prompt Start> neta, @quasarcake, 1girl, solo, 1girl,solo,bangs,black hair,purple eyes,pink hair,purple hair,multicolored hair,virtual youtuber,hair bun,streaked hair,double bun, school uniform, white shirt, pleated skirt, gentle smile, looking at viewer, sitting, upper body, close-up, soft lighting, depth of field, cherry blossom background, warm lighting, best quality"
|
| 71 |
+
image = pipe(
|
| 72 |
+
prompt,
|
| 73 |
+
height=1024,
|
| 74 |
+
width=1024,
|
| 75 |
+
guidance_scale=4.0,
|
| 76 |
+
num_inference_steps=50,
|
| 77 |
+
cfg_trunc_ratio=0.25,
|
| 78 |
+
cfg_normalization=True,
|
| 79 |
+
generator=torch.Generator("cpu").manual_seed(0)
|
| 80 |
+
).images[0]
|
| 81 |
+
image.save("lumina_demo.png")
|
| 82 |
+
```
|
| 83 |
|
| 84 |
+
# Prompt Book
|
| 85 |
|
| 86 |
+
Detailed prompt guidelines: [**Neta Lumina Prompt Book**](https://neta.art/blog/neta_lumina_prompt_book/)
|
| 87 |
+
<br>
|
| 88 |
|
| 89 |
+
# Community
|
| 90 |
|
| 91 |
+
- Discord: https://discord.com/invite/TTTGccjbEa
|
| 92 |
+
- QQ group: 1039442542
|
| 93 |
+
<br>
|
| 94 |
|
| 95 |
+
# Roadmap
|
| 96 |
|
| 97 |
+
## Model
|
| 98 |
|
| 99 |
+
- Continous base‑model training to raise reasoning capability.
|
| 100 |
+
- Aesthetic‑dataset iteration to improve anatomy, background richness, and overall appealness.
|
| 101 |
+
- Smarter, more versatile tagging tools to lower the creative barrier.
|
| 102 |
|
| 103 |
+
## Ecosystem
|
| 104 |
|
| 105 |
+
- LoRA training tutorials and components
|
| 106 |
+
- Experienced users may already fine‑tune via Lumina‑Image‑2.0’s open code.
|
| 107 |
+
- Development of advanced control / style‑consistency features (e.g., [Omini Control](https://arxiv.org/pdf/2411.15098)). [**Call for Collaboration!**](https://discord.com/invite/TTTGccjbEa)
|
| 108 |
+
<br>
|
| 109 |
|
| 110 |
+
# License & Disclaimer
|
| 111 |
|
| 112 |
+
- Neta Lumina is released under [**Apache License 2.0**](https://www.apache.org/licenses/LICENSE-2.0)
|
| 113 |
+
<br>
|
| 114 |
|
| 115 |
+
# Participants & Contributors
|
| 116 |
|
| 117 |
+
- Special thanks to the **Alpha‑VLLM** team for open‑sourcing **Lumina‑Image‑2.0**
|
| 118 |
+
- **Model development**: **Neta.art Lab (Civitai)**
|
| 119 |
+
- Core Trainer: **li_li** [Civitai](https://civitai.com/user/li_li) ・ [Hugging Face](https://huggingface.co/heziiiii)
|
| 120 |
+
<br>
|
| 121 |
+
- **Partners**
|
| 122 |
+
- **nebulae**: [Civitai](https://civitai.com/user/kitarz) ・ [Hugging Face](https://huggingface.co/NebulaeWis)
|
| 123 |
+
- **生姜**: [Hugging Face](https://huggingface.co/ssj0021)
|
| 124 |
+
- **孙一**
|
| 125 |
+
- [**narugo1992**](https://github.com/narugo1992) & [**deepghs**](https://huggingface.co/deepghs): open datasets, processing tools, and models
|
| 126 |
+
- [**Naifu**](https://github.com/Mikubill/naifu) trainer at [Mikubill](https://github.com/Mikubill)
|
| 127 |
+
<br>
|
| 128 |
|
| 129 |
+
# Community Contributors
|
| 130 |
|
| 131 |
+
- **Evaluators & developers**: [二小姐](https://huggingface.co/Second222), [spawner](https://github.com/spawner1145), [Rnglg2](https://civitai.com/user/Rnglg2)
|
| 132 |
+
- **Other contributors**: [沉迷摸鱼](https://www.pixiv.net/users/22433944), [poi](https://x.com/poi______1), AshenWitch, [十分无奈](https://www.pixiv.net/users/15750592), [GHOSTLX](https://civitai.com/user/ghostlxh), [wenaka](https://civitai.com/user/Wenaka_), [iiiiii](https://civitai.com/user/Blueberries_i), [年糕特工队](https://x.com/gaonian2331), [恩匹希](https://civitai.com/user/NPCde), 奶冻, [mumu](https://civitai.com/user/mumu520), [yizyin](https://civitai.com/user/yizyin), smile, Yang, 古神, 灵之药, [LyloGummy](https://civitai.com/user/LyloGummy), 雪时
|
| 133 |
+
<br>
|
| 134 |
|
| 135 |
+
# Appendix & Resources
|
| 136 |
|
| 137 |
+
- **TeaCache**: https://github.com/spawner1145/CUI-Lumina2-TeaCache
|
| 138 |
+
- **Advanced samplers & TeaCache guide (by spawner)**: https://docs.qq.com/doc/DZEFKb1ZrZVZiUmxw?nlc=1
|
| 139 |
+
- **Neta Lumina ComfyUI Manual (in Chinese)**: https://docs.qq.com/doc/DZEVQZFdtaERPdXVh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|