Spaces:
Runtime error
Runtime error
shivambhosale
commited on
Commit
•
3904368
1
Parent(s):
ad4887b
Update UNet.py
Browse files
UNet.py
CHANGED
@@ -1,8 +1,4 @@
|
|
1 |
-
import torch
|
2 |
-
if torch.cuda.is_available():
|
3 |
-
device = 'cuda'
|
4 |
-
else:
|
5 |
-
device = 'cpu'
|
6 |
from torch.nn import Module, Conv2d, ReLU, ModuleList, MaxPool2d, ConvTranspose2d, BCELoss, BCEWithLogitsLoss, functional as F
|
7 |
from torch.optim import Adam
|
8 |
from torchvision import transforms
|
|
|
1 |
+
import torch
|
|
|
|
|
|
|
|
|
2 |
from torch.nn import Module, Conv2d, ReLU, ModuleList, MaxPool2d, ConvTranspose2d, BCELoss, BCEWithLogitsLoss, functional as F
|
3 |
from torch.optim import Adam
|
4 |
from torchvision import transforms
|