{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## Computer Vision Learner" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "[`vision.learner`](/vision.learner.html#vision.learner) is the module that defines the [`cnn_learner`](/vision.learner.html#cnn_learner) method, to easily get a model suitable for transfer learning." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [], "source": [ "from fastai.gen_doc.nbdoc import *\n", "from fastai.vision import *\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Transfer learning" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Transfer learning is a technique where you use a model trained on a very large dataset (usually [ImageNet](http://image-net.org/) in computer vision) and then adapt it to your own dataset. The idea is that it has learned to recognize many features on all of this data, and that you will benefit from this knowledge, especially if your dataset is small, compared to starting from a randomly initialized model. It has been proved in [this article](https://arxiv.org/abs/1805.08974) on a wide range of tasks that transfer learning nearly always give better results.\n", "\n", "In practice, you need to change the last part of your model to be adapted to your own number of classes. Most convolutional models end with a few linear layers (a part will call head). The last convolutional layer will have analyzed features in the image that went through the model, and the job of the head is to convert those in predictions for each of our classes. In transfer learning we will keep all the convolutional layers (called the body or the backbone of the model) with their weights pretrained on ImageNet but will define a new head initialized randomly.\n", "\n", "Then we will train the model we obtain in two phases: first we freeze the body weights and only train the head (to convert those analyzed features into predictions for our own data), then we unfreeze the layers of the backbone (gradually if necessary) and fine-tune the whole model (possibly using differential learning rates).\n", "\n", "The [`cnn_learner`](/vision.learner.html#cnn_learner) factory method helps you to automatically get a pretrained model from a given architecture with a custom head that is suitable for your data." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "

cnn_learner[source][test]

\n", "\n", "> cnn_learner(**`data`**:[`DataBunch`](/basic_data.html#DataBunch), **`base_arch`**:`Callable`, **`cut`**:`Union`\\[`int`, `Callable`\\]=***`None`***, **`pretrained`**:`bool`=***`True`***, **`lin_ftrs`**:`Optional`\\[`Collection`\\[`int`\\]\\]=***`None`***, **`ps`**:`Floats`=***`0.5`***, **`custom_head`**:`Optional`\\[[`Module`](https://pytorch.org/docs/stable/nn.html#torch.nn.Module)\\]=***`None`***, **`split_on`**:`Union`\\[`Callable`, `Collection`\\[`ModuleList`\\], `NoneType`\\]=***`None`***, **`bn_final`**:`bool`=***`False`***, **`init`**=***`'kaiming_normal_'`***, **`concat_pool`**:`bool`=***`True`***, **\\*\\*`kwargs`**:`Any`) → [`Learner`](/basic_train.html#Learner)\n", "\n", "
×

No tests found for cnn_learner. To contribute a test please refer to this guide and this discussion.

\n", "\n", "Build convnet style learner. " ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "show_doc(cnn_learner)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This method creates a [`Learner`](/basic_train.html#Learner) object from the [`data`](/vision.data.html#vision.data) object and model inferred from it with the backbone given in `arch`. Specifically, it will cut the model defined by `arch` (randomly initialized if `pretrained` is False) at the last convolutional layer by default (or as defined in `cut`, see below) and add:\n", "- an [`AdaptiveConcatPool2d`](/layers.html#AdaptiveConcatPool2d) layer,\n", "- a [`Flatten`](/layers.html#Flatten) layer,\n", "- blocks of \\[[`nn.BatchNorm1d`](https://pytorch.org/docs/stable/nn.html#torch.nn.BatchNorm1d), [`nn.Dropout`](https://pytorch.org/docs/stable/nn.html#torch.nn.Dropout), [`nn.Linear`](https://pytorch.org/docs/stable/nn.html#torch.nn.Linear), [`nn.ReLU`](https://pytorch.org/docs/stable/nn.html#torch.nn.ReLU)\\] layers.\n", "\n", "The blocks are defined by the `lin_ftrs` and `ps` arguments. Specifically, the first block will have a number of inputs inferred from the backbone `arch` and the last one will have a number of outputs equal to `data.c` (which contains the number of classes of the data) and the intermediate blocks have a number of inputs/outputs determined by `lin_frts` (of course a block has a number of inputs equal to the number of outputs of the previous block). The default is to have an intermediate hidden size of 512 (which makes two blocks `model_activation` -> 512 -> `n_classes`). If you pass a float then the final dropout layer will have the value `ps`, and the remaining will be `ps/2`. If you pass a list then the values are used for dropout probabilities directly.\n", "\n", "Note that the very last block doesn't have a [`nn.ReLU`](https://pytorch.org/docs/stable/nn.html#torch.nn.ReLU) activation, to allow you to use any final activation you want (generally included in the loss function in pytorch). Also, the backbone will be frozen if you choose `pretrained=True` (so only the head will train if you call [`fit`](/basic_train.html#fit)) so that you can immediately start phase one of training as described above.\n", "\n", "Alternatively, you can define your own `custom_head` to put on top of the backbone. If you want to specify where to split `arch` you should so in the argument `cut` which can either be the index of a specific layer (the result will not include that layer) or a function that, when passed the model, will return the backbone you want.\n", "\n", "The final model obtained by stacking the backbone and the head (custom or defined as we saw) is then separated in groups for gradual unfreezing or differential learning rates. You can specify how to split the backbone in groups with the optional argument `split_on` (should be a function that returns those groups when given the backbone). \n", "\n", "The `kwargs` will be passed on to [`Learner`](/basic_train.html#Learner), so you can put here anything that [`Learner`](/basic_train.html#Learner) will accept ([`metrics`](/metrics.html#metrics), `loss_func`, `opt_func`...)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "path = untar_data(URLs.MNIST_SAMPLE)\n", "data = ImageDataBunch.from_folder(path)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
epochtrain_lossvalid_lossaccuracytime
00.1328990.0693540.97890100:06
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "learner = cnn_learner(data, models.resnet18, metrics=[accuracy])\n", "learner.fit_one_cycle(1,1e-3)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "learner.save('one_epoch')" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "

unet_learner[source][test]

\n", "\n", "> unet_learner(**`data`**:[`DataBunch`](/basic_data.html#DataBunch), **`arch`**:`Callable`, **`pretrained`**:`bool`=***`True`***, **`blur_final`**:`bool`=***`True`***, **`norm_type`**:`Optional`\\[[`NormType`](/layers.html#NormType)\\]=***`'NormType'`***, **`split_on`**:`Union`\\[`Callable`, `Collection`\\[`ModuleList`\\], `NoneType`\\]=***`None`***, **`blur`**:`bool`=***`False`***, **`self_attention`**:`bool`=***`False`***, **`y_range`**:`OptRange`=***`None`***, **`last_cross`**:`bool`=***`True`***, **`bottle`**:`bool`=***`False`***, **`cut`**:`Union`\\[`int`, `Callable`\\]=***`None`***, **\\*\\*`learn_kwargs`**:`Any`) → [`Learner`](/basic_train.html#Learner)\n", "\n", "
×

No tests found for unet_learner. To contribute a test please refer to this guide and this discussion.

\n", "\n", "Build Unet learner from `data` and `arch`. " ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "show_doc(unet_learner)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This time the model will be a [`DynamicUnet`](/vision.models.unet.html#DynamicUnet) with an encoder based on `arch` (maybe `pretrained`) that is cut depending on `split_on`. `blur_final`, `norm_type`, `blur`, `self_attention`, `y_range`, `last_cross` and `bottle` are passed to unet constructor, the `kwargs` are passed to the initialization of the [`Learner`](/basic_train.html#Learner)." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "
Warning: The models created with this function won't work with pytorch `nn.DataParallel`, you have to use distributed training instead!
" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "jekyll_warn(\"The models created with this function won't work with pytorch `nn.DataParallel`, you have to use distributed training instead!\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Get predictions" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Once you've actually trained your model, you may want to use it on a single image. This is done by using the following method." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "

predict[source][test]

\n", "\n", "> predict(**`item`**:[`ItemBase`](/core.html#ItemBase), **`return_x`**:`bool`=***`False`***, **`batch_first`**:`bool`=***`True`***, **`with_dropout`**:`bool`=***`False`***, **\\*\\*`kwargs`**)\n", "\n", "
×

Tests found for predict:

  • pytest -sv tests/test_vision_train.py::test_models_meta [source]
  • pytest -sv tests/test_vision_train.py::test_preds [source]

To run tests please refer to this guide.

\n", "\n", "Return predicted class, label and probabilities for `item`. " ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "show_doc(Learner.predict)" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "(Category 3, tensor(0), tensor([0.6472, 0.3528]))" ] }, "execution_count": null, "metadata": {}, "output_type": "execute_result" } ], "source": [ "img = learner.data.train_ds[0][0]\n", "learner.predict(img)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Here the predict class for our image is '3', which corresponds to a label of 0. The probabilities the model found for each class are 99.65% and 0.35% respectively, so its confidence is pretty high.\n", "\n", "Note that if you want to load your trained model and use it on inference mode with the previous function, you should export your [`Learner`](/basic_train.html#Learner)." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "learner.export()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "And then you can load it with an empty data object that has the same internal state like this:" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "learn = load_learner(path)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Customize your model" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "You can customize [`cnn_learner`](/vision.learner.html#cnn_learner) for your own model's default `cut` and `split_on` functions by adding them to the dictionary `model_meta`. The key should be your model and the value should be a dictionary with the keys `cut` and `split_on` (see the source code for examples). The constructor will call [`create_body`](/vision.learner.html#create_body) and [`create_head`](/vision.learner.html#create_head) for you based on `cut`; you can also call them yourself, which is particularly useful for testing." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "

create_body[source][test]

\n", "\n", "> create_body(**`arch`**:`Callable`, **`pretrained`**:`bool`=***`True`***, **`cut`**:`Union`\\[`int`, `Callable`, `NoneType`\\]=***`None`***)\n", "\n", "
×

Tests found for create_body:

  • pytest -sv tests/test_vision_learner.py::test_create_body [source]

To run tests please refer to this guide.

\n", "\n", "Cut off the body of a typically pretrained `model` at `cut` (int) or cut the model as specified by `cut(model)` (function). " ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "show_doc(create_body)" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "

create_head[source][test]

\n", "\n", "> create_head(**`nf`**:`int`, **`nc`**:`int`, **`lin_ftrs`**:`Optional`\\[`Collection`\\[`int`\\]\\]=***`None`***, **`ps`**:`Floats`=***`0.5`***, **`concat_pool`**:`bool`=***`True`***, **`bn_final`**:`bool`=***`False`***)\n", "\n", "
×

Tests found for create_head:

  • pytest -sv tests/test_vision_learner.py::test_create_head [source]

To run tests please refer to this guide.

" ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "show_doc(create_head, doc_string=False)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Model head that takes `nf` features, runs through `lin_ftrs`, and ends with `nc` classes. `ps` is the probability of the dropouts, as documented above in [`cnn_learner`](/vision.learner.html#cnn_learner)." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "

class ClassificationInterpretation[source][test]

\n", "\n", "> ClassificationInterpretation(**`learn`**:[`Learner`](/basic_train.html#Learner), **`preds`**:`Tensor`, **`y_true`**:`Tensor`, **`losses`**:`Tensor`, **`ds_type`**:[`DatasetType`](/basic_data.html#DatasetType)=***``***) :: [`Interpretation`](/train.html#Interpretation)\n", "\n", "
×

Tests found for ClassificationInterpretation:

  • pytest -sv tests/test_vision_train.py::test_ClassificationInterpretation [source]

Some other tests where ClassificationInterpretation is used:

  • pytest -sv tests/test_tabular_train.py::test_confusion_tabular [source]
  • pytest -sv tests/test_vision_train.py::test_interp [source]

To run tests please refer to this guide.

\n", "\n", "Interpretation methods for classification models. " ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "show_doc(ClassificationInterpretation, title_level=3)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This provides a confusion matrix and visualization of the most incorrect images. Pass in your [`data`](/vision.data.html#vision.data), calculated `preds`, actual `y`, and your `losses`, and then use the methods below to view the model interpretation results. For instance:" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [ "learn = cnn_learner(data, models.resnet18)\n", "learn.fit(1)\n", "preds,y,losses = learn.get_preds(with_loss=True)\n", "interp = ClassificationInterpretation(learn, preds, y, losses)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The following factory method gives a more convenient way to create an instance of this class:" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "

from_learner[source][test]

\n", "\n", "> from_learner(**`learn`**:[`Learner`](/basic_train.html#Learner), **`ds_type`**:[`DatasetType`](/basic_data.html#DatasetType)=***``***, **`tta`**=***`False`***)\n", "\n", "
×

Tests found for _cl_int_from_learner:

  • pytest -sv tests/test_vision_train.py::test_interp [source]

To run tests please refer to this guide.

\n", "\n", "Create an instance of [`ClassificationInterpretation`](/train.html#ClassificationInterpretation). `tta` indicates if we want to use Test Time Augmentation. " ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "show_doc(ClassificationInterpretation.from_learner, full_name='from_learner')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "You can also use a shortcut `learn.interpret()` to do the same." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "

interpret[source][test]

\n", "\n", "> interpret(**`learn`**:[`Learner`](/basic_train.html#Learner), **`ds_type`**:[`DatasetType`](/basic_data.html#DatasetType)=***``***, **`tta`**=***`False`***)\n", "\n", "
×

Tests found for _learner_interpret:

  • pytest -sv tests/test_vision_train.py::test_interp_shortcut [source]

To run tests please refer to this guide.

\n", "\n", "Create a [`ClassificationInterpretation`](/train.html#ClassificationInterpretation) object from `learner` on `ds_type` with `tta`. " ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "show_doc(Learner.interpret, full_name='interpret')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Note that this shortcut is a [`Learner`](/basic_train.html#Learner) object/class method that can be called as: `learn.interpret()`." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "

plot_top_losses[source][test]

\n", "\n", "> plot_top_losses(**`k`**, **`largest`**=***`True`***, **`figsize`**=***`(12, 12)`***, **`heatmap`**:`bool`=***`None`***, **`heatmap_thresh`**:`int`=***`16`***, **`return_fig`**:`bool`=***`None`***) → `Optional`\\[`Figure`\\]\n", "\n", "
×

No tests found for _cl_int_plot_top_losses. To contribute a test please refer to this guide and this discussion.

\n", "\n", "Show images in `top_losses` along with their prediction, actual, loss, and probability of actual class. " ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "show_doc(ClassificationInterpretation.plot_top_losses, full_name='plot_top_losses')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "The `k` items are arranged as a square, so it will look best if `k` is a square number (4, 9, 16, etc). The title of each image shows: prediction, actual, loss, probability of actual class. When `heatmap` is True (by default it's True) , Grad-CAM heatmaps (http://openaccess.thecvf.com/content_ICCV_2017/papers/Selvaraju_Grad-CAM_Visual_Explanations_ICCV_2017_paper.pdf) are overlaid on each image. `plot_top_losses` should be used with single-labeled datasets. See `plot_multi_top_losses` below for a version capable of handling multi-labeled datasets." ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAaUAAAHOCAYAAAA44RY3AAA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9q3b3/G20SUTHFxcbab0KW4p0RERN5gUiIiIm8wKRERkTc4puSh0aNHZ7sJeWncuHEqLisrS1AysGPHDmeKiVuOKB01NbUq3rRpk4qnTp2q4quvvlrF7vPVFi9erOJcf44X95SIiMgbTEpEROQNJiUiIvIGx5Q8UFBQqOIZM6areP36dSpubW3t9Dblo5MnT6q4sbFRxbW1NSquqtrY6W2i7seYNhWvXbtWxe6YUlGR/po+ceKEitva8uv7gHtKRETkDSYlIiLyBpMSERF5g2NKWVBe3kvFs2fPVnFFRYWKd+7c5dTA62Xao7p6d2RMlA3nzjWo+Oc/fyJLLfED95SIiMgbTEpEROQNJiUiIvIGx5SyoL6+TsXvvLM0MiYi6i64p0RERN5gUiIiIm8wKRERkTeYlIiIyBtMSkRE5A0mJSIi8gaTEhEReaOLr1Mq6N43daIUsZ9QKthP8hH3lIiIyBtiDO84TUREfuCeEhEReYNJiYiIvMGkRERE3mBSIiIibzApERGRN5iUiIjIG0xKRETkDSYlIiLyBpMSERF5g0mJiIi8waRERETeYFIiIiJvMCkREZE3mJSIiMgbTEpEROQNJiUiIvIGkxIREXmDSYmIiLzBpERERN5gUiIiIm8wKRERkTeYlIiIyBtMSkRE5I3/D01wovOIKRZ9AAAAAElFTkSuQmCC\n", "text/plain": [ "
" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "interp.plot_top_losses(9, figsize=(7,7))" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "

plot_multi_top_losses[source][test]

\n", "\n", "> plot_multi_top_losses(**`samples`**:`int`=***`3`***, **`figsize`**:`Tuple`\\[`int`, `int`\\]=***`(8, 8)`***, **`save_misclassified`**:`bool`=***`False`***)\n", "\n", "
×

No tests found for _cl_int_plot_multi_top_losses. To contribute a test please refer to this guide and this discussion.

\n", "\n", "Show images in `top_losses` along with their prediction, actual, loss, and probability of predicted class in a multilabeled dataset. " ], "text/plain": [ "" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "show_doc(ClassificationInterpretation.plot_multi_top_losses, full_name='plot_multi_top_losses')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Similar to `plot_top_losses()` but aimed at multi-labeled datasets. It plots misclassified samples sorted by their respective loss. \n", "Since you can have multiple labels for a single sample, they can easily overlap in a grid plot. So it plots just one sample per row. \n", "Note that you can pass `save_misclassified=True` (by default it's `False`). In such case, the method will return a list containing the misclassified images which you can use to debug your model and/or tune its hyperparameters. " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Undocumented Methods - Methods moved below this line will intentionally be hidden" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## New Methods - Please document or move to the undocumented section" ] } ], "metadata": { "jekyll": { "keywords": "fastai", "summary": "`Learner` support for computer vision", "title": "vision.learner" }, "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" } }, "nbformat": 4, "nbformat_minor": 2 }