MCPcopy Create free account
hub / github.com/MaureenZOU/TSAM / __init__

Method __init__

src/data_loader/transform_flow.py:73–74  ·  view source on GitHub ↗
(self, prob)

Source from the content-addressed store, hash-verified

71class GroupRandomHorizontalFlip(object):
72 """Randomly horizontally flips the given PIL.Image with a probability of 0.5"""
73 def __init__(self, prob):
74 self.prob = prob
75
76 def flip_flow(self, flow):
77 # flow: [H, W, 2]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected