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

a quesion #81

Open
NilakshanKunananthaseelan opened this issue Dec 29, 2018 · 1 comment
Open

a quesion #81

NilakshanKunananthaseelan opened this issue Dec 29, 2018 · 1 comment

Comments

@NilakshanKunananthaseelan
Copy link

  1. Y = valY[:num_val_batch * cfg.batch_size].reshape((-1, 1))

what is the use of this line in main.py?
2.Can we use the code for RGB image dataset?
3.What is the use of channel parameter in CapsNet function?

@AnushaMehta
Copy link

@NilakshanKunananthaseelan Not very sure about your first answer, but I guess I can answer you the other two.
Ans. 2 : Yes, we can use RGB image dataset by changing the load_data() function for respective RGB dataset.
Ans. 3 : Mostly, The channel parameter defines the image type whether the training images are grayscale or RGB. For grayscale image, it set to 1 and for RGB, it set to 3.
I am a newbie to capsule network so I may wrong. Regards.

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