Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
210610347
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2021
210610347
Commits
b9ad4bfc
Commit
b9ad4bfc
authored
3 years ago
by
何向东
Browse files
Options
Downloads
Patches
Plain Diff
查看img_的shape
parent
8e2fcf11
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
main.py
+1
-0
1 addition, 0 deletions
main.py
with
1 addition
and
0 deletions
main.py
+
1
−
0
View file @
b9ad4bfc
...
...
@@ -130,6 +130,7 @@ def eval_batch_scales(eval_net, img_lst, scales,
sizes_
=
[
int
((
base_crop_size
-
1
)
*
sc
)
+
1
for
sc
in
scales
]
probs_lst
=
eval_batch
(
eval_net
,
img_lst
,
crop_size
=
sizes_
[
0
],
flip
=
flip
)
for
crop_size_
in
sizes_
[
1
:]:
print
(
img_lst
.
shape
)
probs_lst_tmp
=
eval_batch
(
eval_net
,
img_lst
,
crop_size
=
crop_size_
,
flip
=
flip
)
for
pl
,
_
in
enumerate
(
probs_lst
):
probs_lst
[
pl
]
+=
probs_lst_tmp
[
pl
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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