You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Internally, CombineChannels uses ImageCore.colorview to do the work, which requires the data layout to be CHW. When deal with deep learning frameworks, it's often the case that we need to handle HWC/WHC layout.
Previously, CombineChannels(RGB) interpret rand(3, 4, 4) as a 4x4 RGB image and errors for rand(4, 4, 3). And SplitChannels() unconditionally interpret rand(RGB, 4, 4) as 3x4x4 numerical array.
So the idea is to let CombineChannels(RGB, 3) interpret rand(4, 4, 3) as a 4x4 RGB image, and to let SplitChannels(3) interpret rand(RGB, 4, 4) as 4x4x3 numerical array.
Edit: When I opened this issue I didn't realize that PermuteDims is also an Augmentor operation; there are two very similar names in Base permutedims and PermutedDimsArray. PermuteDims is no doubt more generic than channel_dims argument proposed here. Thus this proposal is only to make things more convenient for a very specific usage; it doesn't fill any missing functionalities.
The text was updated successfully, but these errors were encountered:
Internally,
CombineChannels
usesImageCore.colorview
to do the work, which requires the data layout to beCHW
. When deal with deep learning frameworks, it's often the case that we need to handleHWC
/WHC
layout.Previously,
CombineChannels(RGB)
interpretrand(3, 4, 4)
as a 4x4 RGB image and errors forrand(4, 4, 3)
. AndSplitChannels()
unconditionally interpretrand(RGB, 4, 4)
as 3x4x4 numerical array.So the idea is to let
CombineChannels(RGB, 3)
interpretrand(4, 4, 3)
as a 4x4 RGB image, and to letSplitChannels(3)
interpretrand(RGB, 4, 4)
as 4x4x3 numerical array.Edit: When I opened this issue I didn't realize that
PermuteDims
is also an Augmentor operation; there are two very similar names in Basepermutedims
andPermutedDimsArray
.PermuteDims
is no doubt more generic thanchannel_dims
argument proposed here. Thus this proposal is only to make things more convenient for a very specific usage; it doesn't fill any missing functionalities.The text was updated successfully, but these errors were encountered: