osbm commited on
Commit
5eb73c8
1 Parent(s): af19d5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -2
app.py CHANGED
@@ -15,6 +15,24 @@ with st.spinnet("Unzipping..."):
15
  zip_ref.extractall(".")
16
 
17
 
18
- st.write(os.listdir(os.getcwd()))
19
- st.write(os.getcwd())
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
 
 
15
  zip_ref.extractall(".")
16
 
17
 
18
+ # st.write(os.listdir(os.getcwd()))
19
+ # st.write(os.getcwd())
20
+
21
+
22
+ model = monai.networks.nets.UNet(
23
+ in_channels=1,
24
+ out_channels=3,
25
+ spatial_dims=3,
26
+ channels=[16, 32, 64, 128, 256, 512],
27
+ strides=[2, 2, 2, 2, 2],
28
+ num_res_units=4,
29
+ act="PRELU",
30
+ norm="BATCH",
31
+ dropout=0.15,
32
+ )
33
+
34
+ # load this model using anatomy.pt
35
+ model.load_state_dict(torch.load('anatomy.pt', map_location=torch.device('cpu')))
36
+
37
+ print(model)
38