Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cvqluu/Angular-Penalty-Softmax-Losses-Pytorch
/ functions
Functions
14 in github.com/cvqluu/Angular-Penalty-Softmax-Losses-Pytorch
⨍
Functions
14
◇
Types & classes
4
↓ 2 callers
Method
__init__
(self)
models.py:35
↓ 2 callers
Function
get_embeds
(model, loader)
train_fMNIST.py:93
↓ 2 callers
Function
plot
(embeds, labels, fig_path='./example.pdf')
plotting.py:7
↓ 1 callers
Function
main
()
train_fMNIST.py:15
↓ 1 callers
Function
parse_args
()
train_fMNIST.py:106
↓ 1 callers
Function
train_am
(train_loader, loss_type)
train_fMNIST.py:71
↓ 1 callers
Function
train_baseline
(train_loader)
train_fMNIST.py:49
Method
__init__
(self, num_classes=10)
models.py:8
Method
__init__
(self, num_classes=10, loss_type='arcface')
models.py:21
Method
__init__
Angular Penalty Softmax Loss Three 'loss_types' available: ['arcface', 'sphereface', 'cosface'] These losses are described i
loss_functions.py:8
Method
forward
(self, x, embed=False)
models.py:13
Method
forward
(self, x, labels=None, embed=False)
models.py:26
Method
forward
(self, x, embed=False)
models.py:61
Method
forward
input shape (N, in_features)
loss_functions.py:38