Skip to content

namdvt/Focal-loss-pytorch-implementation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Project Title

An Pytorch implementation of the focal loss function which was proposed in: "Focal Loss for Dense Object Detection", https://arxiv.org/abs/1708.02002

Example

Training

import function as F

optimizer.zero_grad()
criterion = F.FocalLoss()

output = model(data)

loss = criterion(output, target)
loss.backward()
optimizer.step()

About

A pytorch implementation of focal loss

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages