Skip to content

Commit

Permalink
Update trainer class and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mrokuss committed Oct 29, 2024
1 parent b8dcb4f commit 4337c55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions nnunetv2/training/nnUNetTrainer/autoPET3_Trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ class autoPET3_Trainer(nnUNetTrainer):
def __init__(self, plans: dict, configuration: str, fold: int, dataset_json: dict, unpack_dataset: bool = True,
device: torch.device = torch.device('cuda')):
super().__init__(plans, configuration, fold, dataset_json, unpack_dataset, device)
self.num_epochs = 1500
self.initial_lr = 1e-3

@staticmethod
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Our model builds on [nnU-Net](https://github.com/MIC-DKFZ/nnUNet) with a [ResEnc
- The model is trained using [misalignment data augmentation](https://github.com/MIC-DKFZ/misalignment_DA) as well as omitting the smoothing term in the dice loss calcuation.

Check failure on line 24 in readme.md

View workflow job for this annotation

GitHub Actions / Check for spelling errors

calcuation ==> calculation
- We use a dual-headed architecture for organ and lesion segmentation which improves performance as well as speeds up convergence, especially in cases without lesions.

**You can [download the final checkpoint here](https://zenodo.org/records/13786235)!**
**You can [download the final checkpoint here](https://zenodo.org/records/13786235)!** We updated the trainer class on Oct 29, 2024. Please download again in case you had troubles with the old checkpoint.

## Getting started

Expand Down Expand Up @@ -76,7 +76,7 @@ Now you are good to go to start a training. Use the dataset with DATASET_ID_LESI
### Training
Training the model can be simply achieved by [downloading the pretrained checkpoint](https://zenodo.org/records/13753413) (Dataset619_nativemultistem) and running:
Training the model can be simply achieved by [downloading the pretrained (not the final) checkpoint](https://zenodo.org/records/13753413) (Dataset619_nativemultistem) and running:
```bash
nnUNetv2_train DATASET_ID_LESIONS 3d_fullres 0 -tr autoPET3_Trainer -p nnUNetResEncUNetLPlansMultiTalent -pretrained_weights /path/to/pretrained/weights/fold_all/checkpoint_final.pth
Expand Down

0 comments on commit 4337c55

Please sign in to comment.