keras-segnet icon indicating copy to clipboard operation
keras-segnet copied to clipboard

tensorflow backend and index-based-upsampling

Open opnumten opened this issue 7 years ago • 3 comments

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 avatar Mar 30 '17 20:03 opnumten

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.

eclique avatar Mar 31 '17 12:03 eclique

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

opnumten avatar Mar 31 '17 18:03 opnumten

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

result

PellyKoo avatar May 01 '18 08:05 PellyKoo