Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit ad7c7859 authored by Fischer Robert's avatar Fischer Robert
Browse files

Merge branch 'debugging_dask'

parents 985bcc90 8d983a7b
No related branches found
No related tags found
1 merge request!1Merge
......@@ -136,13 +136,13 @@ def training_set_per_image(label_name, trainingpath, feat_data, client, lazy = F
fut = fut.result()
fut = fut.compute()
feat_stack = fut.data
client.restart_workers()
client.restart()
if type(feat_stack_t_idp) is not np.ndarray:
fut = client.scatter(feat_stack_t_idp)
fut = fut.result()
fut = fut.compute()
feat_stack_t_idp = fut.data
client.restart_workers()
client.restart()
feat_stack = np.concatenate([feat_stack, feat_stack_t_idp], axis = 2)
......@@ -220,21 +220,21 @@ class train_segmentation:
if not c1=='time':
if c2 == 'x':
im = stage1.sel( x = p2).data #feature = 'original',
im = stage1.sel( x = p2)#feature = 'original',
# feat_stack = stage1feat.sel(x = p2).data
imfirst = None
elif c2 == 'y':
im = stage1.sel( y = p2).data
im = stage1.sel( y = p2)
# feat_stack = stage1feat.sel(y = p2).data
imfirst = None
elif c2 == 'z':
im = stage1.sel( z = p2).data
im = stage1.sel( z = p2)
# feat_stack = stage1feat.sel(z = p2).data
imfirst = None
elif c2 == 'time':
im = stage1.sel(time = p2).data
im = stage1.sel(time = p2)
# feat_stack = stage1feat.sel(time = p2).data
imfirst = stage1.sel(time = 0).data
imfirst = stage1.sel(time = 0)
# if self.lazy:
# # get the reference images directly as numpy array
......@@ -252,11 +252,13 @@ class train_segmentation:
fut = fut.result()
fut = fut.compute()
im = fut.data
self.client.restart()
if imfirst is not None and type(imfirst) is not np.ndarray:
fut = self.client.scatter(imfirst)
fut = fut.result()
fut = fut.compute()
imfirst = fut.data
self.client.restart()
im8 = im-im.min()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment