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

Can not run with grayscale images #46

Open
liamheng opened this issue Oct 15, 2020 · 0 comments · May be fixed by #109
Open

Can not run with grayscale images #46

liamheng opened this issue Oct 15, 2020 · 0 comments · May be fixed by #109

Comments

@liamheng
Copy link

liamheng commented Oct 15, 2020

The line 67 in unaligned_dataset.py
transform = get_transform(modified_opt)
the flag of grayscale is missing. Therefore, the code can not play with grayscale images.
I modified it with
transform = get_transform(modified_opt,grayscale=(self.opt.input_nc == 1)).
It can play with my grayscale images, now.

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