Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
SOLOv2-pytorch
Commits
7357e40b
Commit
7357e40b
authored
Oct 10, 2019
by
Jon Crall
Committed by
Kai Chen
Oct 10, 2019
Browse files
Use standard NCHW instead of BCHW (#1516)
parent
b287273c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
mmdet/models/detectors/cascade_rcnn.py
mmdet/models/detectors/cascade_rcnn.py
+2
-2
mmdet/models/detectors/two_stage.py
mmdet/models/detectors/two_stage.py
+1
-1
No files found.
mmdet/models/detectors/cascade_rcnn.py
View file @
7357e40b
...
...
@@ -159,7 +159,7 @@ class CascadeRCNN(BaseDetector, RPNTestMixin):
proposals
=
None
):
"""
Args:
img (Tensor): of shape (
B
, C, H, W) encoding input images.
img (Tensor): of shape (
N
, C, H, W) encoding input images.
Typically these should be mean centered and std scaled.
img_meta (list[dict]): list of image info dict where each dict has:
...
...
@@ -301,7 +301,7 @@ class CascadeRCNN(BaseDetector, RPNTestMixin):
"""Run inference on a single image.
Args:
img (Tensor): must be in shape (
B
, C, H, W)
img (Tensor): must be in shape (
N
, C, H, W)
img_meta (list[dict]): a list with one dictionary element.
See `mmdet/datasets/pipelines/formatting.py:Collect` for
details of meta dicts.
...
...
mmdet/models/detectors/two_stage.py
View file @
7357e40b
...
...
@@ -137,7 +137,7 @@ class TwoStageDetector(BaseDetector, RPNTestMixin, BBoxTestMixin,
proposals
=
None
):
"""
Args:
img (Tensor): of shape (
B
, C, H, W) encoding input images.
img (Tensor): of shape (
N
, C, H, W) encoding input images.
Typically these should be mean centered and std scaled.
img_meta (list[dict]): list of image info dict where each dict has:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment