https://github.com/spensercai/sd-webui-deoldify
DeOldify for Stable Diffusion WebUI:This is an extension for StableDiffusion's AUTOMATIC1111 web-ui that allows colorize of old photos and old video. It is based on deoldify.
https://github.com/spensercai/sd-webui-deoldify
colorization colorize deoldify sd-webui stable-diffusion stable-diffusion-webui stable-diffusion-webui-plugin webui
Last synced: 6 months ago
JSON representation
DeOldify for Stable Diffusion WebUI:This is an extension for StableDiffusion's AUTOMATIC1111 web-ui that allows colorize of old photos and old video. It is based on deoldify.
- Host: GitHub
- URL: https://github.com/spensercai/sd-webui-deoldify
- Owner: SpenserCai
- License: agpl-3.0
- Created: 2023-07-28T02:55:38.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-19T13:16:30.000Z (about 1 year ago)
- Last Synced: 2025-03-27T01:46:55.247Z (6 months ago)
- Topics: colorization, colorize, deoldify, sd-webui, stable-diffusion, stable-diffusion-webui, stable-diffusion-webui-plugin, webui
- Language: Python
- Homepage:
- Size: 25 MB
- Stars: 681
- Watchers: 8
- Forks: 36
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DeOldify for Stable Diffusion WebUI
This is an extension for StableDiffusion's [AUTOMATIC1111 web-ui](https://github.com/AUTOMATIC1111/stable-diffusion-webui) that allows colorize of old photos and old video. It is based on [deoldify](https://github.com/jantic/DeOldify).

## News
### - 2023-08-12:The DeoldifyBot is open source, you can deploy it yourself.
### - 2023-08-11:The DeoldifyBot is onlined.You can colorize old photo in [Discord](https://discord.gg/rfU5FQATtv).
### - 2023-08-07:Support video colorization.
### - 2023-08-05:Support install from Extensions list.
### - 2023-08-04:sd-webui-deoldify released.## Compatibility
### OS
| OS | Compatibility | Remark |
| :----: | :----: | :----: |
| Windows 11 | ✅ | Thank for [@w-e-w](https://github.com/w-e-w) test |
| Linux | ✅ | |### Pytorch
| Version | Compatibility | Remark |
| :----: | :----: | :----: |
| <=1.13.1+cu117 | ✅ | |
| 2.1.0.dev20230711+rocm5.5 | ✅ | Thanks for [@fgtm2023](https://github.com/fgtm2023) test |
| 2.0.1+cu118 | ✅ | Thank for [@w-e-w](https://github.com/w-e-w) test |### Other
If you have tested other systems or Pytorch during use, please submit a PR and attach a screenshot of the successful operation. Thank you## Installation
In web-ui, go to the "Extensions" tab and use this URL https://github.com/SpenserCai/sd-webui-deoldify in the "install from URL" tab.2023-08-05:Support install from Extensions list!!!
If your network is not good, you can download the extension from [](https://huggingface.co/spensercai/DeOldify)
## Usage
1. In web-ui, go to the "Extra" tab and select "DeOldify" checkbox.2. Upload the old photo you want to colorize.
## Application Scenario
Combining Upscale, GFPGAN, and Denoldify for old photo restoration effects| Before | After |
| :----: | :----: |
||
|
## Video Colorization
### Usage
```bash
sudo apt install ffmpeg
```In "DeOldify" tab, upload the video you want to colorize,set "Render Factor" and click "Run".
## DeOldifyBot
### Usage
#### 1.Add [Discord](https://discord.gg/rfU5FQATtv) Server.

#### 2.Build your own DeOldifyBot
```bash
# Instal golang
# https://golang.org/doc/install# Enter bot directory
cd bot
# Create release directory
mkdir release
# Build
bash build.sh
# create config.json
cp ./config.example ./release/config.json
# Edit config.json
# Set your discord bot token
# Set your sd-webui address# Run
release/DeOldifyBot
```## TODO
- [x] Support video colorization
- [x] Improve video processing speed
- [ ] Support repair options
- [ ] Support for simultaneous generation of images with different Render Factor values and Artistic on/off like “X/Y/Z Script” [#2](https://github.com/SpenserCai/sd-webui-deoldify/issues/2)
- [x] Support need not to add `--disable-safe-unpickle` at startup [#5](https://github.com/SpenserCai/sd-webui-deoldify/issues/5)