Run this model with HF Jobs
Run AlexWortega/AnimeDiffusion on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/AlexWortega/AnimeDiffusion. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/AlexWortega/AnimeDiffusion on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use AlexWortega/AnimeDiffusion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use AlexWortega/AnimeDiffusion with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("AlexWortega/AnimeDiffusion", 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
- Local Apps Settings
- Draw Things
- DiffusionBee
Commit ·
8654536
1
Parent(s): e29215a
Create README.md
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778---language:- entags:- Vintedois (22h) Diffusion model- text-to-imagelicense: creativeml-openrail-minference: truelibrary_name: diffusers---
<sub>pink hair guy in glasses, photograph, sporty body, cinematic lighting, clear eyes, perfect face, blush, beautiful nose, beautiful eyes, detailed eyes</sub>
# Anime Diffusion
Anime Diffusion2 is a latent text-to-image diffusion model based on Vintedois (22h) Diffusion model trained on BLIP captions for Danbou set + Demon slayer + arts from 4ch
## Model Description
## License
This model is open access and available to all, with a CreativeML OpenRAIL-M license further specifying rights and usage.The CreativeML OpenRAIL License specifies:
1. You can't use the model to deliberately produce nor share illegal or harmful outputs or content 2. The authors claims no rights on the outputs you generate, you are free to use them and are accountable for their use which must not go against the provisions set in the license3. You may re-distribute the weights and use the model commercially and/or as a service. If you do, please be aware you have to include the same use restrictions as the ones in the license and share a copy of the CreativeML OpenRAIL-M to all your users (please read the license entirely and carefully)[Please read the full license here](https://huggingface.co/spaces/CompVis/stable-diffusion-license)
## Downstream Uses
This model can be used for entertainment purposes and as a generative art assistant.
## Example Code
```pythonimport torchfrom torch import autocastfrom diffusers import StableDiffusionPipeline
pipe = StableDiffusionPipeline.from_pretrained( 'AlexWortega/AnimeDiffuion2', torch_dtype=torch.float32).to('cuda')
negative_prompt = """low-res, duplicate, poorly drawn face, ugly, undetailed face"""d = 'white girl'prompt = f"pink hair guy in glasses, photograph, sporty body, cinematic lighting, clear eyes, perfect face, blush, beautiful nose, beautiful eyes, detailed eyes" num_samples = 1
with torch.inference_mode(): images = pipe([prompt] * num_samples, negative_prompt = [negative_prompt]*num_samples, height=512, width=512, num_inference_steps=50, guidance_scale=8, ).images
images[0].save("test.png")```
## Team Member and Acknowledgements
This project would not have been possible without the incredible work by the [CompVis Researchers](https://ommer-lab.com/).
- [Alex Wortega](https://github.com/AlexWortega)<sub>alexwortega@yandex.ru</sub>
In order to reach me, here is my blog:
[![My tg channel]](https://t.me/lovedeathtransformers)README.mdAdded+78