Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Y
YeaZ-GUI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
chadhat
YeaZ-GUI
Commits
a732c680
Commit
a732c680
authored
1 year ago
by
Farzaneh Labbaf
Browse files
Options
Downloads
Patches
Plain Diff
Fix minor error in Launch_NN_command_line
parent
141aa29c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Launch_NN_command_line.py
+3
-3
3 additions, 3 deletions
Launch_NN_command_line.py
with
3 additions
and
3 deletions
Launch_NN_command_line.py
+
3
−
3
View file @
a732c680
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment