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
Switched Pooling #2
Comments
It is just a
I don't think so. But there should be an easier way to do this, because when I did it there was no unpooling method in Keras.
this is the custom mp function. So in this auralisation stage, all the computation is done on cpu (therefore quite slow). |
Thanks for the answer ! |
I had to make some adjustments but now it works. I have another question : is it suppose to work for both |
Ah.. really? Keras version was 0.3 or something back then, maybe that's why. I think it shouldn't matter if it's |
The function It should work with both |
Oh, I see. Sorry, I was answering while relying on what I remember and not on the code. The And yes, I assumed it's |
Hi keunwoochoi, thank for this tool it works great on your network! :)
I wonder how I can get this tool to work with a network that I will define and train myself :
get_unpooling2d(images, switches, ds=2)
takes the argument switches, I guess it's from a custom MaxPooling2D function, am I right? If not, which function did you use in your CNN and where can I find it?Is the code generic and can easily generalize to other CNN architecture? Some functions look quite specific (
load_weights()
for example, but could be easy to change)What is the structure of the file
.keras
? Is it enough if I save a model in the HDF5 format?Thank you in advance :)
PS : If you could give a concrete example on how to use it with another model it would be so great but I would understand if you don't want to reveal your custom function.
The text was updated successfully, but these errors were encountered: