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
started training on my own dataset. Faced a size mismatch error while concatenating in the function save_image. The cloth parse png image is given 2 additional channels as it has 1 channel in the start in format (batchsize,1,256,192) => (batchsize,3,256,192)
But it does not shift the channel to the end as required by the pytorch models. Hence concatenation error occures when there is a size mismatch, example concat([batchsize,256,192,3],[batchsize,3,256,192])
I did add a permute statement by myself but the error should not have occured in the first place.
started training on my own dataset. Faced a size mismatch error while concatenating in the function save_image. The cloth parse png image is given 2 additional channels as it has 1 channel in the start in format (batchsize,1,256,192) => (batchsize,3,256,192)
But it does not shift the channel to the end as required by the pytorch models. Hence concatenation error occures when there is a size mismatch, example concat([batchsize,256,192,3],[batchsize,3,256,192])
I did add a permute statement by myself but the error should not have occured in the first place.
Code sample:
all parsing_vis and mask can not use tensor type
def save_img(images, path):
img = []
assert len(images) > 0
The text was updated successfully, but these errors were encountered: