huynt654 / ColorizeNet

Let us control diffusion models for colorization!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ColorizeNet

This model is a ControlNet based on SD-v2.1, trained for image colorization from black and white images.

Model Details

Model Description

ColorizeNet is an image colorization model based on ControlNet, trained using the pre-trained Stable Diffusion model version 2.1 proposed by Stability AI.

Usage

Training Data

The model has been trained on COCO, using all the images in the dataset and converting them to grayscale to use them to condition the ControlNet. To train the model, you also need a JSON file specifying the input prompt and the source and target images. The file used for training is reported in data/colorization/training/prompts.json. Prompts were obtained by randomly choosing one among similar prompts for each image pair.

Run the model with Gradio

Run the gradio_colorization.py and load your image via the interface. The results have been generated without using additional text prompts.

Results

image image image image image

Additional Resources

For more information on ControlNet, please refer to the original repository

About

Let us control diffusion models for colorization!

License:Apache License 2.0


Languages

Language:Python 100.0%Language:Shell 0.0%