We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28a5985 commit 0ce46b2Copy full SHA for 0ce46b2
README.md
@@ -24,7 +24,7 @@ It is essentially an enhancement to cross-entropy loss and is useful for classif
24
This repo supports importing modules through `torch.hub`. `FocalLoss` can be easily imported into your code via, for example:
25
```python3
26
focal_loss = torch.hub.load(
27
- repo_or_dir='adeelh/pytorch-multi-class-focal-loss',
+ 'adeelh/pytorch-multi-class-focal-loss',
28
model='FocalLoss',
29
alpha=torch.tensor([.75, .25]),
30
gamma=2,
@@ -37,7 +37,7 @@ loss = focal_loss(x, y)
37
Or:
38
39
40
41
model='focal_loss',
42
alpha=[.75, .25],
43
0 commit comments