All Projects → ProGamerGov → Neural Tools

ProGamerGov / Neural Tools

Tools made for usage alongside artistic style transfer projects

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Neural Tools

Neural-Tile
A better tiling script for Neural-Style
Stars: ✭ 35 (-76.67%)
Mutual labels:  transfer, style, style-transfer, neural-style, neural
Torch Models
Stars: ✭ 65 (-56.67%)
Mutual labels:  style-transfer, neural-style, neural, style
Neural-Zoom-Legacy
Infinite Zoom For Style Transfer
Stars: ✭ 14 (-90.67%)
Mutual labels:  style-transfer, neural-style, neural
Theme Ui
Build consistent, themeable React apps based on constraint-based design principles
Stars: ✭ 4,150 (+2666.67%)
Mutual labels:  style, color
neural-style-pytorch
Neural Style implementation in PyTorch! 🎨
Stars: ✭ 50 (-66.67%)
Mutual labels:  style-transfer, neural-style
Tensorflow Style Transfer
A simple, concise tensorflow implementation of style transfer (neural style)
Stars: ✭ 278 (+85.33%)
Mutual labels:  style-transfer, neural-style
terminal-style
🎨 Return your terminal message in style! Change the text style, text color and text background color from the terminal, console or shell interface with ANSI color codes. Support for Laravel and Composer.
Stars: ✭ 16 (-89.33%)
Mutual labels:  color, style
Leetheme
优雅的主题管理库- 一行代码完成多样式切换
Stars: ✭ 762 (+408%)
Mutual labels:  style, color
Neural Style Audio Tf
TensorFlow implementation for audio neural style.
Stars: ✭ 413 (+175.33%)
Mutual labels:  style-transfer, neural-style
Nord Highlightjs
An arctic, north-bluish clean and elegant highlight.js theme.
Stars: ✭ 49 (-67.33%)
Mutual labels:  style, color
Texture nets
Code for "Texture Networks: Feed-forward Synthesis of Textures and Stylized Images" paper.
Stars: ✭ 1,147 (+664.67%)
Mutual labels:  style-transfer, neural-style
Tiza
Console styling for browsers
Stars: ✭ 74 (-50.67%)
Mutual labels:  style, color
ColorPick.js
A simple and minimal jQuery color picker plugin for the modern web.
Stars: ✭ 48 (-68%)
Mutual labels:  color, style
stylizeapp
A flask website for style transfer
Stars: ✭ 34 (-77.33%)
Mutual labels:  transfer, style
Neural-Zoom
Infinite Zoom For Style Transfer
Stars: ✭ 34 (-77.33%)
Mutual labels:  neural-style, neural
Neural Style Pt
PyTorch implementation of neural style transfer algorithm
Stars: ✭ 456 (+204%)
Mutual labels:  style-transfer, neural-style
Style Transfer
A Keras Implementation of "A Neural Algorithm of Artistic Style"
Stars: ✭ 115 (-23.33%)
Mutual labels:  style-transfer, neural-style
log-utils
Basic logging utils: colors, symbols and timestamp.
Stars: ✭ 24 (-84%)
Mutual labels:  color, style
Keras-Style-Transfer
An implementation of "A Neural Algorithm of Artistic Style" in Keras
Stars: ✭ 36 (-76%)
Mutual labels:  style-transfer, neural-style
Adain Style
Arbitrary Style Transfer in Real-time with Adaptive Instance Normalization
Stars: ✭ 1,049 (+599.33%)
Mutual labels:  style-transfer, neural-style

Neural-Tools

Tools made for usage alongside artistic style transfer projects based on the Controlling Perceptual Factors in Neural Style Transfer research paper by Leon A. Gatys, Alexander S. Ecker, Matthias Bethge, Aaron Hertzmann, and Eli Shechtman.

In-depth information about how to perform Scale Control and Color Control, including the Neural-Style parameters used in the examples, can be found on the wiki. The Color Control feature is broken down into two different features known as Luminance-Only Style Transfer, and Color Matching. The Scale Control feature focuses on separating style image content/shapes, and style image textures.

Linear Color Transfer

The match_color function's code comes from the very talented Leon Gatys' code here. This script was developed to help enable Scale Control in Neural-Style, but it can be used for anything else that requires linear color transfer. Supported image formats include: jpg, jpeg, png, tiff, etc...

Scale Control examples made with Neural-Style, can be viewed here.

Dependencies:

sudo pip install scikit-image

sudo pip install imageio

sudo pip install numpy

sudo pip install scipy

Usage:

Basic usage:

python linear-color-transfer.py --target_image target.png --source_image source.png

Advanced usage:

python linear-color-transfer.py --target_image target.png --source_image source.png --output_image output.png --mode pca --eps 1e-5

Parameters:

  • --target_image: The image you are transfering color to. Ex: target.png

  • --source_image: The image you are transfering color from. Ex: source.png

  • --output_image: The name of your output image. Ex: output.png

  • --mode: The color transfer mode. Options are pca, chol, or sym.

  • --eps: Your epsilon value in scientific notation or normal notation. Ex: 1e-5 or 0.00001.

Examples:

Source Image:

Target Image:

Output Image:

See here for how to use this script for Scale Control.

Linear Color Transfer is also used for Color Matching Style Transfer:

See here on the wiki, for more details on Color Matching Style Transfer.



Luminance Transfer

This script was developed to help enable colour control in Neural-Style, also known as "Luminance Transfer". This script uses code from Leon Gatys' code here. Supported image formats include: jpg, jpeg, png, tiff, etc...

Luminance transfer/Color Control examples made with Neural-Style, can be found here.

How It Works:

Currently, all available models are trained on images with the RGB/BGR color space. An image's luminance can represented in the form of gray scale color space image, which can be converted to RGB format for Neural-Style. After the gray scale images are run through Neural-Style, re-applying the color to your output is done with the use of the LUV color space.

Basically due to pre-trained model limitations, gray scale images are used to transfer luminance, and a color space supporting luminance is used to transfer the colors back to the finished output.

Dependencies:

sudo pip install scikit-image

sudo pip install imageio

sudo pip install numpy

sudo pip install scipy

Usage:

Basic usage:

python lum-transfer.py --content_image content.png --style_image style.png

Advanced usage:

python lum-transfer.py --cp_mode lum --content_image content.png --style_image style.png --org_content content.png --output_style_image output_style.png --output_content_image output_content.png

Parameters:

The required input images and the output images, are dependent on the --cp_mode option that you choose:

  • --cp_mode: The script's mode. Options are lum, lum2, match, match_style.

Mode: lum

  • --content_image: Your content image. Ex: content.png

  • --style_image: Your style image. Ex: style.png

  • --org_content: Your original unmodified content image. Ex: original_content.png

  • --output_content_image: The name of your output content image. Ex: content_output.png

  • --output_style_image: The name of your output style image. Ex: style_output.png

Mode: match

  • --content_image: Your content image. Ex: content.png

  • --style_image: Your style image. Ex: style.png

  • --output_style_image: The name of your output style image. Ex: style_output.png

Mode: match_style

  • --content_image: Your content image. Ex: content.png

  • --style_image: Your style image. Ex: style.png

  • --output_content_image: The name of your output content image. Ex: content_output.png

Mode: lum2

  • --output_lum2: The name of your output image from Neural-Style. Ex: out.png

  • --org_content: Your original unmodified content image. Ex: original_content.png

  • --output_image: The name of your output image. Ex: output.png

Examples:

The style image is adjusted to match the content image:

After Neural-Style:

Final ouput image:


Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].