GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - kliu513/Image-Colorization: An Image colorization algorithm using PatchGan and Convolution Block Attention Modules (CBAM)

BranchesTags
Open more actions menu

Latest commit

 

History

19 Commits
19 Commits

Folders and files

NameName
Last commit message
Last commit date
Dataset
Dataset
 
 
Evaluation
Evaluation
 
 
checkpoint
checkpoint
 
 
Evaluation.ipynb
Evaluation.ipynb
 
 
Paper.pdf
Paper.pdf
 
 
PatchGan.py
PatchGan.py
 
 
README.md
README.md
 
 
UNet_PatchGan_v4.ipynb
UNet_PatchGan_v4.ipynb
 
 
attention_cv.py
attention_cv.py
 
 
dataset.py
dataset.py
 
 
util.py
util.py
 
 

Repository files navigation

Image-Colorization

Running the Model

  1. Download Places365 to the Dataset directory.
  2. Extract places365_train_standard.txt from places365_train_standard.zip to the Dataset directory.
  3. Start training the model by running all the blocks in UNet_PatchGan_v4.ipnyb.
  4. To evaluate the model with new pictures, modify ckpt_path and img_path in the third and last blocks of Evaluate.ipnyb respectively.

To change the root directory of datasets, modify dataset.py on Line 8 and 34. Be sure to include places365_train_standard.txt in the new directory.

Things to Note

  1. The model is mainly based on PatchGan. A classifier and Convolution Block Attention Module (CBAM) are incorporated to improve the model's performance.
  2. For this model, pictures are represented in LAB color space. There are two main reasons why we utilize LAB instead of RGB: Given that the "L" channel can be used as input, the model only needs to generate and concatenate values in the "A" and "B" channels; on the other hand, it will be easier for the model to colorize images of varying size, since the rescaled "A" and "B" channels can be concatenated using the original "L" channel with no distortion in pictures.

Project Paper

About

An Image colorization algorithm using PatchGan and Convolution Block Attention Modules (CBAM)

Topics

cbamimage-colorizationpatchgan

Resources

Readme
Activity

Stars

1 star

Watchers

1 watching

Forks

1 fork
Report repository

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.