Skip to content

Commit

Permalink
doc: Add doc about deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
xavier-owkin committed Jan 4, 2024
1 parent c2673d3 commit ea063af
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ def main(
tissue_percent=60,
)

# syntax with pretrained=True is now deprecated
# https://pytorch.org/vision/stable/models.html#initializing-pre-trained-models
resnet_weights = models.ResNet50_Weights.IMAGENET1K_V1
net = models.resnet50(weights=resnet_weights)
net.fc = Identity()
Expand Down

0 comments on commit ea063af

Please sign in to comment.