Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Contrast Enhancement with UNet
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
Nuno Pimpão Santos Martins
Contrast Enhancement with UNet
Commits
ffa55b59
Commit
ffa55b59
authored
1 year ago
by
Nuno Pimpão Santos Martins
Browse files
Options
Downloads
Patches
Plain Diff
update script to do some quantifications
parent
c4112786
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
main_batch_iou_toinput.py
+4
-4
4 additions, 4 deletions
main_batch_iou_toinput.py
with
4 additions
and
4 deletions
main_batch_iou_toinput.py
+
4
−
4
View file @
ffa55b59
...
@@ -12,8 +12,8 @@ from tqdm import tqdm
...
@@ -12,8 +12,8 @@ from tqdm import tqdm
# Data Import
# Data Import
# ---
# ---
#raw data path
#raw data path
raw_mask_path
=
'
w:
\\
NPC_adult_new
\\
dl_training
\\
images
\\
mask
_gt
\\
'
raw_mask_path
=
'
w:
\\
NPC_adult_new
\\
dl_training
\\
images
\\
labkit_
mask
s
\\
'
raw_prefix_substring
=
'
_mask
'
raw_prefix_substring
=
'
.tif
'
# results paths
# results paths
results_path
=
'
w:
\\
NPC_adult_new
\\
dl_training
\\
fcenet
\\
results
\\
'
results_path
=
'
w:
\\
NPC_adult_new
\\
dl_training
\\
fcenet
\\
results
\\
'
...
@@ -27,7 +27,7 @@ pred2_prefix_substring = '_x2'
...
@@ -27,7 +27,7 @@ pred2_prefix_substring = '_x2'
pred3_mask_path
=
results_path
+
'
results_x3
\\
'
pred3_mask_path
=
results_path
+
'
results_x3
\\
'
pred3_prefix_substring
=
'
_x3
'
pred3_prefix_substring
=
'
_x3
'
quantification_name
=
'
fcenet
'
quantification_name
=
'
fcenet
_newmasks
'
raw_list
=
os
.
listdir
(
raw_mask_path
)
raw_list
=
os
.
listdir
(
raw_mask_path
)
raw_list
.
sort
()
raw_list
.
sort
()
...
@@ -46,7 +46,7 @@ pred_list_x3.sort()
...
@@ -46,7 +46,7 @@ pred_list_x3.sort()
pred_list_x3
=
[
name
for
name
in
pred_list_x3
if
name
.
find
(
'
.tif
'
)
>
0
]
pred_list_x3
=
[
name
for
name
in
pred_list_x3
if
name
.
find
(
'
.tif
'
)
>
0
]
today_date
=
str
(
datetime
.
date
.
today
())
today_date
=
str
(
datetime
.
date
.
today
())
save_path
=
raw_mask_path
+
'
iou_quantification_
%s/
'
%
today_date
save_path
=
raw_mask_path
+
'
iou_quantification_
{}_{}/
'
.
format
(
quantification_name
,
today_date
)
if
not
os
.
path
.
exists
(
save_path
):
if
not
os
.
path
.
exists
(
save_path
):
os
.
mkdir
(
save_path
)
os
.
mkdir
(
save_path
)
...
...
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