Skip to content
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

Saving color images #14

Open
nicesonnday opened this issue Jul 26, 2022 · 1 comment
Open

Saving color images #14

nicesonnday opened this issue Jul 26, 2022 · 1 comment

Comments

@nicesonnday
Copy link

In the 'train.py' code, the input color images are resized and transposed by (1,2,0).

Why did you transposed the original input images when you save the "data" including original images if opt.mode=='test' and opt.save_prediction==True. ?

@zhenpeiyang
Copy link
Owner

Hi @nicesonnday , if you asking about this line, the transpose is just for converting the [channel, height, width] format to [height, width, channel] format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants