Commit ·
84b79fd
1
Parent(s): 324f63f
Update custom_resnet.py
Browse files- custom_resnet.py +10 -0
custom_resnet.py
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
class LitResnet(LightningModule):
|
| 2 |
def __init__(self, lr=0.01, drop= 0.2, norm='BN',groupsize=1):
|
| 3 |
super().__init__()
|
|
|
|
| 1 |
+
from pytorch_lightning import LightningModule, Trainer, seed_everything
|
| 2 |
+
import torch
|
| 3 |
+
import pandas as pd
|
| 4 |
+
import numpy as np
|
| 5 |
+
import torch.nn as nn
|
| 6 |
+
from torch.nn import functional as F
|
| 7 |
+
from torchvision import transforms
|
| 8 |
+
from pytorch_lightning import LightningModule, Trainer, seed_everything
|
| 9 |
+
|
| 10 |
+
|
| 11 |
class LitResnet(LightningModule):
|
| 12 |
def __init__(self, lr=0.01, drop= 0.2, norm='BN',groupsize=1):
|
| 13 |
super().__init__()
|