File size: 3,584 Bytes
aa9b327 fc78795 75d30a7 6a8fdba aa9b327 e36b0e9 aa9b327 75d30a7 685ab11 75d30a7 2fe9a79 6a8fdba 75d30a7 6a8fdba aa9b327 75d30a7 6a8fdba fc78795 aa9b327 fc78795 aa9b327 6a8fdba 257fe1e 6a8fdba d19ac48 6a8fdba 75d30a7 e36b0e9 75d30a7 6a8fdba 75d30a7 aa9b327 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 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 |
---
license: openrail++
language:
- en
tags:
- stable-diffusion
- sygil-diffusion
- text-to-image
- sygil-devs
- finetune
- stable-diffusion-1.5
inference: true
pinned: true
---
# About the model
-----------------
This model is a Stable Diffusion v1.5 fine-tune trained on the [Imaginary Network Expanded Dataset](https://github.com/Sygil-Dev/INE-dataset).
It is an advanced version of Stable Diffusion and can generate nearly all kinds of images like humans, reflections, cities, architecture, fantasy, concepts arts, anime, manga, digital arts, landscapes, or nature views.
This model allows the user to have total control of the generation as they can use multiple tags and namespaces to control almost everything
on the final result including image composition.
**Note that the prompt engineering techniques is a bit different from other models and Stable Diffusion,
while you can still use normal prompts like in other Stable Diffusion models in order to get the best out of this model you will need to make use of tags and namespaces.
More information about namespace will later be added.
<!---
[More about it here](promptingGuide.md)** \
-->
\
**If you find our work useful, please consider supporting us using one of the options below:**
- [OpenCollective](https://opencollective.com/sygil_dev)
**Join our Discord Server for supports and announcements**
[![Join the Discord Server](https://badgen.net/discord/members/fTtcufxyHQ?icon=discord)](https://discord.gg/fTtcufxyHQ)
# Showcase
![Showcase image](pictures/showcase-6.jpg)
## Examples
Using the [🤗's Diffusers library](https://github.com/huggingface/diffusers) to run Sygil Diffusion in a simple and efficient manner.
```bash
pip install diffusers transformers accelerate scipy safetensors
```
Running the pipeline (if you don't swap the scheduler it will run with the default DDIM, in this example we are swapping it to DPMSolverMultistepScheduler):
```python
import torch
from diffusers import StableDiffusionPipeline, DPMSolverMultistepScheduler
model_id = "Sygil/Sygil-Diffusion"
# Use the DPMSolverMultistepScheduler (DPM-Solver++) scheduler here instead
pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
pipe.scheduler = DPMSolverMultistepScheduler.from_config(pipe.scheduler.config)
pipe = pipe.to("cuda")
prompt = "a beautiful illustration of a fantasy forest"
image = pipe(prompt).images[0]
image.save("astronaut_rides_horse.png")
```
**Notes**:
- Despite not being a dependency, we highly recommend you to install [xformers](https://github.com/facebookresearch/xformers) for memory efficient attention (better performance)
- If you have low GPU RAM available, make sure to add a `pipe.enable_attention_slicing()` after sending it to `cuda` for less VRAM usage (to the cost of speed).
## Training
**Training Data**
The model was trained on the following dataset:
- [Imaginary Network Expanded Dataset](https://github.com/Sygil-Dev/INE-dataset) dataset.
**Hardware and others**
- **Hardware:** 1 x Nvidia RTX 3050 8GB GPU
- **Hours Trained:** 384 approximately.
- **Optimizer:** AdamW
- **Gradient Accumulations**: 1
- **Batch:** 1
- **Learning rate:** warmup to 1e-7 for 10,000 steps and then kept constant
- **Total Training Steps:** 800,0000
Developed by: [Sygil-Dev](https://github.com/Sygil-Dev/)
# License
This model is open access and available to all, with a CreativeML Open RAIL++-M License further specifying rights and usage. [Please read the full license here](https://huggingface.co/stabilityai/stable-diffusion-2/blob/main/LICENSE-MODEL) |