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

Feature: Include LVAE model and training code #154

Merged
merged 116 commits into from
Jun 24, 2024
Merged

Conversation

federico-carrara
Copy link
Collaborator

Description

Added LVAE architecture and related modules to train HDN, muSplit, and denoiSplit.
Most of the code was taken from https://github.com/ashesh-0/Disentangle.

  • What: Added code implementing model and training routine for HDN, muSplit, and denoiSplit.
  • Why: It makes HDN, muSplit, and denoiSplit available on CAREamics.
  • How: Used existing implementation available at https://github.com/ashesh-0/Disentangle. Performed a structural refactoring in order to make the code closer to CAREamics style.

Changes Made

  • Added: Created a submodule for the architecture-related code (nn.Module) at src/careamics/models/lvae. Moreover, added several new modules for data loading, model training and evaluation at src/careamics/lvae_training. A notebook to evaluate trained models is available within examples directory.
  • Modified: None.
  • Removed: None.

…for readability + Moved pl.lightningmodule methods at the end of the script before moving them to another script
…different categories (training, loss, model, data)
…module in layers.py + added script for Likelihood modules
…ing attributes that are defined by the new config
…apted code for plotting comparison between ground truth and prediction and to compute associated metrics + added required helper functions in eval_utils.py and metrics.py
… input were inverted within the ger_reconstruction_loss() arguments + fixed typos in other scripts
…enting from doing inner tiling in the data module
…training time. The consequence was that training is done on grid_size sized patches.
…o another module +added callback to log learning rate in order to be able to monitor ReduceLROnPlateau
@jdeschamps jdeschamps changed the title Fc/feat/include lvae Feature: Include LVAE model and training code Jun 24, 2024
@jdeschamps jdeschamps merged commit ca55b3c into main Jun 24, 2024
15 checks passed
@jdeschamps jdeschamps deleted the fc/feat/include_lvae branch June 24, 2024 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants