Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mednet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package 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
medai
software
mednet
Commits
a5099817
Commit
a5099817
authored
9 months ago
by
Daniel CARRON
Committed by
André Anjos
8 months ago
Browse files
Options
Downloads
Patches
Plain Diff
[segmentation.scripts] Fix saved files extensions
parent
ab19f65c
No related branches found
No related tags found
1 merge request
!46
Create common library
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/mednet/libs/segmentation/engine/evaluator.py
+1
-1
1 addition, 1 deletion
src/mednet/libs/segmentation/engine/evaluator.py
src/mednet/libs/segmentation/scripts/predict.py
+1
-1
1 addition, 1 deletion
src/mednet/libs/segmentation/scripts/predict.py
with
2 additions
and
2 deletions
src/mednet/libs/segmentation/engine/evaluator.py
+
1
−
1
View file @
a5099817
...
...
@@ -364,7 +364,7 @@ def _evaluate_sample_worker(
retval
=
_sample_measures
(
prediction
,
target
,
mask
,
steps
)
if
output_folder
is
not
None
:
fullpath
=
output_folder
/
name
/
f
"
{
stem
}
.csv
"
fullpath
=
output_folder
/
name
/
f
"
{
pathlib
.
Path
(
stem
).
stem
}
.csv
"
tqdm
.
write
(
f
"
Saving
{
fullpath
}
...
"
)
fullpath
.
parent
.
mkdir
(
parents
=
True
,
exist_ok
=
True
)
retval
.
to_csv
(
fullpath
)
...
...
This diff is collapsed.
Click to expand it.
src/mednet/libs/segmentation/scripts/predict.py
+
1
−
1
View file @
a5099817
...
...
@@ -115,7 +115,7 @@ def predict(
for
split_name
,
split
in
predictions
.
items
():
pred_paths
=
[]
for
sample
in
split
:
hdf5_path
=
output_folder
/
f
"
{
sample
[
0
]
}
.hdf5
"
hdf5_path
=
output_folder
/
f
"
{
pathlib
.
Path
(
sample
[
0
]
).
stem
}
.hdf5
"
_save_hdf5
(
sample
[
3
],
sample
[
1
],
sample
[
2
],
hdf5_path
)
pred_paths
.
append
([
str
(
sample
[
0
]),
str
(
hdf5_path
)])
json_predictions
[
split_name
]
=
pred_paths
...
...
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