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

tensorflow backend and index-based-upsampling #8

Open
opnumten opened this issue Mar 30, 2017 · 3 comments
Open

tensorflow backend and index-based-upsampling #8

opnumten opened this issue Mar 30, 2017 · 3 comments

Comments

@opnumten
Copy link

opnumten commented Mar 30, 2017

Hi, thanks for sharing the code.
I have two questions:

1 tensorflow backend. I use tensorflow back to train the model, But the predicted output is poor.
2 how to use your index-based-upsampling code? If I use tensorflow backend, how do I modify it?

Thank you.

@opnumten opnumten changed the title number of layers and index-based-upsampling tensorflow backend and index-based-upsampling Mar 30, 2017
@eclique
Copy link
Member

eclique commented Mar 31, 2017

Hi, @opnumten.
In order to implement index based upsampling with tensorflow you would need to modify tf pooling function so that it would memorize max indices, similarly you would need custom upsampling function that would do upsampling with repsect to passed indices. Then you would need to implement custom layers performing this operations.
Code in index-based-upsampling does all that for old theano version.

@opnumten
Copy link
Author

Thank you. For the 1st question, I use all the parameters you share except I use tensorflow backend, the result is : Test score: 0.661281108856
Test accuracy: 0.683624267578
I don't konw why. I don't think backend should have such huge influence
result

@PellyKoo
Copy link

PellyKoo commented May 1, 2018

@opnumten We have the same problem, the result is so bad:
Test score: 0.645711183548
Test accuracy: 0.669636964798

result

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

3 participants