Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/byungsook/neural-flow-style
Neural Style Transfer for Fluids
https://github.com/byungsook/neural-flow-style
fluid-simulations fluid-stylization liquid-simulations liquid-stylization neural-style-transfer smoke-simulations smoke-stylization
Last synced: 7 days ago
JSON representation
Neural Style Transfer for Fluids
- Host: GitHub
- URL: https://github.com/byungsook/neural-flow-style
- Owner: byungsook
- License: mit
- Created: 2019-06-26T10:09:57.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-10T08:33:35.000Z (over 4 years ago)
- Last Synced: 2024-09-05T00:03:03.097Z (4 months ago)
- Topics: fluid-simulations, fluid-stylization, liquid-simulations, liquid-stylization, neural-style-transfer, smoke-simulations, smoke-stylization
- Language: Python
- Homepage: http://www.byungsoo.me/project/lnst/index.html
- Size: 9.88 MB
- Stars: 112
- Watchers: 6
- Forks: 26
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lagrangian Neural Style Transfer for Fluids
Tensorflow implementation of [Lagrangian Neural Style Transfer for Fluids](http://www.byungsoo.me/project/lnst).
[Byungsoo Kim](http://www.byungsoo.me), [Vinicius C. Azevedo](http://graphics.ethz.ch/~vviniciu/), [Markus Gross](https://graphics.ethz.ch/people/grossm), [Barbara Solenthaler](https://graphics.ethz.ch/~sobarbar/)
[Computer Graphics Laboratory](https://cgl.ethz.ch/), ETH Zurich
![teaser](./asset/teaser.png)
(Note that [Transport-Based Neural Style Transfer for Smoke Simulations (TNST)](http://www.byungsoo.me/project/neural-flow-style) implementation is moved to `tnst` branch.)
## Requirements
This code is tested on Windows 10 with GTX 1080 (8GB) and the following requirements:
- [Python 3](https://www.python.org/)
- [TensorFlow 1.15](https://www.tensorflow.org/install/)
- [mantaflow](http://mantaflow.com)
- [SPlisHSPlash](https://github.com/InteractiveComputerGraphics/SPlisHSPlasH)
- [Partio](https://github.com/wdas/partio)Run `setup.bat` for setup. (3rd parties must be installed manually).
Also download the pre-trained [inception](https://storage.googleapis.com/download.tensorflow.org/models/inception5h.zip) and [vgg19](http://download.tensorflow.org/models/vgg_19_2016_08_28.tar.gz) networks, and unzip it in `data/model`.
## Usage
For details about parameters and examples, please take a closer look at `run.bat` and corresponding demo code, and for semantic transfer, see [this page](http://storage.googleapis.com/deepdream/visualz/tensorflow_inception/index.html) for pattern selection.
## Results (smokegun, single frame)
![single](./asset/smokegun.png)
## Results (chocolate, sequence)
![sequence](./asset/chocolate_seq.png)
## Results (dambreak2d, sequence)
![sequence](./asset/dambreak2d_seq.png)
## Author
[Byungsoo Kim](http://www.byungsoo.me) / [byungsook@github](https://github.com/byungsook)