Giter Site home page Giter Site logo

sculpture-gan's Introduction

Sculpture-GAN

3D DCGAN inspired GAN trained on 32x32x32 voxelizations of Thingi10k - a corpus of 10,000 3D printable objects and sculptures - as a result, the generated sculptures are almost always 3D-printable, but usually do not have any real 'meaning', and are just abstract sorts of shapes.

I originally began this project as an attempt at generative architecture; but lack of an appropriate dataset held me back from that. Currently working with trying to get something usable from the google sketchup 3d workshop

Example abstract shape generations

3D-printed generation

1

Computer visualized generations

1 2 3

Usage

There are really only 3 files you need to use to generate your own 3D shapes.

generate_dataset.py

You need to download Thingi10k, and in line 8 of generate_dataset.py, set the variable path_to_dataset to be the path to your raw_meshes folder from your thingi10k download.

Next, just run the file with python generate_dataset.py, and it will start generating numpy arrays that contain all of the now-voxelized models in thingi10k and save them to your data/ folder.

train.py

On line 23 of train.py, point it to the desired (usually the largest) .npy file in your data/ folder by setting numpy_array_saved equal to its path.

Then, you can just run python train.py and trained network checkpoints will start to populate your network_checkpoints/ folder.

visualize.py

Point visualize.py to an array of generations in your generations folder (an array is created every 50 epochs) by setting array_to_visualize equal to its path.

This script will allow you to see the models that network has generated in 3D, with the option to save as PNG, obj, etc.

Issues / Future efforts

Right now, the main issue is the fact that it's very hard to get data for this sort of project; the only two datasets I have encountered are shapnet and thingi10k; currently; i am trying to train a conditional version of the 3d GAN with shapenet so that you can select that you want to generate a table, chair, etc, and the network will move past just generating "shapes"...

sculpture-gan's People

Contributors

robbiebarrat avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sculpture-gan's Issues

Not working, not runing

Hello... I
have problems from the first step even if I don't modified the code.
Any solutions or updates with this fixed?
Thanks in advance.
problems

Problems about the first step

When I do as you shown in the webpage,
However, when I run "python generate_dataset.py", the system shows like below:

'binvox' is not recognized as an internal or external command,
operable program or batch file.
[Errno 13] Permission denied: 'C:/Users/20185290/Desktop/Sculpture-GAN-master/Sculpture-GAN-master/raw_meshes.binvox'

May I know what causing this ?

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.