DLBot commited on
Commit
bbb2c43
·
verified ·
1 Parent(s): d2225db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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__()