https://github.com/danielesteban/diffusers
https://github.com/danielesteban/diffusers
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/danielesteban/diffusers
- Owner: danielesteban
- License: mit
- Created: 2023-03-14T21:27:28.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-19T02:22:34.000Z (over 3 years ago)
- Last Synced: 2025-08-03T00:23:39.858Z (12 months ago)
- Language: TypeScript
- Homepage: https://diffusers.gatunes.com
- Size: 222 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
> A public network of distributed diffusers workers
```bash
echo "@danielesteban:registry=https://npm.pkg.github.com" >> .npmrc
pnpm install @danielesteban/diffusers
```
```js
import Diffusers from '@danielesteban/diffusers';
// Create an application key at:
// https://diffusers.gatunes.com
const diffusers = new Diffusers(
'YourApplicationKey'
);
const input = await fetch('https://example.com/input_image.png');
const image = await input.blob();
const generated = await diffusers.diffusion(
image,
{
prompt: 'disco dancer with colorful lights',
negativePrompt: 'deformed, distorted, disfigured',
strength: '0.5',
}
);
const upscaled = await diffusers.upscale(generated);
window.open(URL.createObjectURL(upscaled));
```
### Worker
Docker compose
```yaml
services:
worker:
image: ghcr.io/danielesteban/diffusers/worker:v0.0.2
restart: always
environment:
- PIPELINES_DEPTH=True
- PIPELINES_DIFFUSION=True
- PIPELINES_UPSCALE=True
volumes:
- models:/home/worker/models
volumes:
models:
```
Windows GUI
[diffusers-worker-0.0.2.exe](https://github.com/danielesteban/diffusers/releases/download/v0.0.2/diffusers-worker-0.0.2.exe)