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
6715925a
Commit
6715925a
authored
2 years ago
by
Tamino Huxohl
Browse files
Options
Downloads
Patches
Plain Diff
implement new patch dataset parameters into training
parent
82eb0bf4
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/training/default.py
+27
-0
27 additions, 0 deletions
mu_map/training/default.py
with
27 additions
and
0 deletions
mu_map/training/default.py
+
27
−
0
View file @
6715925a
...
@@ -158,6 +158,29 @@ if __name__ == "__main__":
...
@@ -158,6 +158,29 @@ if __name__ == "__main__":
default
=
"
mean
"
,
default
=
"
mean
"
,
help
=
"
type of normalization applied to the reconstructions
"
,
help
=
"
type of normalization applied to the reconstructions
"
,
)
)
parser
.
add_argument
(
"
--patch_size
"
,
type
=
int
,
default
=
32
,
help
=
"
the size of patches extracted for each reconstruction
"
)
parser
.
add_argument
(
"
--patch_offset
"
,
type
=
int
,
default
=
20
,
help
=
"
offset to ignore the border of the image
"
)
parser
.
add_argument
(
"
--number_of_patches
"
,
type
=
int
,
default
=
100
,
help
=
"
number of patches extracted for each image
"
)
parser
.
add_argument
(
"
--no_shuffle
"
,
action
=
"
store_true
"
help
=
"
do not shuffle patches in the dataset
"
)
# Training Args
# Training Args
parser
.
add_argument
(
parser
.
add_argument
(
...
@@ -265,6 +288,10 @@ if __name__ == "__main__":
...
@@ -265,6 +288,10 @@ if __name__ == "__main__":
for
split
in
[
"
train
"
,
"
validation
"
]:
for
split
in
[
"
train
"
,
"
validation
"
]:
dataset
=
MuMapPatchDataset
(
dataset
=
MuMapPatchDataset
(
args
.
dataset_dir
,
args
.
dataset_dir
,
patches_per_image
=
args
.
number_of_patches
,
patch_size
=
args
.
patch_size
,
patch_offset
=
args
.
patch_offset
,
shuffle
=
not
args
.
no_shuffle
,
split_name
=
split
,
split_name
=
split
,
transform_normalization
=
transform_normalization
,
transform_normalization
=
transform_normalization
,
transform_augmentation
=
transform_augmentation
,
transform_augmentation
=
transform_augmentation
,
...
...
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