Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
mu-map
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
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tamino Huxohl
mu-map
Commits
68c37f62
Commit
68c37f62
authored
2 years ago
by
Tamino Huxohl
Browse files
Options
Downloads
Patches
Plain Diff
fix mu map dataset to new header
parent
8a9d722e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mu_map/data/datasets.py
+3
-2
3 additions, 2 deletions
mu_map/data/datasets.py
with
3 additions
and
2 deletions
mu_map/data/datasets.py
+
3
−
2
View file @
68c37f62
...
...
@@ -6,6 +6,7 @@ import pydicom
import
numpy
as
np
from
torch.utils.data
import
Dataset
from
mu_map.data.prepare
import
headers
from
mu_map.data.remove_bed
import
DEFAULT_BED_CONTOURS_FILENAME
,
load_contours
from
mu_map.data.review_mu_map
import
discard_slices
...
...
@@ -69,8 +70,8 @@ class MuMapDataset(Dataset):
def
__getitem__
(
self
,
index
:
int
):
row
=
self
.
table
.
iloc
[
index
]
recon_file
=
os
.
path
.
join
(
self
.
dir_images
,
row
[
"
file_recon_n
o_ac
"
])
mu_map_file
=
os
.
path
.
join
(
self
.
dir_images
,
row
[
"
file_mu_map
"
])
recon_file
=
os
.
path
.
join
(
self
.
dir_images
,
row
[
header
.
file_recon_n
ac_nsc
])
mu_map_file
=
os
.
path
.
join
(
self
.
dir_images
,
row
[
headers
.
file_mu_map
])
recon
=
pydicom
.
dcmread
(
recon_file
).
pixel_array
mu_map
=
pydicom
.
dcmread
(
mu_map_file
).
pixel_array
...
...
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