Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MrinalJain17 committed Nov 30, 2020
1 parent 920f6c0 commit 54562d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Executing the following code will download, extract, and split the dataset.
### Base Requirements

1. Python (3.7)
2. [pynrrd](https://github.com/mhe/pynrrd) - For loading MICCAI data in `.nrrd` format
2. [pynrrd](https://github.com/mhe/pynrrd) (0.4) - For loading MICCAI data in `.nrrd` format
3. Tqdm - For displaying progress bars
4. PyTorch (1.7)
5. Torchvision (0.8)
Expand Down
9 changes: 3 additions & 6 deletions capstone/training/base_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(
use_res_units: bool = False,
downsample: bool = False,
lr: float = 1e-3,
loss_fx: list = ["CrossEntropy"],
loss_fx: list = ["Focal", "Dice"],
exclude_missing: bool = False,
**kwargs,
) -> None:
Expand Down Expand Up @@ -57,9 +57,6 @@ def __init__(
)
self.dice_score = DiceMetricWrapper()

if isinstance(self.logger, WandbLogger):
self.logger.watch(self)

@property
def _n_classes(self):
return len(miccai.STRUCTURES) + 1 # Additional background
Expand Down Expand Up @@ -175,7 +172,7 @@ def add_model_specific_args(parent_parser):
parser.add_argument(
"--use_res_units",
action="store_true",
default=True,
default=False,
help="For using residual units in UNet.",
)
parser.add_argument(
Expand All @@ -197,7 +194,7 @@ def add_model_specific_args(parent_parser):
parser.add_argument(
"--exclude_missing",
action="store_true",
default=True,
default=False,
help="Exclude missing annotations from loss computation (as described in AnatomyNet).",
)
parser.add_argument(
Expand Down

0 comments on commit 54562d6

Please sign in to comment.