mirror of
https://github.com/mrdbourke/pytorch-deep-learning.git
synced 2026-11-27 06:07:09 +00:00
Merge pull request #420 from mustious/main
[Typo] "03_pytorch_computer_vision.ipnb"
This commit is contained in:
2 files changed
+6
-3
No files matched your search
@@ -3316,6 +3316,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"attachments": {},
|
||||
"cell_type": "markdown",
|
||||
"id": "ab108078-6770-4cb9-ac62-a761ff159aba",
|
||||
"metadata": {},
|
||||
@@ -3330,7 +3331,7 @@
|
||||
"\n",
|
||||
"To make a confusion matrix, we'll go through three steps:\n",
|
||||
"1. Make predictions with our trained model, `model_2` (a confusion matrix compares predictions to true labels).\n",
|
||||
"2. Make a confusion matrix using [`torch.ConfusionMatrix`](https://torchmetrics.readthedocs.io/en/latest/references/modules.html?highlight=confusion#confusionmatrix).\n",
|
||||
"2. Make a confusion matrix using [`torchmetrics.ConfusionMatrix`](https://torchmetrics.readthedocs.io/en/latest/references/modules.html?highlight=confusion#confusionmatrix).\n",
|
||||
"3. Plot the confusion matrix using [`mlxtend.plotting.plot_confusion_matrix()`](http://rasbt.github.io/mlxtend/user_guide/plotting/plot_confusion_matrix/).\n",
|
||||
"\n",
|
||||
"Let's start by making predictions with our trained model."
|
||||
|
||||
@@ -428,6 +428,7 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"attachments": {},
|
||||
"cell_type": "markdown",
|
||||
"id": "cd676c4f-6f81-4bfb-a578-8f3d5cd2bd4a",
|
||||
"metadata": {},
|
||||
@@ -440,7 +441,7 @@
|
||||
"\n",
|
||||
"We'll set `batch_size=32` so our model see's mini-batches of 32 samples at a time.\n",
|
||||
"\n",
|
||||
"And we can transform our images using the transform pipeline we created above by setting `transform=manual_transform`.\n",
|
||||
"And we can transform our images using the transform pipeline we created above by setting `transform=manual_transforms`.\n",
|
||||
"\n",
|
||||
"> **Note:** I've included this manual creation of transforms in this notebook because you may come across resources that use this style. It's also important to note that because these transforms are manually created, they're also infinitely customizable. So if you wanted to included data augmentation techniques in your transforms pipeline, you could."
|
||||
]
|
||||
@@ -714,11 +715,12 @@
|
||||
]
|
||||
},
|
||||
{
|
||||
"attachments": {},
|
||||
"cell_type": "markdown",
|
||||
"id": "06f6dc93-8e39-4394-ad45-30730c40fa72",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"> **Note:** In previous versions of `torchvision`, you'd create a prertained model with code like:\n",
|
||||
"> **Note:** In previous versions of `torchvision`, you'd create a pretrained model with code like:\n",
|
||||
">\n",
|
||||
"> `model = torchvision.models.efficientnet_b0(pretrained=True).to(device)`\n",
|
||||
">\n",
|
||||
|
||||
Reference in new issue
Block a user