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 109a7ce3 authored by fische_r's avatar fische_r
Browse files

dont fetch first image

parent a9992ae6
No related branches found
No related tags found
No related merge requests found
...@@ -210,25 +210,25 @@ class train_segmentation: ...@@ -210,25 +210,25 @@ class train_segmentation:
if not len(self.client.cluster.workers)>0: if not len(self.client.cluster.workers)>0:
self.client = reboot_client(self.client, memory_limit=self.memlim, n_workers=self.n_workers) self.client = reboot_client(self.client, memory_limit=self.memlim, n_workers=self.n_workers)
if imfirst is not None and type(imfirst) is not np.ndarray: # if imfirst is not None and type(imfirst) is not np.ndarray:
fut = self.client.scatter(imfirst) # fut = self.client.scatter(imfirst)
fut = fut.result() # fut = fut.result()
fut = fut.compute() # fut = fut.compute()
imfirst = fut.data # imfirst = fut.data
self.client.restart(wait_for_workers=False) # self.client.restart(wait_for_workers=False)
if not len(self.client.cluster.workers)>0: # if not len(self.client.cluster.workers)>0:
self.client = reboot_client(self.client, memory_limit=self.memlim, n_workers=self.n_workers) # self.client = reboot_client(self.client, memory_limit=self.memlim, n_workers=self.n_workers)
im8 = im-im.min() im8 = im-im.min()
im8 = im8/im8.max()*255 im8 = im8/im8.max()*255
if imfirst is not None: # if imfirst is not None:
diff = im-imfirst # diff = im-imfirst
# diff = diff/diff.max()*255 # # diff = diff/diff.max()*255
self.current_diff_im = diff # self.current_diff_im = diff
else: # else:
self.current_diff_im = None # self.current_diff_im = None
slice_name = ''.join([c1,'_',str(p1),'_',c2,'_',str(p2),'_']) slice_name = ''.join([c1,'_',str(p1),'_',c2,'_',str(p2),'_'])
truthpath = os.path.join(self.label_path, ''.join(['label_image_',slice_name,'.tif'])) truthpath = os.path.join(self.label_path, ''.join(['label_image_',slice_name,'.tif']))
...@@ -244,7 +244,7 @@ class train_segmentation: ...@@ -244,7 +244,7 @@ class train_segmentation:
self.current_im = im self.current_im = im
self.current_im8 = im8 self.current_im8 = im8
# self.current_feat_stack = feat_stack # self.current_feat_stack = feat_stack
self.current_first_im = imfirst # self.current_first_im = imfirst
self.current_truth = truth self.current_truth = truth
self.current_result = resultim self.current_result = resultim
self.current_truthpath = truthpath self.current_truthpath = truthpath
......
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