{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## Dynamic U-Net" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This module builds a dynamic [U-Net](https://arxiv.org/abs/1505.04597) from any backbone pretrained on ImageNet, automatically inferring the intermediate sizes." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [], "source": [ "from fastai.gen_doc.nbdoc import *\n", "from fastai.vision.models.unet import * " ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "\n", "\n", "This is the original U-Net. The difference here is that the left part is a pretrained model." ] }, { "cell_type": "code", "execution_count": null, "metadata": { "hide_input": true }, "outputs": [ { "data": { "text/markdown": [ "
class DynamicUnet[source][test]DynamicUnet(**\\*`args`**, **\\*\\*`kwargs`**) :: [`PrePostInitMeta`](/core.html#PrePostInitMeta) :: [`SequentialEx`](/layers.html#SequentialEx)\n",
"\n",
"class UnetBlock[source][test]UnetBlock(**\\*`args`**, **\\*\\*`kwargs`**) :: [`PrePostInitMeta`](/core.html#PrePostInitMeta) :: [`Module`](/torch_core.html#Module)\n",
"\n",
"No tests found for UnetBlock. To contribute a test please refer to this guide and this discussion.
forward[source][test]forward(**`up_in`**:`Tensor`) → `Tensor`\n",
"\n",
"No tests found for forward. To contribute a test please refer to this guide and this discussion.