Skip to content
Snippets Groups Projects
Commit a732c680 authored by Farzaneh Labbaf's avatar Farzaneh Labbaf
Browse files

Fix minor error in Launch_NN_command_line

parent 141aa29c
No related branches found
No related tags found
No related merge requests found
...@@ -68,13 +68,13 @@ def LaunchInstanceSegmentation(reader, image_type, fov_indices=[0], time_value1= ...@@ -68,13 +68,13 @@ def LaunchInstanceSegmentation(reader, image_type, fov_indices=[0], time_value1=
#iterates over the time indices in the range #iterates over the time indices in the range
for t in range(time_value1, time_value2+1): for t in range(time_value1, time_value2+1):
log.debug('--------- Segmenting field of view:',fov_ind,'Time point:',t) # print('--------- Segmenting field of view:',fov_ind,'Time point:',t)
#calls the neural network for time t and selected fov #calls the neural network for time t and selected fov
im = reader.LoadOneImage(t, fov_ind) im = reader.LoadOneImage(t, fov_ind)
try: try:
pred = LaunchPrediction(im, mic_type, pretrained_weights=path_to_weights) pred = LaunchPrediction(im, image_type, pretrained_weights=path_to_weights)
except ValueError: except ValueError:
print('Error! ', print('Error! ',
'The neural network weight files could not ' 'The neural network weight files could not '
...@@ -97,7 +97,7 @@ def main(args): ...@@ -97,7 +97,7 @@ def main(args):
if '.h5' in args.mask_path: if '.h5' in args.mask_path:
args.mask_path = args.mask_path.replace('.h5','') args.mask_path = args.mask_path.replace('.h5','')
reader = nd.Reader("", args.mask_path, args.image_path) reader = nd.Reader("", args.mask_path+'.h5', args.image_path)
LaunchInstanceSegmentation(reader, args.image_type, args.fov, LaunchInstanceSegmentation(reader, args.image_type, args.fov,
args.range_of_frames[0], args.range_of_frames[1], args.threshold, args.min_seed_dist, args.path_to_weights) args.range_of_frames[0], args.range_of_frames[1], args.threshold, args.min_seed_dist, args.path_to_weights)
......
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