(relative, wildcard)
| 97 | |
| 98 | |
| 99 | def MakeTallFunc(relative, wildcard): |
| 100 | def func(image): |
| 101 | if relative: |
| 102 | return np.array([-1 if wildcard else 2, 0.5, 1]).astype(np.float32) |
| 103 | else: |
| 104 | h, w, c = image.shape |
| 105 | return np.array([-1 if wildcard else 2 * h, w / 2, c]).astype(np.int32) |
| 106 | |
| 107 | return func |
| 108 | |
| 109 | |
| 110 | class ReshapeWithArgInput(Pipeline): |