Spaces:
Runtime error
Runtime error
Update inference.py
Browse files- inference.py +0 -1
inference.py
CHANGED
|
@@ -71,7 +71,6 @@ def segment_wt(wt_model, flair_tensor, t1_tensor, t1ce_tensor, t2_tensor):
|
|
| 71 |
wt_output = wt_model(wt_input)
|
| 72 |
return wt_output
|
| 73 |
|
| 74 |
-
|
| 75 |
def segment_tc(tc_model, flair_tensor, t1_tensor, t1ce_tensor, t2_tensor, wt_output):
|
| 76 |
tc_input = torch.cat((flair_tensor, t1_tensor, t1ce_tensor, t2_tensor, wt_output.squeeze(0),
|
| 77 |
wt_output.squeeze(0), wt_output.squeeze(0), wt_output.squeeze(0)), dim=0).unsqueeze(0)
|
|
|
|
| 71 |
wt_output = wt_model(wt_input)
|
| 72 |
return wt_output
|
| 73 |
|
|
|
|
| 74 |
def segment_tc(tc_model, flair_tensor, t1_tensor, t1ce_tensor, t2_tensor, wt_output):
|
| 75 |
tc_input = torch.cat((flair_tensor, t1_tensor, t1ce_tensor, t2_tensor, wt_output.squeeze(0),
|
| 76 |
wt_output.squeeze(0), wt_output.squeeze(0), wt_output.squeeze(0)), dim=0).unsqueeze(0)
|