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

Implementing cp in keras! #14

Open
miladdona opened this issue Apr 11, 2024 · 0 comments
Open

Implementing cp in keras! #14

miladdona opened this issue Apr 11, 2024 · 0 comments

Comments

@miladdona
Copy link

I want to implement your code (CP) in keras. since you replace each convolution layer with four convolution layers in sequence, I am ok with the first and last layers, but I don't understand the two middle layers specially with the groups option of convolution layer. I have implemented it in keras using groups option but I get bad results in terms of accuracy.
Do you think the groups option of convolution layer in keras and pytorch is the same?
I have checked these two docs for keras and pytorch and it seems they are the same but I don't know why I cannot get a good accuracy!

https://github.com/christianversloot/machine-learning-articles/blob/main/grouped-convolutions-with-tensorflow-2-and-keras.md
https://pytorch.org/docs/stable/generated/torch.nn.Conv2d.html

thanks

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