forked from pytorch/vision
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added tensor transforms jupyter notebook (pytorch#2730)
* [WIP] Added scriptable transforms python example * Replaced script file with jupyter notebook * Updated readme * Updates according to review + updated docstrings * Updated notebook and docstring according to the review * torch script -> torchscript
- Loading branch information
1 parent
c3f84c2
commit 4921a7b
Showing
4 changed files
with
430 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Python examples | ||
|
||
- [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/pytorch/vision/blob/master/examples/python/tensor_transforms.ipynb) | ||
[Examples of Tensor Images transformations](https://github.com/pytorch/vision/blob/master/examples/python/tensor_transforms.ipynb) | ||
|
||
Prior to v0.8.0, transforms in torchvision have traditionally been PIL-centric and presented multiple limitations due to | ||
that. Now, since v0.8.0, transforms implementations are Tensor and PIL compatible and we can achieve the following new | ||
features: | ||
- transform multi-band torch tensor images (with more than 3-4 channels) | ||
- torchscript transforms together with your model for deployment | ||
- support for GPU acceleration | ||
- batched transformation such as for videos | ||
- read and decode data directly as torch tensor with torchscript support (for PNG and JPEG image formats) |
Oops, something went wrong.