Instructions to use Wannabeasmartguy/test2train_amine_face with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Wannabeasmartguy/test2train_amine_face with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Wannabeasmartguy/test2train_amine_face", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
|
Download README.md from Wannabeasmartguy/test2train_amine_face: direct link, hf CLI and curl.
- Browser
- Download file 2.31 kB
-
https://huggingface.co/Wannabeasmartguy/test2train_amine_face/resolve/main/README.md
- Command line
-
hf download hf://Wannabeasmartguy/test2train_amine_face/README.md
-
curl -L -o README.md https://huggingface.co/Wannabeasmartguy/test2train_amine_face/resolve/main/README.md
2.31 kB
| license: mit | |
| tags: | |
| - pytorch | |
| - diffusers | |
| - unconditional-image-generation | |
| # English Version | |
| ## Model Card for My First pre-trained model -- test2train_anime_face | |
| This model is a diffusion model for unconditional image generation of anime style 64*64 face pic. | |
| 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. | |
| 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. | |
|  | |
|  | |
| ### Usage | |
| ```python | |
| from diffusers import DDPMPipeline | |
| device = torch.device("cuda" if torch.cuda.is_available() else "cpu") | |
| pipeline = DDPMPipeline.from_pretrained('Chilli-b/test2train_amine_face').to(device) | |
| image = pipeline().images[0] | |
| image | |
| ``` | |
| --- | |
| # 中文版 | |
| ## 这是我创造的第一个预训练模型—— test2train_anime_face 的模型卡。 | |
| 该模型是一个无条件扩散模型,用于生成尺寸为 64*64 的动漫风格脸部图片。 | |
| 训练集使用的是[anime-faces](https://huggingface.co/datasets/huggan/anime-faces),这是一个包含从 www.getchu.com 上爬取的21551个动漫脸,然后使用 https://github.com/nagadomi/lbpcascade_animeface 中的动漫脸检测算法进行裁剪的数据集。 | |
| 一次生成多张容易出现鬼脸。实测每次出一张图的效果最好,不容易出现鬼脸。 | |
|  | |
|  | |
| ### 模型使用 | |
| ```python | |
| from diffusers import DDPMPipeline | |
| device = torch.device("cuda" if torch.cuda.is_available() else "cpu") | |
| pipeline = DDPMPipeline.from_pretrained('Chilli-b/test2train_amine_face').to(device) | |
| image = pipeline().images[0] | |
| image | |
| ``` | |