-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
17 lines (15 loc) · 661 Bytes
/
test.py
File metadata and controls
17 lines (15 loc) · 661 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# -*- coding: utf-8 -*-
from loader_multimodal import Data
from model import Multimodel
from runner import Experiment
data = Data('./data/', modalities_to_load=['T1','T2','MASK','FLAIR'])
#for synthesis
# data = Data('./data/', modalities_to_load=['T1','T2','FLAIR'])
data.load()
input_modalities= ['T1','T2','MASK']
output_weights= {'FLAIR':1.0}
# output_weights= {'FLAIR':1.0}
exp = Experiment(input_modalities, output_weights, './', data, latent_dim=4, spatial_transformer= False, common_merge='ave', ind_outs=True, fuse_outs=True)
exp.run(data)
# m = Multimodel(['T1','T2'], ['T2'],{ 'T2':1.0, 'concat':1.0} ,16, 256, 'max', True, True)
# m.build()