Spaces:
Runtime error
Runtime error
update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,6 @@ import torch.nn as nn
|
|
9 |
import torch.nn.functional as F
|
10 |
import torchvision
|
11 |
import matplotlib.pyplot as plt
|
12 |
-
import torch.nn.functional as F
|
13 |
from pl_bolts.datamodules import CIFAR10DataModule
|
14 |
from pl_bolts.transforms.dataset_normalizations import cifar10_normalization
|
15 |
from pytorch_lightning import LightningModule, Trainer, seed_everything
|
@@ -40,7 +39,7 @@ device = torch.device("cpu")
|
|
40 |
classes = ('plane', 'car', 'bird', 'cat', 'deer',
|
41 |
'dog', 'frog', 'horse', 'ship', 'truck')
|
42 |
|
43 |
-
model = LitResnet(lr=0.05).load_from_checkpoint("
|
44 |
|
45 |
device = torch.device("cpu")
|
46 |
|
|
|
9 |
import torch.nn.functional as F
|
10 |
import torchvision
|
11 |
import matplotlib.pyplot as plt
|
|
|
12 |
from pl_bolts.datamodules import CIFAR10DataModule
|
13 |
from pl_bolts.transforms.dataset_normalizations import cifar10_normalization
|
14 |
from pytorch_lightning import LightningModule, Trainer, seed_everything
|
|
|
39 |
classes = ('plane', 'car', 'bird', 'cat', 'deer',
|
40 |
'dog', 'frog', 'horse', 'ship', 'truck')
|
41 |
|
42 |
+
model = LitResnet(lr=0.05).load_from_checkpoint("weights_92.ckpt")
|
43 |
|
44 |
device = torch.device("cpu")
|
45 |
|