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

How to apply train.py for an one-channel dataset? #4

Open
LeeBC2298 opened this issue Jun 28, 2023 · 0 comments
Open

How to apply train.py for an one-channel dataset? #4

LeeBC2298 opened this issue Jun 28, 2023 · 0 comments

Comments

@LeeBC2298
Copy link

I tried to use cv2.IMREAD_COLOR to train a three-channel-input model for FMNIST dataset, and this method works well.
However, when I tried to use cv2.IMREAD_GRAY to train a one-channel-input model for FMNIST dataset, this method dosen't work.
I have already changed 'nc' from 3 to 1 for the generator, and changed 'true_grad.view(-1, 3072)' to 'true_grad.view(-1, 1024)' for the one channel model setting. What else should I do?

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

1 participant