Skip to content

Commit

Permalink
Update docs/tutorials/pretrained_weights.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
calebrob6 authored Dec 18, 2023
1 parent 1e19d7d commit 31709ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorials/pretrained_weights.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
"outputs": [],
"source": [
"in_chans = weights.meta[\"in_chans\"]\n",
"model = timm.create_model(\"resnet18\", in_chans=in_chans, num_classes=256)\n",
"model = timm.create_model(\"resnet18\", in_chans=in_chans, num_classes=10)\n",
"model.load_state_dict(weights.get_state_dict(progress=True), strict=False)"
]
},
Expand Down

0 comments on commit 31709ac

Please sign in to comment.