Add high-resolution fine-tuning stage (Midnight paper Section 2)#66
Open
anas-zafar wants to merge 1 commit intoMedARC-AI:mainfrom
Open
Add high-resolution fine-tuning stage (Midnight paper Section 2)#66anas-zafar wants to merge 1 commit intoMedARC-AI:mainfrom
anas-zafar wants to merge 1 commit intoMedARC-AI:mainfrom
Conversation
Implements the post-training procedure from the Midnight MICCAI 2025 paper that fine-tunes the model at 392x392 global crops for 120k optimizer steps to produce richer patch embeddings. - vitg14_reg4_highres.yaml: new config (392px crops, lr=1e-4, accum=3, 96 epochs) - run_highres.sh: launch script with checkpoint validation and resume support - train.py: add _load_from_teacher_checkpoint(), gradient accumulation inner loop, fix eval transform to use cfg.crops.global_crops_size not hardcoded 224 - ssl_meta_arch.py: forward_backward accepts accumulation_steps and divides loss before backward so each micro-batch contributes equally to gradients - config.py: LR scaling uses effective batch (micro-batch x GPUs x accum_steps) so gradient accumulation does not silently under-scale the learning rate - ssl_default_config.yaml: add gradient_accumulation_steps and pretrained_weights defaults (both backward-compatible with existing stage-1 runs)
2085d00 to
5065943
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.