Unverified Commit c6156080 authored by vfdev's avatar vfdev Committed by GitHub
Browse files

Updated notebook (#2909)

- fixed bug with Resize and size as single int
parent e8b6e3f0
......@@ -206,7 +206,7 @@
" super().__init__()\n",
" self.resnet18 = resnet18(pretrained=True).eval()\n",
" self.transforms = nn.Sequential(\n",
" T.Resize(256),\n",
" T.Resize([256, ]), # We use single int value inside a list due to torchscript type restrictions\n",
" T.CenterCrop(224),\n",
" T.ConvertImageDtype(torch.float),\n",
" T.Normalize([0.485, 0.456, 0.406], [0.229, 0.224, 0.225])\n",
......@@ -380,7 +380,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.7"
"version": "3.7.4"
}
},
"nbformat": 4,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment