Chilli boy commited on
Commit ·
07c1b8f
1
Parent(s): 8750d7c
Update README.md
Browse files
README.md
CHANGED
|
@@ -13,15 +13,19 @@ tags:
|
|
| 13 |
This model is a diffusion model for unconditional image generation of anime style 64*64 face pic.
|
| 14 |
The training set uses [anime-faces](https://huggingface.co/datasets/huggan/anime-faces). This is a dataset consisting of 21551 anime faces scraped from www.getchu.com, which are then cropped using the anime face detection algorithm in https://github.com/nagadomi/lbpcascade_animeface.
|
| 15 |
|
|
|
|
|
|
|
| 16 |
### Usage
|
| 17 |
|
| 18 |
```python
|
| 19 |
from diffusers import DDPMPipeline
|
| 20 |
|
| 21 |
-
|
|
|
|
| 22 |
image = pipeline().images[0]
|
| 23 |
image
|
| 24 |
```
|
|
|
|
| 25 |
---
|
| 26 |
|
| 27 |
# 中文版
|
|
@@ -31,12 +35,15 @@ image
|
|
| 31 |
该模型是一个无条件扩散模型,用于生成尺寸为 64*64 的动漫风格脸部图片。
|
| 32 |
训练集使用的是[anime-faces](https://huggingface.co/datasets/huggan/anime-faces),这是一个包含从 www.getchu.com 上爬取的21551个动漫脸,然后使用 https://github.com/nagadomi/lbpcascade_animeface 中的动漫脸检测算法进行裁剪的数据集。
|
| 33 |
|
|
|
|
|
|
|
| 34 |
### 模型使用
|
| 35 |
|
| 36 |
```python
|
| 37 |
from diffusers import DDPMPipeline
|
| 38 |
|
| 39 |
-
|
|
|
|
| 40 |
image = pipeline().images[0]
|
| 41 |
image
|
| 42 |
```
|
|
|
|
| 13 |
This model is a diffusion model for unconditional image generation of anime style 64*64 face pic.
|
| 14 |
The training set uses [anime-faces](https://huggingface.co/datasets/huggan/anime-faces). This is a dataset consisting of 21551 anime faces scraped from www.getchu.com, which are then cropped using the anime face detection algorithm in https://github.com/nagadomi/lbpcascade_animeface.
|
| 15 |
|
| 16 |
+
Generating multiple pictures at once is prone to broken face. It has been tested that one picture at a time produces the best results and is not prone to broken faces.
|
| 17 |
+
|
| 18 |
### Usage
|
| 19 |
|
| 20 |
```python
|
| 21 |
from diffusers import DDPMPipeline
|
| 22 |
|
| 23 |
+
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 24 |
+
pipeline = DDPMPipeline.from_pretrained('Chilli-b/test2train_amine_face').to(device)
|
| 25 |
image = pipeline().images[0]
|
| 26 |
image
|
| 27 |
```
|
| 28 |
+
|
| 29 |
---
|
| 30 |
|
| 31 |
# 中文版
|
|
|
|
| 35 |
该模型是一个无条件扩散模型,用于生成尺寸为 64*64 的动漫风格脸部图片。
|
| 36 |
训练集使用的是[anime-faces](https://huggingface.co/datasets/huggan/anime-faces),这是一个包含从 www.getchu.com 上爬取的21551个动漫脸,然后使用 https://github.com/nagadomi/lbpcascade_animeface 中的动漫脸检测算法进行裁剪的数据集。
|
| 37 |
|
| 38 |
+
一次生成多张容易出现鬼脸或。实测每次出一张图的效果最好,不容易出现鬼脸。
|
| 39 |
+
|
| 40 |
### 模型使用
|
| 41 |
|
| 42 |
```python
|
| 43 |
from diffusers import DDPMPipeline
|
| 44 |
|
| 45 |
+
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 46 |
+
pipeline = DDPMPipeline.from_pretrained('Chilli-b/test2train_amine_face').to(device)
|
| 47 |
image = pipeline().images[0]
|
| 48 |
image
|
| 49 |
```
|