GithubHelp home page GithubHelp logo

yipengqin / texture-synthesis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mkeid/texture-synthesis

1.0 1.0 0.0 1.24 MB

TensorFlow implementation of Texture-Synthesis Using Convolutional Neural Networks. High-level statistical structures of an image are used to new images with similar characteristics.

License: MIT License

Python 100.00%

texture-synthesis's Introduction

Texture-Synthesis implemented in TensorFlow

This is a TensorFlow implementation of Texture Synthesis Using Convolutional Neural Networks using total variation denoising as a regularizer. A pretrained VGG network was used. It is provided here by machrisaa on GitHub. The VGG implementation was customized to accomodate the implementation requirements and is of the 19-layer variety.

Using this implementation, it is possible to emulate and achieve the same synthesized results as achieved in the original paper.

The purpose of this repository is to port the texture-synthesizing algorithm to TensorFlow.

Results

Input Synthesized Sample 1 Synthesized Sample 2

Prerequisites

Usage

To synthesize a new texture sample, run:

python synthesize.py path/to/input/image --output path/to/output/image

Files

  • synthesize.py

    The main script where all the magic happens.

  • custom_vgg19.py

    A modified implementation of the VGG 19 network. This particular customization changes the default pooling of max pooling to average pooling, which allows more effective gradient flow.

  • vgg19.npy

    The weights used by the VGG network. This file is not in this repository due to its size. You must download it and place in the working directory. The program will complain and ask for you to download it with a supplied link if it does not find it.

  • utils.py

    Auxiliary routines for parsing images into numpy arrays used in the implementation.

texture-synthesis's People

Contributors

mkeid avatar

Stargazers

Yipeng Qin avatar

Watchers

Yipeng Qin 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.