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

Remove redundant num_features arg from Classification model #88

Merged
merged 3 commits into from
Feb 8, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions flash/vision/classification/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,9 @@ class ImageClassifier(ClassificationTask):

def __init__(
self,
num_classes,
backbone="resnet18",
num_features: int = None,
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