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

CNN embedding net fails for small D inputs #750

Closed
janfb opened this issue Oct 19, 2022 · 3 comments
Closed

CNN embedding net fails for small D inputs #750

janfb opened this issue Oct 19, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@janfb
Copy link
Contributor

janfb commented Oct 19, 2022

the CNN embedding net

https://github.com/mackelab/sbi/blob/a240efb67576608c2cecc7020431ca5baad386a5/sbi/neural_nets/embedding_nets.py#L46-L57

fails for input_dim < 16 and for many other combinations of input parameters.

We should test this in more detail and add some checks on the input params.
And I think we should note that this is a 1D convolutional net, and add a 2D net as well?

@janfb janfb added the bug Something isn't working label Oct 19, 2022
@coschroeder
Copy link
Contributor

it is noted that it's a 1d convolution and there is also a remark

        Remark: The implementation of the convolutional layers was not tested
        rigourously. While it works for the default configuration parameters it
        might cause shape conflicts fot badly chosen parameters.

But I agree, that this could be tested more rigorously. That's also why I wanted to fix the channel dimensions in the init and not allow them to be passed as arguments.
If we really want to go down that road, we should also add the flexibility for more layers etc. But not even sure if we can avoid all conflicts by testing the arguments, as there may be all kinds of non-working parameter combinations.

@michaeldeistler
Copy link
Contributor

I think this is fixed @janfb ?

@janfb
Copy link
Contributor Author

janfb commented Nov 9, 2022

yes, fixed 🎉

@janfb janfb closed this as completed Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants