Hi Akcaymert!



 akcaymert:

i have b,c,h,w image and i want to b,h,w size for segmentation  without loss of information.


You can’t.  [B, C, H, W] consists of B * C * H * W numbers, while
[B, H, W] consists of B * H * W, which is fewer (assuming that C > 1).
So, unless your original [B, C, H, W] data have some substantive
redundancy that you haven’t told us about, your desired compression
will lose information.
Best.
K. Frank