GHM_Detection icon indicating copy to clipboard operation
GHM_Detection copied to clipboard

Hi, backward

Open louielu1027 opened this issue 6 years ago • 5 comments

i'm sorry, i can't find the backward code for the ghm_loss....

louielu1027 avatar Jan 30 '19 08:01 louielu1027

No offense, but it seems that you are not familiar with Pytorch. The backward operation for this loss can be directly done by the Autograd mechanics (https://pytorch.org/docs/master/notes/autograd.html#autograd-mechanics), so there is no need to write a backward function here.

libuyu avatar Jan 30 '19 21:01 libuyu

Thanks for your reply. You are write, i have not used Pytorch before. i want to write GHM_loss in python layer for caffe. So i need the details of the forward and the backward. And, do you have plan to write the loss for caffe?

louielu1027 avatar Jan 31 '19 01:01 louielu1027

@louielu1027 backward code : https://github.com/xialuxi/GHMLoss-caffe

xialuxi avatar Feb 02 '19 09:02 xialuxi

@louielu1027 Sorry that I am just at the AAAI conference so I could not reply in time. You can just refer to xialuxi's work. @xialuxi Good job!

libuyu avatar Feb 02 '19 11:02 libuyu

@xialuxi Thanks! good job! I will try.

louielu1027 avatar Feb 13 '19 01:02 louielu1027