Skip to content

Commit

Permalink
Include initialize as config parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
lmanan committed Oct 12, 2023
1 parent 4b17700 commit 406a8a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cellulus/configs/model_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ class ModelConfig:
checkpoint will be used to resume training, otherwise the network
will be trained from scratch.
initialize (default: False)
If True, initialize the model weights with Kaiming Normal
"""

Expand All @@ -52,3 +55,4 @@ class ModelConfig:
]
)
checkpoint: Path = attrs.field(default=None, converter=to_path)
initialize: bool = attrs.field(default=False, validator=instance_of(bool))

0 comments on commit 406a8a2

Please sign in to comment.