Git Product home page Git Product logo

baratilab / diffusion-based-fluid-super-resolution Goto Github PK

View Code? Open in Web Editor NEW
100.0 6.0 19.0 55.41 MB

PyTorch implementation of the diffusion-based method for CFD data super-resolution proposed in the paper "A Physics-informed Diffusion Model for High-fidelity Flow Field Reconstruction".

License: MIT License

Python 99.79% Shell 0.21%
computational-fluid-simulation pytorch super-resolution conditional-data-generation

diffusion-based-fluid-super-resolution's People

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

diffusion-based-fluid-super-resolution's Issues

Wrong order of dataset scale and shift in model training

In train_ddpm/runners/diffusion_tub.py the loss is computed as

loss = loss_registry[config.model.type](model, x, t, e, b, x_offset.item(), x_scale.item()).

This calls def conditional_noise_estimation_loss(model, x0: torch.Tensor, t: torch.LongTensor, e: torch.Tensor, b: torch.Tensor, x_scale, x_offset, keepdim=False, p=0.1) in train_ddpm/functions/losses.py and thus swaps x_scale with x_offset. It would be much appreciated if the authors could double check if they used a correct version for the results in the paper or these results suffer from this mismatch. Thank you in advance.

Use only high-resolution data for training?

Hello, may I inquire whether you utilize a 256256 to 256256 mapping during the training process of the diffusion model? Is it only during the testing phase that you directly employ the model, without retraining, for the reconstruction of 3232, 6464, and sparse data?

kmflow_re1000_rs256.yml doesn't work

Hi! I started directly from step 2 and ran python main.py --config kmflow_re1000_rs256.yml --seed 1234 --sample_step 1 --t 240 --r 30 in the main directory of this repo, but got the following message:

Traceback (most recent call last):
File "main.py", line 112, in
sys.exit(main())
File "main.py", line 94, in main
args, config, logger, log_dir = parse_args_and_config()
File "main.py", line 40, in parse_args_and_config
dir_name = 'recons_{}_t{}_r{}_lam{}'.format(config.data.data_kw,
AttributeError: 'Namespace' object has no attribute 'data_kw'

Can you please provide the scripts used in your experiments in order for me to reproduce the results?

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.