Git Product home page Git Product logo

generate-voxel-pkmns-with-deep-learning's Introduction

Generating New 3D Voxel Pokemon Using Deep Learning

I generated new pokemons in 3D using GAN, VAE and score-based models. Check out this post to learn more

Running Experiments

Datasets

Getting the dataset containing the 3D models of pokemons is quite a pain. You have to dig into Pokemon Sword/Shield cartridges to get them, and Nintendo hasn't made the process easy for us. If you just want to try training without generating pokemon specifically, I'd recommend just using the ShapeNet dataset instead.

To get the ShapeNet dataset, you must first create an account on their site, which must be approved. Then download the dataset. The file tree should look like this:

ShapeNetCore.v2
 |-- 02691156
 |-- 02747177
 ...
 |-- 04554684
 |-- taxonomy.json

Then change the appropriate paths in preprocess_data.py and run python preprocess_data.py to transform the shapenet meshes into voxels. It will store the new files at the path specified in preprocess_data.py. The original ShapeNet is about 100 GB, and the preprocessed data is an additional 7 GB.

Dependencies
pycollada                 0.7.2
python                    3.9.7
pytorch3d                 0.6.1
pyvista                   0.33.2
scipy                     1.7.0
tensorboard               2.7.0
Trainings

Once you data is ready, adjust the parameters in the python scripts, and run them :

python train_on_basic_gan_16.py
python train_on_basic_score_32.py
python train_on_basic_vae_32.py

Check the result on tensorboard with the command tensorboard --logdir logs/tensorboard/

generate-voxel-pkmns-with-deep-learning's People

Contributors

le-greg avatar

Stargazers

JINGJUN TAO avatar Gianni Hong avatar  avatar  avatar

Watchers

 avatar

Forkers

wn1695173791

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.