Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/337.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/tensorflow/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 如何在Keras中实现保留最大索引的SegNet_Python_Tensorflow_Keras_Deep Learning_Semantic Segmentation - Fatal编程技术网

Python 如何在Keras中实现保留最大索引的SegNet

Python 如何在Keras中实现保留最大索引的SegNet,python,tensorflow,keras,deep-learning,semantic-segmentation,Python,Tensorflow,Keras,Deep Learning,Semantic Segmentation,我正试图在Keras(tf后端)中实现SegNet来进行语义分割 SgeNet最令人印象深刻的技巧是将最大池索引传递给上采样层。然而,我在github上发现Keras()中有许多SegNet的实现,只是使用简单的上采样(称为SegNet Basic) 我注意到它可以在Tensorflow中通过“tf.nn.max\u pool\u with_argmax”实现。所以我想知道有没有类似的方法来获取最大池索引,并将它们放回Keras的上采样中 提前谢谢。嗯,我想我已经找到了答案

我正试图在Keras(tf后端)中实现SegNet来进行语义分割

SgeNet最令人印象深刻的技巧是将最大池索引传递给上采样层。然而,我在github上发现Keras()中有许多SegNet的实现,只是使用简单的上采样(称为SegNet Basic)

我注意到它可以在Tensorflow中通过“tf.nn.max\u pool\u with_argmax”实现。所以我想知道有没有类似的方法来获取最大池索引,并将它们放回Keras的上采样中


提前谢谢。

嗯,我想我已经找到了答案