Skip to content

Which caffe version supports ceil_mode in Pooling? #1

Closed
@quietsmile

Description

@quietsmile

Nice work!
However, I found that ceil_mode is not supported in the master version of caffe.
Is there an open-sourced caffe version that supports ceil_mode in pooing? Thanks.

Activity

shicai

shicai commented on Feb 16, 2017

@shicai
Owner

@quietsmile pls see: https://github.com/BVLC/caffe/pull/3057/files
just add several lines of code.

quietsmile

quietsmile commented on Feb 16, 2017

@quietsmile
Author

Oh, this is interesting. I mean, is it compatible with cudnn_pooling implementation? Or, just to make the output a little bit larger, even though the elements in the last row/col may still be zeros?

Thanks.

shicai

shicai commented on Feb 16, 2017

@shicai
Owner

As i know, cudnn does not support ceil mode, but you'd better check cudnn manual by yourself.
I use caffe's own pooling layer to support ceil mode.

oujieww

oujieww commented on Sep 21, 2017

@oujieww

can anyone sent me your caffe? I don't know which version of caffe should be used. I have tried to use a order version without working.But the new caffe didn't have vision_layers.hpp . I don't know what to do.please help me.

Sarah635

Sarah635 commented on Nov 15, 2017

@Sarah635

New version doesnot have vision_layers.hpp. In new version the file pooling_layer.hpp is to be modified.

JinmingZhao

JinmingZhao commented on Nov 26, 2017

@JinmingZhao

@Sarah635 I have the same problem ,how to modify on the new version?

Sarah635

Sarah635 commented on Nov 26, 2017

@Sarah635

https://github.com/BVLC/caffe/pull/3057/files

Follow this link. Add the + lines and delete the - lines.

Instead of file vision_layers.hpp,, modify the file pooling_layers.hpp. Modify these 3 files i.e. pooling_layers.hpp, pooling_layers.cpp and caffe.proto according to link above and you are done.

JinmingZhao

JinmingZhao commented on Nov 27, 2017

@JinmingZhao

@Sarah635 Thank you very much, done!

XUYUNYUN666

XUYUNYUN666 commented on Dec 21, 2018

@XUYUNYUN666

@Sarah635 Thank you very much, done!

Need I change the code of pooling layer.cu? Thank U.

keerthanss

keerthanss commented on Feb 26, 2019

@keerthanss

With the latest version of Caffe, you can also get around this by replacing "ceil_mode: false" with "round_mode: FLOOR". No editing of Caffe source code necessary. Refer BVLC/caffe#6282 .

4 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @shicai@quietsmile@lijiansong@mrgransky@keerthanss

        Issue actions

          Which caffe version supports ceil_mode in Pooling? · Issue #1 · shicai/DenseNet-Caffe