-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
About Legacy 2.4 Classical optimization: smokeoverfit.py #3
Comments
Those files contain arrays of shape (batch_size, frames, y, x, 1). They should be produced after training but it looks like the file that generates them is missing. I'll look into it but I'm not sure whether I can find the script again. However, I strongly recommend you use the updated code, not marked as |
I have studied the updated code. Since I am currently reading the article "LEARNING TO CONTROL PDES |
Ah, I see. It's actually quite simple, it just uses Adam to directly optimize the forces using basically the same loss function as for the network. The loss is defined here. |
What are the parameters to be optimized in this case? is it the velocity potential? Is this trained velocity potential, i.e.hierarchical_vec_pot, a time step dependent function depending on some predefined time step as stated in target_iterations? If yes, I see that there are just 5 levels of predefined time step. Can this 5 stages velocity potential produce meaningful values to get the flow to the target observable state or shape? Why isn't it that a per time step velocity potential is utilized? Im sorry that I have so many questions. |
No worries! Yes, the optimized quantity is the velocity potential from which the velocity is derived in |
Can I get a clarification that if my understanding of the function hierarchical_vec_pot() and smokeoverfit.py is correct or not?
|
That's pretty close. The solution you get is only valid for one example. However, in this example, there is no network involved at all, the vector potentials themselves are optimized. But you're right in that you could as well have a neural network predict the potential and optimize the network paramters. The only difference would be the parametrization of the solution. |
I am trying to run smokeoverfit.py. However, I run into the problem that I cannot find the file seq_vecpot.npy. I manage to run shapegen.py but it just produce sim_00000X with Density_0000XX.npz files. I would like to know if there are data generation scripts that provide the files:
seq_vecpot.npy
seq_pred.npy
seq_real.npy
The text was updated successfully, but these errors were encountered: