Spaces:
Sleeping
Sleeping
Update resnet_lightning.py
Browse files- resnet_lightning.py +1 -4
resnet_lightning.py
CHANGED
|
@@ -9,16 +9,13 @@ import torch.nn as nn
|
|
| 9 |
import torch.nn.functional as F
|
| 10 |
import torch.optim as optim
|
| 11 |
from torchvision import datasets
|
| 12 |
-
|
| 13 |
-
|
| 14 |
import albumentations as A
|
| 15 |
from albumentations.pytorch import ToTensorV2
|
| 16 |
-
|
| 17 |
-
|
| 18 |
from torch_lr_finder import LRFinder
|
| 19 |
import lightning as L
|
| 20 |
from pytorch_grad_cam import GradCAM
|
| 21 |
from utils import *
|
|
|
|
| 22 |
|
| 23 |
class BasicBlock(nn.Module):
|
| 24 |
expansion = 1
|
|
|
|
| 9 |
import torch.nn.functional as F
|
| 10 |
import torch.optim as optim
|
| 11 |
from torchvision import datasets
|
|
|
|
|
|
|
| 12 |
import albumentations as A
|
| 13 |
from albumentations.pytorch import ToTensorV2
|
|
|
|
|
|
|
| 14 |
from torch_lr_finder import LRFinder
|
| 15 |
import lightning as L
|
| 16 |
from pytorch_grad_cam import GradCAM
|
| 17 |
from utils import *
|
| 18 |
+
import torchmetrics
|
| 19 |
|
| 20 |
class BasicBlock(nn.Module):
|
| 21 |
expansion = 1
|