Sergei Belousov

Results 76 comments of Sergei Belousov

@alexandoikon13 what is values of per-class AP by mAP = 0.0123? Maybe detector works too bad for some classes ...

So, library works correct for more than one class at my side. If you have reproducer with some errors related to multiclass mAP, please provide it.

Hi, It's works for me with latest version of PyTorch. Which version of PyTorch do you use? Best regards, BeS

This code works fine for me: ``` class Loss: def __init__(self): self.criterion = nn.NLLLoss(reduce=False) self.mpl = mpl.MaxPoolingLoss(ratio=0.3, p=2.0, reduce=True) def __call__(self, pred, gt): loss = self.criterion(pred, gt) loss = self.mpl(loss)...

You can try to visualize loss before and after mpl and check that it works correct. ``` class Loss: def __init__(self): self.criterion = nn.NLLLoss(reduce=False) self.mpl = mpl.MaxPoolingLoss(ratio=0.3, p=2.0, reduce=False) def...

Hi, Can you provide small reproducer for this bug?

I think that you should write custom API of compute_weights function for keras/tf.

@ne1114 sorry for the late response. You can use sample code straight forward for more than one classes using class_id fields in preds/gt

Hi, what do you mean 'C++ implementation'? There are C implementation of compute_weights function, it can be found here: https://github.com/BelBES/mpl.pytorch/blob/master/mpl/src/lib_mpl.cpp

I'm not sure what do you mean: would you like clean c++ API without pytorch? For example using numpy API for compute_weight function? It's good idea, if you'll implement it...