Skip to content
Discussion options

You must be logged in to vote

Hi @one-matrix, thank you for your interest here.

  • You could use TorchVision, a wrapper transform for PyTorch TorchVision transform based on the specified transform name and args.

    class TorchVision:
    """
    This is a wrapper transform for PyTorch TorchVision transform based on the specified transform name and args.
    As most of the TorchVision transforms only work for PIL image and PyTorch Tensor, this transform expects input
    data to be PyTorch Tensor, users can easily call `ToTensor` transform to convert a Numpy array to Tensor.
    """

  • You could also write a custom transfo…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@one-matrix
Comment options

Answer selected by one-matrix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants