Skip to content

Unit tests + Refactoring + Small inference optimization#28

Merged
PetarStam merged 13 commits intocorr-difffrom
unit-tests
Apr 7, 2026
Merged

Unit tests + Refactoring + Small inference optimization#28
PetarStam merged 13 commits intocorr-difffrom
unit-tests

Conversation

@PetarStam
Copy link
Copy Markdown
Collaborator

  • Add unit tests for models and delete unused models
  • Refactor training script and write unit tests
  • Adapt generate.py for inference with torch compile for small performance boost
  • Bug fixes

Petar Stamenkovic added 13 commits March 19, 2026 16:00
- _backward_arg_mapper not needed anymore
- add training manager class to handle model creation, loading weights, runing validation, data preparation
- extract simple logic into train_helpers and write tests for new methods
- extend GridData with unnified to method for both numpy and torch conversion
- added tests for training_manager and main from train.py
- extracted target reshaping and flipping into training manager and generate.py (for non-real target)
- for torch compile to work at inference, numpy can't be used
@PetarStam PetarStam requested a review from marymcglo April 2, 2026 16:00
@PetarStam PetarStam merged commit 88967cd into corr-diff Apr 7, 2026
1 check passed
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.

1 participant