Update loss.py
Browse files
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(
|
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()
|