An open API service indexing awesome lists of open source software.

https://github.com/himujjal/neural_style_transfer

A Tensorflow based script for transfering art style from one painting to another with implementations in Python and JavaScript
https://github.com/himujjal/neural_style_transfer

Last synced: 2 months ago
JSON representation

A Tensorflow based script for transfering art style from one painting to another with implementations in Python and JavaScript

Awesome Lists containing this project

README

        

# Neural Style Transfer in Python and JavaScript using Tensorflow
Ever wished of creating paintings like a professional. Well, Deep Learning will surely help you in that regard with the help of Neural Style Transfer

## 3rd party libraries used:
### Python:
1. Tensorflow
2. Keras
3. Numpy
4. opencv

## API:

### Javascript/TypeScript:
1. Tensorflow.JS (NodeJS + Browser)

## How to install this repo:
### Python:
1. `pip install --upgrade pip` or `python -m pip install --upgrade pip`.
2. `pip install --upgrade tensorflow keras opencv numpy jupyter`
3. `git clone https://github.com/Himujjal/neural_style_transfer`


BOOM! Its done.

### JavaScript:
1. `git clone https://github.com/Himujjal/neural_style_transfer`
2. `npm install` or `yarn install`

## How to use this repo:

### Platform Independent:
1. Put your __source image__ in the [source_image](./source_image) folder. If you have selected only one image to be processed in your program, only the first image will be used.
2. Put your __style image__ in the [style_image](./style_image) folder. Only one image will be used in this case.

### Python:
1. Open this repo's local folder in your terminal and simply run [test.py](test.py) to run the test examples.
2. For Jupyter notebook, run `jupyter notebook` and open [test.py](test.ipynb)

### JavaScript:
1. Open this repo's local folder in your terminal and simply run [test.js](test.js) to run the test examples in NodeJS.
2. To run this in browser, simply double-click [index.html](./index.html).