class_docstr: Remap byte values in [0, 255] to new values in [0, 255] using a permutation.
class_docstr_tok: ["Remap","byte","values","in","[","0",",","255","]","to","new","values","in","[","0",",","255","]","using","a","permutation","."]
code: def __init__(self, opts: argparse.Namespace, *args, **kwargs) -> None:
      super().__init__(opts=opts, *args, **kwargs)
  
      g = torch.Generator()
      g.manual_seed(2147483647)
      self.mask = torch.randperm(256, generator=g)
  
imports: import argparse
  import io
  from typing import Dict, Union
  import numpy
  import torch
  from PIL import Image
  from data.transforms import TRANSFORMATIONS_REGISTRY, BaseTransformation
label_desc: Use image node_id 1 to create a new BytePermutation object from inherited base classes: BaseTransformation with example: obj = BytePermutation(opts)