MCPcopy Index your code
hub / github.com/SpenserCai/sd-webui-deoldify

github.com/SpenserCai/sd-webui-deoldify @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
2,063 symbols 5,250 edges 121 files 1,103 documented · 53%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

nonebot

DeOldify for Stable Diffusion WebUI

Discord Server QQ Channel

This is an extension for StableDiffusion's AUTOMATIC1111 web-ui that allows colorize of old photos and old video. It is based on deoldify.

example

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.

- 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 test
Linux

Pytorch

Version Compatibility Remark
<=1.13.1+cu117
2.1.0.dev20230711+rocm5.5 Thanks for @fgtm2023 test
2.0.1+cu118 Thank for @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 Hugging Face Model

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
before after

Video Colorization

video_demo


Usage

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 Server.

DeoldifyBot

2.Build your own DeOldifyBot

# 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
  • [x] Support need not to add --disable-safe-unpickle at startup #5

Core symbols most depended-on inside this repo

append
called by 233
fastai/layers.py
ifnone
called by 97
fastai/core.py
size
called by 83
fastai/vision/image.py
split
called by 60
fastai/basic_train.py
listify
called by 56
fastai/core.py
new
called by 30
fastai/data_block.py
is_listy
called by 26
fastai/core.py
write
called by 23
fastai/callbacks/tensorboard.py

Shape

Method 1,128
Function 650
Class 281
Struct 3
Route 1

Languages

Python99%
Go1%
C++1%

Modules by API surface

fastai/data_block.py145 symbols
fastai/vision/image.py98 symbols
fastai/core.py79 symbols
fastai/callbacks/tensorboard.py76 symbols
fastai/layers.py75 symbols
fastai/torch_core.py73 symbols
fastai/callback.py73 symbols
fastai/vision/data.py71 symbols
fastai/text/data.py71 symbols
fastai/basic_train.py65 symbols
fastai/metrics.py64 symbols
fastai/vision/gan.py55 symbols

For agents

$ claude mcp add sd-webui-deoldify \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact