Code Monkey home page Code Monkey logo

Comments (8)

zongyi-li avatar zongyi-li commented on May 26, 2024 1

a is the initial time step. u is the full 50 time steps. In this setting, we are giving the first 10 time steps to predict the next 40 time steps, so both the input and output are read from u. Sorry for the confusion.

from neuraloperator.

zongyi-li avatar zongyi-li commented on May 26, 2024

Sorry the commented code in the end is a bit outdated. (1) Yes, the normalizer is not needed. (2) please copy the test code for the validation (line 287-310) to do the testing. For this time series version, it needs an additional for-loop in time. The input is the first 10 timesteps, and for each iteration, it should predict the next time step.

from neuraloperator.

zongyi-li avatar zongyi-li commented on May 26, 2024

For your information, the dataset NavierStokes_V1e-5_N1200_T20.zip meaning viscosity v = 1e-5, which is the most challenging case. It's better to start with the V1e-3 dataset.

from neuraloperator.

soto-13 avatar soto-13 commented on May 26, 2024

Ah ok I managed to run the V1e-3 on fourier_3d.py. Is it normal though that:

train_a = reader.read_field('u')[:ntrain, ::sub, ::sub, :T_in]
train_u = reader.read_field('u')[:ntrain, ::sub, ::sub, T_in:T_in+T]

(l. 223-224, l. 227-228) i.e. I would expect read_field('a') for train_a for instance. Matlab shows that the dataset is split into the fields a, u, t hence my concern

from neuraloperator.

kaushikb258 avatar kaushikb258 commented on May 26, 2024

Hi, nice work. I am trying to simulate the NS problem with fourier_2d_time.py using ns_V1e-4_N10000_T30.mat data. I want to generate figures similar to Fig. 1b in the paper. For this do I plot the variables yy and pred (from the bottom of fourier_2d_time.py)?

Also, how to choose modes and width in fourier_2d_time.py? I use modes = 24 and width = 64. You have modes = 12 and width = 20 as default. Do these values change?

from neuraloperator.

zongyi-li avatar zongyi-li commented on May 26, 2024

Thanks. Yes, to get the test case as 1(b) you should use the code at the bottom. But I think this code for fourier_2d_time.py was outdated. You need to copy the validation code in the training period (line 287-231). Yes, you should plot variables yy and pred.

Super-resolution is easier on fourier_3d.py

from neuraloperator.

kaushikb258 avatar kaushikb258 commented on May 26, 2024

Hi, I tried both fourier_2d_time and fourier_3d on the Navier-Stokes dataset. However, the predictions are very blurred compared to the ground truth. I am trying to generate results similar to Fig. 1b in the paper. For this, can you please suggest if the default hyperparams in the code (e.g. modes, width, epochs, etc) are set for the Navier-Stokes problem or should they be set to other values. What values were used to generate Fig. 1b results? Thanks!

from neuraloperator.

zongyi-li avatar zongyi-li commented on May 26, 2024

for fourier_2d_time and the v1e-4, N10000 datatset, please use modes=12, width=32, epochs=200, with the learning rate decay by half for every 40 epochs. fourier_3d, please use modes=8, width=20 instead.

from neuraloperator.

Related Issues (20)

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.