Skip to content
项目

关于

基于内部表征进行拼贴:一种直观的语义转化方法

设计与媒体

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Neural Collage

arXiv preprint

Chainer implementation of our novel CNN-based image editing method that allows the user to change the semantic information of an image over a user-specified region:

Collaging on Internal Representations: An Intuitive Approach for Semantic Transfiguration

Ryohei Suzuki1,2*, Masanori Koyama2, Takeru Miyato2, Taizan Yonetsuji2
1The University of Tokyo, 2Preferred Networks, Inc.,
*This work was done when the author was at Preferred Networks, Inc.
arXiv:1811.10153

Colab examples

Collage-based image editing

Image editing pipeline

Spatial class-translation

Image editing results using spatial class-translation:

Spatially-modulated image generation results:

    

Semantic transplantation

Image editing results using semantic transplantation:

Spatial class + semantic transfiguration

Left: example image editing result with spatial class-translation + semantic transplantation.
Right: image generation with spatial class (horizontal) + semantic (vertical) morphing.

    

Setup

Prerequisites

  • Python >= 3.6

Install required python libraries:

pip install -r requirements.txt

Pre-trained models

If you want to use pretrained models for the image generation, please download the model from link and set the snapshot argument to the path to the downloaded pretrained model file (.npz).

Web-based demos

Spatial class-translation

# launch server on localhost:5000
python demo_spatial_translation.py \
--config ./configs/sn_projection_dog_and_cat_256_scbn.yml \
--gen_model ./sn_projection_dog_and_cat_256/ResNetGenerator_450000.npz \
--gpu 0

Semantic transplantation

# launch server on localhost:5000
python demo_feature_blending.py \
--config ./configs/sn_projection_dog_and_cat_256_scbn.yml \
--gen_model ./sn_projection_dog_and_cat_256/ResNetGenerator_450000.npz \
--gpu 0

Advanced Features and Training

Please go to this link.

探索相关项目

加载中…