Update app.py
Browse files
app.py
CHANGED
@@ -18,6 +18,10 @@ image_size = 256
|
|
18 |
n_tiles = 36
|
19 |
batch_size = 8
|
20 |
num_workers = 4
|
|
|
|
|
|
|
|
|
21 |
class enetv2(nn.Module):
|
22 |
def __init__(self, backbone, out_dim):
|
23 |
super(enetv2, self).__init__()
|
|
|
18 |
n_tiles = 36
|
19 |
batch_size = 8
|
20 |
num_workers = 4
|
21 |
+
|
22 |
+
|
23 |
+
# Define the device
|
24 |
+
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
25 |
class enetv2(nn.Module):
|
26 |
def __init__(self, backbone, out_dim):
|
27 |
super(enetv2, self).__init__()
|