← 开源
msracver

Deep-Exemplar-based-Colorization

The source code of "Deep Exemplar-based Colorization".

Model DevelopmentArchitecturePython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
507
Star
75
Fork
+0
本周
1
贡献者
创建于 2018-08-30 · 更新于 2026-10-05 · 今日第 18159 名
主要开发者
hmmlillian

msracver/Deep-Exemplar-based-Colorization 排名第 18,159,有 507 个星标。

同类别比较

msracver/Deep-Exemplar-based-Colorization 排名第 18,159,此处有 8 个同类条目;hfslyc/AdvSemiSeg 排名第 18,157。

同类别比较
名称排名指标
ynqa/wego18,146
语言:
Go
星标数:
508
分叉数:
45
简介:
Word Embeddings in Go!
AI4Finance-Foundation/FinRL_Podracer18,147
语言:
Python
星标数:
507
分叉数:
121
简介:
Cloud-native Financial Reinforcement Learning
VikParuchuri/textbook_quality18,152
语言:
Python
星标数:
507
分叉数:
45
简介:
Generate textbook-quality synthetic LLM pretraining data
hfslyc/AdvSemiSeg18,157
语言:
Python
星标数:
507
分叉数:
122
简介:
Adversarial Learning for Semi-supervised Semantic Segmentation, BMVC 2018
ErlerPhilipp/points2surf18,171
语言:
Python
星标数:
506
分叉数:
51
简介:
Learning Implicit Surfaces from Point Clouds (ECCV 2020)
XinJCheng/CSPN18,175
语言:
Python
星标数:
506
分叉数:
90
简介:
Convolutional Spatial Propagation Network
bigscience-workshop/biomedical18,178
语言:
Python
星标数:
506
分叉数:
116
简介:
Tools for curating biomedical training data for large-scale language modeling
cardwing/Codes-for-PVKD18,179
语言:
Python
星标数:
506
分叉数:
96
简介:
Point-to-Voxel Knowledge Distillation for LiDAR Semantic Segmentation (CVPR 2022)
关键参数与规格
关键参数与规格
参数值
语言Python
类别Model Development
子类别Architecture
关键词Computer vision
星标数507
分叉数75
贡献者1
创建日期2018-08-30
更新日期2026-10-05
1 天星标数0
7 天星标数0
排名18,159
上次排名17,923
排名变化-236
7 天星标排名16,505
上次 7 天星标排名16,518
7 天星标排名变化13
总星标排名19,158
上次总星标排名19,138
总星标排名变化-20
国家China
README 摘录

Deep Exemplar-based Colorization This is the implementation of paper **Deep Exemplar-based Colorization** by Mingming He*, Dongdong Chen*, Jing Liao, Pedro V. Sander and Lu Yuan in ACM Transactions on Graphics (SIGGRAPH 2018) (*indicates equal contribution). Introduction **Deep Exemplar-based Colorization** is the first deep learning approach for exemplar-based local colorization. Given a reference color image, our convolutional neural network directly maps a grayscale image to an output colorized image. The proposed network consists of two sub-networks

, **Similarity Sub-net** which computes the semantic similarities between the reference and the target, and **Colorization Sub-net** which selects, propagates and predicts the chrominances channels of the target. The input includes a grayscale target image, a color reference image and bidirectional mapping functions. We use *Deep Image Analogy* as default to generate bidirectional mapping functions. It is applicable to replace with other dense correspondence estimation algorithms. The code of the part **Color Reference Recommendation** is now released. Please refere

to Gray-Image-Retrieval for more details. For more results, please refer to our Supplementary. (Update) If you would to compile on Linux, please try this repository: thank ncianeo for solving this issue. Getting Started Prerequisites **Similarity Sub-net**: Windows (64bit) NVIDIA GPU (CUDA 8. 0 & CuDNN 5) Visual Studio 2013 **Colorization Sub-net**: Pytorch & the 3rd party Python libraries (OpenCV, scikit-learn and scikit-image) Build **Similarity Sub-net** is implemented in C++ combined with CUDA and requires compiling

in Visual Studio as follows: Build Caffe at first. Edit under to make the CUDA version in it match yours. (Optional) If you use *Deep Image Analogy*, please add under and build it. Download Models You need to download models before running a demo. Go to folder and download: Go to folder and download: (Optional) If you use *Deep Image Analogy*, please go to folder and download: Demo We prepare an example under the folder with: (1) Input data folder

including two parts: A folder with the input images (grayscale target images and color reference images) inside. A file to specify a target, a reference and a flag (1 as default) as an example in each line, e. , (2) Executable script including three commands: (Optional) A command to generate bidirectional mapping functions using *Deep Image Analogy*: (Note if you use other algorithms for bidirectional mapping functions, please generate flow files referring to the format of those by *Deep Image Analogy

* and put them to the folder . ) A command to generate similarity maps for colorization (**Similarity Subnet**): A command to do colorization with our pretrained model (**Colorization Subnet**): Run We provide pre-built executable files in folder , please try them. Tips Our test input images are resized to w x h (min(w, h)=256) considering the cost of computing bidirectional mapping functions by *Deep Image Analogy*. But we also support higher resolution input images. Citation If you find **Deep Exemplar

-based Colorization** helpful for your research, please consider citing:

常见问题

记录了多少星标和分叉?

msracver/Deep-Exemplar-based-Colorization 有 507 个星标和 75 个分叉。

仓库排名是多少?

msracver/Deep-Exemplar-based-Colorization 排名第 18,159。

记录的语言和类别是什么?

msracver/Deep-Exemplar-based-Colorization 有 507 个星标,语言为 Python,类别为 Model Development。

哪个仓库排名最接近?

msracver/Deep-Exemplar-based-Colorization 与 hfslyc/AdvSemiSeg 比较,后者排名第 18,157,有 507 个星标。

README

Deep Exemplar-based Colorization

This is the implementation of paper Deep Exemplar-based Colorization by Mingming He*, Dongdong Chen*, Jing Liao, Pedro V. Sander and Lu Yuan in ACM Transactions on Graphics (SIGGRAPH 2018) (*indicates equal contribution).

Introduction

Deep Exemplar-based Colorization is the first deep learning approach for exemplar-based local colorization. Given a reference color image, our convolutional neural network directly maps a grayscale image to an output colorized image.

The proposed network consists of two sub-networks, Similarity Sub-net which computes the semantic similarities between the reference and the target, and Colorization Sub-net which selects, propagates and predicts the chrominances channels of the target.

The input includes a grayscale target image, a color reference image and bidirectional mapping functions. We use Deep Image Analogy as default to generate bidirectional mapping functions. It is applicable to replace with other dense correspondence estimation algorithms.

The code of the part Color Reference Recommendation is now released. Please refere to Gray-Image-Retrieval for more details.

For more results, please refer to our Supplementary.

(Update) If you would to compile on Linux, please try this repository: https://github.com/ncianeo/Deep-Exemplar-based-Colorization/tree/linux-docker-cv-caffe-build, thank ncianeo for solving this issue.

License

© Microsoft, 2017. Licensed under a MIT license.

Getting Started

Prerequisites

  • Similarity Sub-net:

    • Windows (64bit)
    • NVIDIA GPU (CUDA 8.0 & CuDNN 5)
    • Visual Studio 2013
  • Colorization Sub-net:

    • Pytorch & the 3rd party Python libraries (OpenCV, scikit-learn and scikit-image)

Build

Similarity Sub-net is implemented in C++ combined with CUDA and requires compiling in Visual Studio as follows:

  • Build Caffe at first. Just follow the tutorial here.
  • Edit similarity_combo.vcxproj under similarity_subnet\windows\similarity_combo\ to make the CUDA version in it match yours.
  • Open solution Caffe and add similarity_combo.vcxproj.
  • Build project similarity_combo.
  • (Optional) If you use Deep Image Analogy, please add deep_image_analogy.vcxproj under similarity_subnet\windows\deep_image_analogy\ and build it.

Download Models

You need to download models before running a demo.

Demo

We prepare an example under the folder demo\ with:

(1) Input data folder example\ including two parts:

  • A folder input\ with the input images (grayscale target images and color reference images) inside.
  • A file pairs.txt to specify a target, a reference and a flag (1 as default) as an example in each line, e.g.,
    in1.jpg ref1.jpg 1
    in2.jpg ref2.jpg 1
    ...
    

(2) Executable script run.bat including three commands:

  • (Optional) A command to generate bidirectional mapping functions using Deep Image Analogy:

    deep_image_analogy.exe [MODEL_DIR] [INPUT_ROOT_DIR] [START_LINE_ID] [END_LINE_ID] [GPU_ID]
    e.g., exe\deep_image_analogy.exe models\deep_image_analogy\ example\ 0 2 0
    

    (Note if you use other algorithms for bidirectional mapping functions, please generate flow files referring to the format of those by Deep Image Analogy and put them to the folder example\flow\.)

  • A command to generate similarity maps for colorization (Similarity Subnet):

    similarity_combo.exe [MODEL_DIR] [INPUT_ROOT_DIR] [START_LINE_ID] [END_LINE_ID] [GPU_ID]
    e.g., exe\similarity_combo.exe models\similarity_subnet\ example\ 0 2 0
    
  • A command to do colorization with our pretrained model (Colorization Subnet):

    python test.py --short_size [SHORT_EDGE_SIZE] --test_model [MODEL_FILE] --data_root [INPUT_ROOT_DIR] --out_dir [OUTPUT_DIR] --gpu_id [GPU_ID]
    e.g., python ..\colorization_subnet\test.py --short_size 256 --test_model models\colorization_subnet\example_net.pth --data_root example\ --out_dir example\res\ --gpu_id 0
    

Run

We provide pre-built executable files in folder demo\exe\, please try them.

Tips

Our test input images are resized to w x h (min(w, h)=256) considering the cost of computing bidirectional mapping functions by Deep Image Analogy. But we also support higher resolution input images.

Citation

If you find Deep Exemplar-based Colorization helpful for your research, please consider citing:

@article{he2018deep,
  title={Deep exemplar-based colorization},
  author={He, Mingming and Chen, Dongdong and Liao, Jing and Sander, Pedro V and Yuan, Lu},
  journal={ACM Transactions on Graphics (TOG)},
  volume={37},
  number={4},
  pages={47},
  year={2018},
  publisher={ACM}
}
排名相邻
同类项目