ts2vec
ts2vec copied to clipboard
A dont understad part about random cropping in code?
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]
@linytsysu @yuezhihan
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