Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
vision
Commits
c6156080
Unverified
Commit
c6156080
authored
Oct 27, 2020
by
vfdev
Committed by
GitHub
Oct 27, 2020
Browse files
Updated notebook (#2909)
- fixed bug with Resize and size as single int
parent
e8b6e3f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
examples/python/tensor_transforms.ipynb
examples/python/tensor_transforms.ipynb
+2
-2
No files found.
examples/python/tensor_transforms.ipynb
View file @
c6156080
...
...
@@ -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,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment