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
""" | |
Affine transforms implemented on torch tensors, and | |
only requiring one interpolation | |
Included: | |
- Affine() | |
- AffineCompose() | |
- Rotation() | |
- Translation() | |
- Shear() |
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
""" | |
Custom datasets from both in-memory and out-of-memory data | |
""" | |
import torch.utils.data as data | |
from PIL import Image | |
import os | |
import os.path |