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
c7e2c3cf
Commit
c7e2c3cf
authored
2 years ago
by
Tamino Huxohl
Browse files
Options
Downloads
Patches
Plain Diff
change doc format for patch dataset
parent
56b9f617
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mu_map/dataset/patches.py
+19
-10
19 additions, 10 deletions
mu_map/dataset/patches.py
with
19 additions
and
10 deletions
mu_map/dataset/patches.py
+
19
−
10
View file @
c7e2c3cf
...
@@ -11,15 +11,24 @@ class MuMapPatchDataset(MuMapDataset):
...
@@ -11,15 +11,24 @@ class MuMapPatchDataset(MuMapDataset):
"""
"""
A wrapper around the MuMapDataset that computes patches for each reconstruction-μ-map pair.
A wrapper around the MuMapDataset that computes patches for each reconstruction-μ-map pair.
:param dataset_dir: the directory containing the dataset - is passed to MuMapDataset
Parameters
:param patches_per_image: the amount of patches to randomly generate for each image
----------
:param patch_size: the size of patches in x- and y-direction
dataset_dir: str
:param patch_size_z: the size of patches in z-direction --- it is a separate parameter because
the directory containing the dataset - is passed to MuMapDataset
images are typically shorter in this direction
patches_per_image: int
:param patch_offset: offset of generated patches to the border of images --- this space will
the amount of patches to randomly generate for each image
then not appear in patches because it is often empty
patch_size: int
:param shuffle: shuffle the patches so that patches of image pairs are mixed
the size of patches in x- and y-direction
:param **kwargs: remaining parameters passed to MuMapDataset
patch_size_z: int
the size of patches in z-direction --- it is a separate parameter because
images are typically shorter in this direction
patch_offset: int
offset of generated patches to the border of images --- this space will
then not appear in patches because it is often empty
shuffle: bool
shuffle the patches so that patches of image pairs are mixed
**kwargs:
remaining parameters passed to MuMapDataset
"""
"""
def
__init__
(
def
__init__
(
...
@@ -138,7 +147,7 @@ if __name__ == "__main__":
...
@@ -138,7 +147,7 @@ if __name__ == "__main__":
parser
.
add_argument
(
parser
.
add_argument
(
"
--dataset_dir
"
,
"
--dataset_dir
"
,
type
=
str
,
type
=
str
,
default
=
"
data/
initial
/
"
,
default
=
"
data/
second
/
"
,
help
=
"
the directory of the dataset
"
,
help
=
"
the directory of the dataset
"
,
)
)
for
key
,
_default
,
_help
in
zip
(
param_keys
,
param_defaults
,
param_help
):
for
key
,
_default
,
_help
in
zip
(
param_keys
,
param_defaults
,
param_help
):
...
...
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