Giter Club home page Giter Club logo

deepanimation's Introduction

DeepAnimation

CS2470 Fall 2021 final project.

Download data and model weights

bash download.sh
bash download_weights.sh

Circle sampler

Given a point on the circle, we can define a circle by specifying , which is the unit vector from to circle center , and , which is the unit tangent vector that defines the sampling direction. Then we sample angles from . For a given , the corresponding point on the circle is defined as + + .

circle_sampling

This is the visualization of samples surrounding an MNIST image. We use VAE trained on MNIST to generate this gif.

MNIST

Data from other domain

We tried this image with Chinese character on the VAE model trained on MNIST dataset.

wang

The result is as follows, which means it doesn't generate well for different domains.

MNIST

We also notice that the model tends to generate 3 and 6. This is possibly because we are using the same sampling vectors as the previous example.

Environment Variable

On Linux:

export PYTHONPATH='${PYTHONPATH}:/path/to/DeepAnimation'

On Windows:

set PYTHONPATH=%PYTHONPATH%;\path\to\DeepAnimation\

On Colab:

import os
os.environ['PYTHONPATH'] += ':/path/to/DeepAnimation'

Results

t-SNE visualization

Here we plot the t-SNE visualization of frames sampled fron all 1416 gifs, each with 10 frames. tsne

image query

We used the ahash algorithm as well as the latent vector to do deep hashing. Therefore we can query hand drawings and fetch well-designed images in our dataset. With the hand drawing, the top-10 results are:

draw result

Note that the fifth result is a perfect match!

More results: more

play with your drawings

  1. cd into vaegan/experiments
  2. Modify query.py test_nearest_dataset(). frame_dir is image directory and fmt is image file name.
  3. run python query.py

deepanimation's People

Stargazers

 avatar

Watchers

 avatar  avatar

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.