Delete README.md
Browse files
README.md
DELETED
|
@@ -1,82 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
tags:
|
| 4 |
-
- text-to-image
|
| 5 |
-
- flux
|
| 6 |
-
- diffusers
|
| 7 |
-
- safetensors
|
| 8 |
-
pipeline_tag: text-to-image
|
| 9 |
-
library_name: diffusers
|
| 10 |
-
---
|
| 11 |
-
|
| 12 |
-
# Fitfux - Custom Flux.1 Dev Model
|
| 13 |
-
|
| 14 |
-
这是一个基于 Flux.1 Dev 的自定义模型,包含完整的 diffusers 格式组件。
|
| 15 |
-
|
| 16 |
-
## 模型信息
|
| 17 |
-
|
| 18 |
-
- **基础模型**: Flux.1 Dev
|
| 19 |
-
- **参数数量**: 11.9B
|
| 20 |
-
- **模型大小**: 31.4GB
|
| 21 |
-
- **格式**: diffusers + safetensors
|
| 22 |
-
- **精度**: bfloat16
|
| 23 |
-
|
| 24 |
-
## 模型组件
|
| 25 |
-
|
| 26 |
-
- **Transformer**: 自定义训练的 22GB 模型
|
| 27 |
-
- **VAE**: 变分自编码器 (160MB)
|
| 28 |
-
- **Text Encoder**: CLIP 文本编码器 (235MB)
|
| 29 |
-
- **Text Encoder 2**: T5 文本编码器 (8.9GB)
|
| 30 |
-
- **Tokenizers**: CLIP 和 T5 分词器
|
| 31 |
-
- **Scheduler**: Flow matching 调度器
|
| 32 |
-
|
| 33 |
-
## 使用方法
|
| 34 |
-
|
| 35 |
-
```python
|
| 36 |
-
from diffusers import FluxPipeline
|
| 37 |
-
import torch
|
| 38 |
-
|
| 39 |
-
# 加载模型
|
| 40 |
-
pipe = FluxPipeline.from_pretrained(
|
| 41 |
-
"Baileyy/Fitfux",
|
| 42 |
-
torch_dtype=torch.bfloat16,
|
| 43 |
-
device_map="auto"
|
| 44 |
-
)
|
| 45 |
-
|
| 46 |
-
# 生成图像
|
| 47 |
-
prompt = "A beautiful landscape with mountains and lakes"
|
| 48 |
-
image = pipe(
|
| 49 |
-
prompt=prompt,
|
| 50 |
-
height=1024,
|
| 51 |
-
width=1024,
|
| 52 |
-
num_inference_steps=20,
|
| 53 |
-
guidance_scale=3.5
|
| 54 |
-
).images[0]
|
| 55 |
-
|
| 56 |
-
image.save("output.png")
|
| 57 |
-
```
|
| 58 |
-
|
| 59 |
-
## 推理参数建议
|
| 60 |
-
|
| 61 |
-
### 快速生成 (4-8 步)
|
| 62 |
-
- `num_inference_steps`: 4-8
|
| 63 |
-
- `guidance_scale`: 1.0-2.0
|
| 64 |
-
|
| 65 |
-
### 高质量生成 (20-50 步)
|
| 66 |
-
- `num_inference_steps`: 20-50
|
| 67 |
-
- `guidance_scale`: 3.0-7.5
|
| 68 |
-
|
| 69 |
-
## 环境要求
|
| 70 |
-
|
| 71 |
-
- Python 3.11 (推荐)
|
| 72 |
-
- PyTorch 2.0+
|
| 73 |
-
- 16GB+ RAM
|
| 74 |
-
- 8GB+ VRAM (Apple Silicon MPS 或 NVIDIA CUDA)
|
| 75 |
-
|
| 76 |
-
## 许可证
|
| 77 |
-
|
| 78 |
-
Apache 2.0
|
| 79 |
-
|
| 80 |
-
## 致谢
|
| 81 |
-
|
| 82 |
-
基于 Black Forest Labs 的 Flux.1 模型架构。
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|