https://github.com/replicate/scribble-diffusion
Turn your rough sketch into a refined image using AI
https://github.com/replicate/scribble-diffusion
Last synced: 9 months ago
JSON representation
Turn your rough sketch into a refined image using AI
- Host: GitHub
- URL: https://github.com/replicate/scribble-diffusion
- Owner: replicate
- License: mit
- Created: 2023-02-13T20:05:58.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-30T17:59:40.000Z (over 1 year ago)
- Last Synced: 2025-05-08T07:13:01.534Z (9 months ago)
- Language: JavaScript
- Homepage: https://scribblediffusion.com
- Size: 3.5 MB
- Stars: 2,957
- Watchers: 41
- Forks: 595
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🖍️ Scribble Diffusion
Try it out at [scribblediffusion.com](https://scribblediffusion.com)
## How it works
This app is powered by:
🚀 [Replicate](https://replicate.com/?utm_source=project&utm_campaign=scribblediffusion), a platform for running machine learning models in the cloud.
🖍️ [ControlNet](https://replicate.com/jagilley/controlnet-scribble?utm_source=project&utm_campaign=scribblediffusion), an open-source machine learning model that generates images from text and scribbles.
▲ [Vercel](https://vercel.com/), a platform for running web apps.
⚡️ Next.js [server-side API routes](pages/api), for talking to the Replicate API.
👀 Next.js React components, for the browser UI.
🍃 [Tailwind CSS](https://tailwindcss.com/), for styles.
## Development
1. Install a recent version of [Node.js](https://nodejs.org/)
1. Copy your [Replicate API token](https://replicate.com/account?utm_source=project&utm_campaign=scribblediffusion) and set it in your environment:
```
echo "REPLICATE_API_TOKEN=" > .env.local
```
1. Install dependencies and run the server:
```
npm install
npm run dev
```
1. Open [localhost:3000](http://localhost:3000) in your browser. That's it!