Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
add annotations to args
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushikb11 committed Feb 8, 2021
1 parent 5acc96d commit 5f2936b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flash/vision/classification/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ class ImageClassifier(ClassificationTask):

def __init__(
self,
num_classes,
backbone="resnet18",
pretrained=True,
num_classes: int,
backbone: str = "resnet18",
pretrained: bool = True,
loss_fn: Callable = F.cross_entropy,
optimizer: Type[torch.optim.Optimizer] = torch.optim.SGD,
metrics: Union[Callable, Mapping, Sequence, None] = (Accuracy()),
Expand Down

0 comments on commit 5f2936b

Please sign in to comment.