Coder Social home page Coder Social logo

smailaga / deep-fluids Goto Github PK

View Code? Open in Web Editor NEW

This project forked from byungsook/deep-fluids

0.0 0.0 0.0 1.11 MB

Deep Fluids: A Generative Network for Parameterized Fluid Simulations

Home Page: http://www.byungsoo.me/project/deep-fluids

Python 97.84% Batchfile 2.16%

deep-fluids's Introduction

Deep Fluids: A Generative Network for Parameterized Fluid Simulations

Tensorflow implementation of Deep Fluids: A Generative Network for Parameterized Fluid Simulations.

Byungsoo Kim¹, Vinicius C. Azevedo¹, Nils Thuerey², Theodore Kim³, Markus Gross¹, Barbara Solenthaler¹

¹ETH Zurich, ²Technical University of Munich, ³Pixar Animation Studios

Computer Graphics Forum (Proceedings of Eurographics 2019)

teaser

Requirements

This code is tested on Windows 10 and Ubuntu 16.04 with the following requirements:

Run the following line to install packages.

$ pip install --upgrade tensorflow==1.15 tqdm matplotlib Pillow imageio

To install mantaflow, run:

$ git clone https://bitbucket.org/mantaflow/manta.git
$ git checkout 15eaf4

and follow the instruction. Note that numpy cmake option should be set to enable support for numpy arrays. (i.e., -DNUMPY='ON')

Usage

Run a script for the dataset generation using mantaflow. For instance,

$ ..\manta\build\Release\manta.exe .\scene\smoke_pos_size.py

To train:

$ python main.py

To test:

$ python main.py --is_train=False --load_path=MODEL_DIR

Please take a closer look at run.bat for each dataset and other architectures.

Result (2D)

Reconstruction from each parameter after 100 epochs (From top to bottom: position / width / time)

param

Reconstruction of random samples after 100 epochs (Top: reconstructed, bottom: ground truth)

In each image, the top row shows velocity profiles, and the bottom row shows vorticity profiles.

random

randomgt

Result (3D)

Reconstruction from each parameter after 100 epochs. (From top to bottom: in-flow velocity / buoyancy / time)

The left image shows the middle slice of xy domain, and the right image is the middle slice view of zy domain.

In each image, the top three rows are velocity profiles, and the rest rows are vorticity profiles.

param_xy param_zy

Reconstruction of random samples after 100 epochs (Top: reconstructed (xy-zy), bottom: ground truth (xy-zy))

random_xy random_zy

random_xy_gt random_zy_gt

Result (Autoencoder)

Reconstruction (2D) of random samples after 10 epochs (Top: reconstructed, bottom: ground truth)

random_ae

random_ae_gt

Reconstruction (3D) of random samples after 10 epochs (Top: reconstructed (xy-zy), bottom: ground truth (xy-zy))

random_ae_xy random_ae_zy

random_ae_xy_gt random_ae_zy_gt

Author

Byungsoo Kim / @byungsook

deep-fluids's People

Contributors

byungsook 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.