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

CPU implementation of smooth_l1_loss #7

Open
wants to merge 15 commits into
base: fast-rcnn
Choose a base branch
from

Conversation

saiprabhakar
Copy link

No description provided.

Austriker and others added 14 commits July 11, 2016 14:51
This commit is a port from the following [fork](https://github.com/rbgirshick/caffe-fast-rcnn/tree/0dcd397b29507b8314e252e850518c5695efbb83)

It adds :
 - smooth l1 loss layer
 - roi pooling layer
 - dropout scaling at test time (needed for MSRA-trained ZF network)

LICENSE :
Faster R-CNN

The MIT License (MIT)

Copyright (c) 2015 Microsoft Corporation

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Added tests for ROI Pooling Layer

Author: Ronghang Hu
Update test_smooth_l1_loss_layer.cpp
@saiprabhakar
Copy link
Author

saiprabhakar commented Nov 13, 2016

@Austriker I implemented the forward and backward by keeping the gpu version as reference. I verified it by manually checking the loss. I am not sure what the test error is (I am new to caffe).

It says the estimated gradient is 0. I think the problem could be with the datatype or something trivial in test_smooth_l1_loss. Can you help me on this.

@Austriker
Copy link
Owner

@saiprabhakar Have you managed to solved your issue ? I didn't have time to have a look.

@saiprabhakar
Copy link
Author

saiprabhakar commented Nov 17, 2016

@Austriker No I didnt have time to look at it yet either. I pretty sure the problem is with int to float conversion or something like that in test script.

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

Successfully merging this pull request may close these issues.

2 participants