Giter Site home page Giter Site logo

magenta-img-styling-wrapper's Introduction

magenta-img-styling-wrapper

a simple node wrapper for running magenta image stylisation scripts

Setup

This is based on magenta , so first follow the Installation there.

This is just running the Arbitrary Image Stylisation and follow the setup there for downloading models etc.

Then try running the python scripts ‘‘‘arbitraryimage_stylization_with_weights
--checkpoint=/path/to/arbitrary_style_transfer/model.ckpt
--output_dir=/path/to/output_dir
--style_images_paths=images/style_images/
.jpg
--contentimages_paths=images/content_images/.jpg
--image_size=256
--content_square_crop=False
--style_image_size=256
--style_square_crop=False
--logtostderr‘‘‘

These node scripts just run the python scripts for you more easily.

img-weighted.js

will run one style on one content image in weights from 0 to 1

img-to-styles.js

Will style one content image with all style images in a selected folder

img-sketch-js

lets you choose draw a style image and applies this to a content image, the image is then monitored for changes so you can keep editing and see the changes in applied style.

Styling

Important factor I have learnt so far is that the size and resolution of style picture and content picture really matter. If the result is not great, crop out only one part of your style image or reduce the resolution / size. same thing counts for the content image.

magenta-img-styling-wrapper's People

Contributors

twonday avatar britnell avatar

Watchers

James Cloos avatar  avatar

Forkers

lcsouzamenezes

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.