Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DARPA_proj
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
Nattapon Jaroenchai
DARPA_proj
Merge requests
!3
Add map size
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add map size
Attention-unet-release
into
main
Overview
0
Commits
4
Pipelines
0
Changes
2
Merged
Nattapon Jaroenchai
requested to merge
Attention-unet-release
into
main
1 year ago
Overview
0
Commits
4
Pipelines
0
Changes
2
Expand
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
43266831
4 commits,
1 year ago
2 files
+
19
−
27
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
inference.py
+
1
−
0
Options
@@ -252,6 +252,7 @@ def main(args):
# Get the size of the map
map_width
,
map_height
,
_
=
h5_image
.
get_map_size
(
map_name
)
print
(
"
Map size:
"
,
h5_image
.
get_map_size
(
map_name
))
# Calculate the number of patches based on the patch size and border
num_rows
=
math
.
ceil
(
map_width
/
h5_image
.
patch_size
)
Loading