-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the output images' format should be changed from CHW to HWC #10
Comments
Due to the problem above, when testing masks' output, the results of flow are totally black. Besides, the colormap of hot needs to be defined in |
okay. this is due to version changes in torchvision. Can you send a pull request for the fix? Thanks so much. |
I'm getting rid of some features in old versions of pytorch . so maybe a few days later~ |
Okay. Thank you so much :) |
Do you know how to define the colormap of hot in |
hot can be found here: https://matplotlib.org/3.1.1/gallery/color/colormap_reference.html |
I have the same problem with you. Do you solve the problem correctly and how to modify the code in 'test_mask.py' and 'utils.py'? viz3_im = Image.fromarray(viz3.astype('uint8')) Thank you (^_^) @anuragranj @ChenjieWang |
I wonder how to solve the black problem. Thanks a lot~ |
Tensors in pytorch are formatted in CHW(BCHW) by default, so if you wanna output the results of depth,flow and mask, you should change them into HWC format.
such as:
test_flow.py line 180
this will raise TypeError("Cannot handle this data type")
you should transpose/permute the format into HWC like this below:
The text was updated successfully, but these errors were encountered: