MCPcopy Create free account
hub / github.com/drinkingcoder/FlowFormer-Official / __init__

Method __init__

core/utils/flow_transforms.py:42–50  ·  view source on GitHub ↗
(self, size, order=1)

Source from the content-addressed store, hash-verified

40 """
41
42 def __init__(self, size, order=1):
43 self.ratio = size
44 self.order = order
45 if order==0:
46 self.code=cv2.INTER_NEAREST
47 elif order==1:
48 self.code=cv2.INTER_LINEAR
49 elif order==2:
50 self.code=cv2.INTER_CUBIC
51
52 def __call__(self, inputs, target):
53 if self.ratio==1:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected