LN1996 commited on
Commit
25a0da8
·
1 Parent(s): 522ddae

Update loss.py

Browse files
Files changed (1) hide show
  1. loss.py +1 -2
loss.py CHANGED
@@ -6,11 +6,10 @@ instead of BinaryCrossEntropy.
6
  import random
7
  import torch
8
  import torch.nn as nn
9
- import lightning.pytorch as pl
10
  from utils import intersection_over_union
11
 
12
 
13
- class YoloLoss(pl.LightningModule):
14
  def __init__(self):
15
  super().__init__()
16
  self.mse = nn.MSELoss()
 
6
  import random
7
  import torch
8
  import torch.nn as nn
 
9
  from utils import intersection_over_union
10
 
11
 
12
+ class YoloLoss(nn.Module):
13
  def __init__(self):
14
  super().__init__()
15
  self.mse = nn.MSELoss()