An open API service indexing awesome lists of open source software.

https://github.com/xrsrke/stable-diffusion-from-scratch

Implementation of Stable Diffusion from scratch [WORK IN PROGRESS]
https://github.com/xrsrke/stable-diffusion-from-scratch

deep-learning machine-learning stable-diffusion

Last synced: 6 months ago
JSON representation

Implementation of Stable Diffusion from scratch [WORK IN PROGRESS]

Awesome Lists containing this project

README

        

Implementation of Stable Diffusion
================

------------------------------------------------------------------------

This repository contains Stable Diffusion’s implementation in PyTorch.

## Updates

This isn't actually an implementation of stable diffusion from scratch. I cancelled this project and started working on [RLHF](https://github.com/xrsrke/instructGOOSE)

## Install

``` sh
pip install -r requirements.txt
pip install -e .
```

## Usage

``` python
from PIL import Image
from foundation.stable_diffusion import StableDiffusion

prompt = "holy young female battle robot flying award winning, portrait bust symmetry faded tetrachromacycolors arctic background tim hildebrandt wayne barlowe bruce pennington donato giancola larry elmore masterpiece trending on artstation cinematic composition beautiful lighting hyper detailed!!! 8 k oil on canva"

model = StableDiffusion(n_inference_steps=30)
images = model.generate(prompt)

pil_images = [Image.fromarray(image) for image in images]
pil_images[0]
```

![image.png](index_files/figure-commonmark/b7e74575-2-image.png)

![image.png](index_files/figure-commonmark/b7e74575-1-image-2.png)

## Paper Reviews

### CLIP - Multimodal Neurons

### VAE

Variational Autoencoder (VAE) model with KL loss from the paper
Auto-Encoding Variational Bayes by Diederik P. Kingma and Max Wellin

### UNET

### Diffusion Process

## Contributing

This repository is still a work in progress.
Currently, no downloads
and no executables are provided.

I welcome many contributors who can help.

## License

Licensed under the MIT license.