Metadata-Version: 2.1
Name: Peacasso
Version: 0.0.4a0
Summary: Create with AI models
Author-email: Victor Dibia <victor.dibia@gmail.com>
License: MIT License
        
        Copyright (c) 2022 Victor Dibia
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/victordibia/peacasso
Project-URL: Bug Tracker, https://github.com/victordibia/peacasso/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE

# Peacasso

Peacasso is an experimental UI interface that makes it easy to generate interesting images with multimodal (text, image) models (stable diffusion).

![](docs/images/screenpc.png)

## Installation

Acccess to the model weights needs a HuggingFace model account and access token. Please create an account at [huggingface.co](https://huggingface.co/), get an [access token](https://huggingface.co/settings/tokens) and agree to the model terms [here](https://huggingface.co/CompVis/stable-diffusion-v1-4). Finally, create a `HF_API_TOKEN` environment variable containing your token.

```bash
pip install peacasso
```

once installed, run the ui with the following command:

```bash
peacasso ui   # or peacasso ui --port=8080
```

Note that you will need to run this on a machine that meets the requirements for the stable diffusion model (cuda).

## Implementation Plan

- [x] Command line interface
- [x] UI interface with controls for changing the model parameters
- [ ] Enable curation of galleries
- [ ] Image inpainting
- [ ] Latent space visualization

## Acknowledgement

This work builds on the stable diffusion model and code is adapted from the HuggingFace [implementation](https://huggingface.co/blog/stable_diffusion).
