Git Product home page Git Product logo

sketchrnn_tf2's Introduction

SketchRNN Implementation In Tensorflow 2

This repo contains a simple implementation of the SketchRNN model with Tensorflow 2, following the best practice as much as possible.

Setup

Prerequisite

  • pyenv
  • pipenv

Installation

After cloning the repo, run the following commands to setup

pipenv install --dev --skip-lock
pipenv shell

Usage

Training

See the colab notebook for an example train on the rabbit dataset.

Results

Here are some results from a model trained on the rabbit dataset.

random samples

Interpolation

pca

See complete examples in the usage.ipynb.

References

sketchrnn_tf2's People

Contributors

stwind avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sketchrnn_tf2's Issues

Negative loss

Hello, first of all I wanted to thank your for your awesome work. Then, I had a question about the training loss. After several epochs, the reconstruction loss becomes negative. Is it OK to have negative reconstruction loss?
thanks.

Plot with a gap and flipped in both axes

I propose this modification to avoid gap at the start of the path and unnecessary flipping on both axes.

def make_mpl_path(strokes):
    strokes = np.row_stack(([0, 0, 0], strokes))
    vertices = strokes[:, :-1].cumsum(axis=0, dtype=np.float32) 
    vertices[:,1] = vertices[:,1] * -1
<rest of the code>

Thank you for great work!
Best regards
Jacek

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.