Open CaptainEven opened 3 years ago
elif mdef['type'] == 'softmax':
g = mdef['groups'] # kernel size
stride = mdef['stride']
gsoftmax= yourImpGroupedSoftMaxInLayers(groups = g)
modules = gsoftmax
note, if your softmax layer is an output layer, following yolo layer to implement.
@WongKinYiu Thank you for the answer!
@WongKinYiu Actually, my problem is i did not figure out a way to implement a Group Softmax layer(an output layer) in PyTorch.
torch.softmax
This API can not do grouping softmax, as far as i know... Do you happen to know about it?
Could you provide more information about group softmax you want to implement? Do you want to use it to replace classification part in yolo layer, or do you want to use it for classification only?
Hi, i want to train multi-label classification using YOLO backbone, do you know how to implement a grouped softmax layer?