Giter Site home page Giter Site logo

fengdai000 / neural-collage Goto Github PK

View Code? Open in Web Editor NEW

This project forked from quolc/neural-collage

0.0 1.0 0.0 22.5 MB

Collaging on Internal Representations: An Intuitive Approach for Semantic Transfiguration

License: MIT License

Python 4.70% CSS 0.21% JavaScript 2.35% HTML 0.33% Jupyter Notebook 92.39% Shell 0.02%

neural-collage's Introduction

Neural Collage

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.

neural-collage's People

Contributors

quolc avatar takerum avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.