Skip to content

Commit 0ce46b2

Browse files
authored
Update README.md
1 parent 28a5985 commit 0ce46b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ It is essentially an enhancement to cross-entropy loss and is useful for classif
2424
This repo supports importing modules through `torch.hub`. `FocalLoss` can be easily imported into your code via, for example:
2525
```python3
2626
focal_loss = torch.hub.load(
27-
repo_or_dir='adeelh/pytorch-multi-class-focal-loss',
27+
'adeelh/pytorch-multi-class-focal-loss',
2828
model='FocalLoss',
2929
alpha=torch.tensor([.75, .25]),
3030
gamma=2,
@@ -37,7 +37,7 @@ loss = focal_loss(x, y)
3737
Or:
3838
```python3
3939
focal_loss = torch.hub.load(
40-
repo_or_dir='adeelh/pytorch-multi-class-focal-loss',
40+
'adeelh/pytorch-multi-class-focal-loss',
4141
model='focal_loss',
4242
alpha=[.75, .25],
4343
gamma=2,

0 commit comments

Comments
 (0)