Skip to content
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

Adds error plot and colourbars to the animation. Start of a loss plot #112

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

cfd1
Copy link
Contributor

@cfd1 cfd1 commented Sep 24, 2023

Modulus Pull Request

Description

Aims to improve the inference code with an error plot and colourbars.
There is a start of the code to plot the loss over the rollout. Needs cleaning up and generalising.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.
  • The CHANGELOG.md is
    up to date with these changes.

Dependencies

Depends on PR #111

@cfd1
Copy link
Contributor Author

cfd1 commented Sep 24, 2023

The resolution also needs updating as the gifs are quite large now.

@cfd1
Copy link
Contributor Author

cfd1 commented Sep 25, 2023

Example of the new visualisation. The model hasn't been trained enough to give good results, but it illustrates the visualisation.
animation_u

@cfd1
Copy link
Contributor Author

cfd1 commented Sep 25, 2023

And an example of the rollout loss plot
rollout_loss

@cfd1 cfd1 changed the title Draft: Adds error plot and colourbars to the animation. Start of a loss plot Adds error plot and colourbars to the animation. Start of a loss plot Sep 25, 2023
@mnabian mnabian self-requested a review September 25, 2023 20:03
@mnabian mnabian added enhancement New feature or request 2 - In Progress Currently a work in progress labels Sep 25, 2023
@cfd1 cfd1 force-pushed the mgn/improved_inference branch from 90637b5 to fad73b2 Compare September 26, 2023 06:54
@NickGeneva NickGeneva added the external Issues/PR filed by people outside the team label Sep 26, 2023
@cfd1
Copy link
Contributor Author

cfd1 commented Sep 26, 2023

The resolution also needs updating as the gifs are quite large now.

This was fixed in the last commit

@cfd1
Copy link
Contributor Author

cfd1 commented Sep 26, 2023

The examples don’t appear to have tests, do I need to add some?
For documentation launch only has an ApI doc, is there any documentation for me to update for this change?

@cfd1 cfd1 force-pushed the mgn/improved_inference branch from fad73b2 to 12d0aa4 Compare October 3, 2023 12:25
@cfd1 cfd1 force-pushed the mgn/improved_inference branch from 12d0aa4 to d99c745 Compare October 4, 2023 18:27
@mnabian
Copy link
Collaborator

mnabian commented Oct 10, 2023

Hi @cfd1 , thanks for the PR! Is this ready for review?

@cfd1
Copy link
Contributor Author

cfd1 commented Oct 11, 2023

@mnabian yes, it's ready for a review please

@mnabian
Copy link
Collaborator

mnabian commented Oct 19, 2023

The examples don’t appear to have tests, do I need to add some? For documentation launch only has an ApI doc, is there any documentation for me to update for this change?

No you don't need to add tests for the examples. For documentation, take a look at the README file for the vortex shedding example and see if anything needs to be updated. Thanks

@@ -217,5 +297,18 @@ def animate(self, num):
frames=len(rollout.graphs) // C.frame_skip,
interval=C.frame_interval,
)
ani.save("animations/animation_" + C.viz_vars[i] + ".gif")
ani.save("animations/animation_" + C.viz_vars[i] + ".gif", dpi=50)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make the resolution a configurable variable?

@mnabian
Copy link
Collaborator

mnabian commented Oct 19, 2023

@cfd1 thanks again for the PR! It looks good to me, I just left a single comment for you about the resolution.

@mnabian
Copy link
Collaborator

mnabian commented Oct 19, 2023

/blossom-ci

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 - In Progress Currently a work in progress enhancement New feature or request external Issues/PR filed by people outside the team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants