Newer
Older

Christopher Randolph Rhodes
committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
cs = {
'paths': {
'ilastik': '.',
},
'input': {
'directory': 'Y:/TREC_STOP_26_Porto/MobileLab/LSM900/231026_automic/20231026-152512_lowzoom_data/LowZoom',
'files': [
],
'pattern': '.czi',
},
'setup': [
{
'description': 'Load an ilastik pixel classifier for segmentation',
'method': 'PUT',
'endpoint': 'ilastik/seg/load/',
'params': {
'model_id': 'px_seg_mod',
},
'body': {
'project_file': 'ilastik/px-2d-cAF405-10x.ilp',
'duplicate': False,
},
},
],
'analyze': [
{
'description': 'Run segmentation with ilastik model',
'method': 'PUT',
'endpoint': 'chaeo/with_derived_channels/infer',
'body': {
'api': False,
'keep_interm': True,
'model_id': 'px_seg_mod',
'channel': 0,
},
},
],
'teardown': [
],
}
if __name__ == '__main__':
import json
from pathlib import Path
root = Path('C:\\Users\\rhodes\\projects\\proj0015-model-server\\dev\\dev_serverside_batch')
fp = root / 'conf.json'
with open(fp, 'w') as fh:
json.dump(cs, fh, ensure_ascii=True)