saneowl commited on
Commit
6444a0c
·
verified ·
1 Parent(s): c7879b7

Upload model.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. model.py +17 -0
model.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import torch
2
+ import torch.nn as nn
3
+
4
+ class FloodNet(nn.Module):
5
+ def __init__(self, input_dim):
6
+ super().__init__()
7
+ self.net = nn.Sequential(
8
+ nn.Linear(input_dim, 64),
9
+ nn.ReLU(),
10
+ nn.Linear(64, 32),
11
+ nn.ReLU(),
12
+ nn.Linear(32, 1),
13
+ nn.Sigmoid()
14
+ )
15
+
16
+ def forward(self, x):
17
+ return self.net(x)