Commit 7357e40b authored by Jon Crall's avatar Jon Crall Committed by Kai Chen
Browse files

Use standard NCHW instead of BCHW (#1516)

parent b287273c
...@@ -159,7 +159,7 @@ class CascadeRCNN(BaseDetector, RPNTestMixin): ...@@ -159,7 +159,7 @@ class CascadeRCNN(BaseDetector, RPNTestMixin):
proposals=None): proposals=None):
""" """
Args: 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. Typically these should be mean centered and std scaled.
img_meta (list[dict]): list of image info dict where each dict has: img_meta (list[dict]): list of image info dict where each dict has:
...@@ -301,7 +301,7 @@ class CascadeRCNN(BaseDetector, RPNTestMixin): ...@@ -301,7 +301,7 @@ class CascadeRCNN(BaseDetector, RPNTestMixin):
"""Run inference on a single image. """Run inference on a single image.
Args: 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. img_meta (list[dict]): a list with one dictionary element.
See `mmdet/datasets/pipelines/formatting.py:Collect` for See `mmdet/datasets/pipelines/formatting.py:Collect` for
details of meta dicts. details of meta dicts.
......
...@@ -137,7 +137,7 @@ class TwoStageDetector(BaseDetector, RPNTestMixin, BBoxTestMixin, ...@@ -137,7 +137,7 @@ class TwoStageDetector(BaseDetector, RPNTestMixin, BBoxTestMixin,
proposals=None): proposals=None):
""" """
Args: 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. Typically these should be mean centered and std scaled.
img_meta (list[dict]): list of image info dict where each dict has: img_meta (list[dict]): list of image info dict where each dict has:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment