# Rubbrband: Analytics for Stable Diffusion

Rubbrband is a platform for analyzing Stable Diffusion generated images. Rubbrband evaluates images generated by your model at scale, so that you can trust your model in production without manually looking through the images.

## Installation

```bash
pip install rubbrband
```

## Usage

```python
import rubbrband
rubbrband.init("YOUR_API_KEY")
rubbrband.upload(image="https://example.com/image.png", prompt="Prompt used to generate image")
```

## Uploading Images to Rubbrband
1. Using a URL
```python
rubbrband.upload(image="https://example.com/image.png", prompt="Prompt used to generate image")
```
2. Using a PIL Image
```python
from PIL import Image
rubbrband.upload(image=Image.open("/path/to/image.png"), prompt="Prompt used to generate image")
```
3. Using a path
```python
rubbrband.upload(image="/path/to/image.png", prompt="Prompt used to generate image")
``` 
4. Using a context manager
```python
with open("/path/to/image.png", "rb") as f:
    rubbrband.upload(image=f, prompt="Prompt used to generate image")
```