ts2vec icon indicating copy to clipboard operation
ts2vec copied to clipboard

A dont understad part about random cropping in code?

Open meihuameii opened this issue 2 years ago • 2 comments

For below part ,why use crop_right substract crop_eleft instead of substracting crop_left? out1 = self._net(take_per_row(x, crop_offset + crop_eleft, crop_right - crop_eleft)) out1 = out1[:, -crop_l:]

            out2 = self._net(take_per_row(x, crop_offset + crop_left, crop_eright - crop_left))
            out2 = out2[:, :crop_l]

meihuameii avatar Mar 17 '22 05:03 meihuameii

@linytsysu @yuezhihan

meihuameii avatar Mar 17 '22 05:03 meihuameii

For below part ,why use crop_right substract crop_eleft instead of substracting crop_left? out1 = self._net(take_per_row(x, crop_offset + crop_eleft, crop_right - crop_eleft)) out1 = out1[:, -crop_l:]

            out2 = self._net(take_per_row(x, crop_offset + crop_left, crop_eright - crop_left))
            out2 = out2[:, :crop_l]

Corresponding to figure 1 in the author's article,crop_right -crop_eleft is a1~b1Red pieces,crop_eright - crop_left is a2~b2

yangchengjun avatar Apr 23 '22 16:04 yangchengjun