Coder Social home page Coder Social logo

sketch-rnn-experiments's Introduction

A playground for experiments with the Quick Draw dataset and Sketch-RNN. Sorry about the mess.

get_perplexities, the function in the iPython notebook for calculating the loss per sketch in the dataset relies on a one-line local modification I made to Magenta to make it possible to grab the pre-aggregated loss of a batch. I added the following line after the call to get_lossfunc in sketch_rnn/model.py: self.lossfunc = lossfunc.

If you don't want to bother building Magenta from source, you can use _get_perplexities with a model having hps.batch_size = 1, but it's an order of magnitude slower.

To run the notebook code, you'll need at least one pre-trained Sketch-RNN model, saved locally to models/ (see sketch_rnn_train.download_pretrained_models), and at least one slice of Quick Draw data as an npz file saved locally to data/. Links here. I used flamingo/owl models and datasets, plus a few datasets for unrelated categories.

sketch-rnn-experiments's People

Contributors

colinmorris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jdc08161063

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.