From 621ecd299d4e59dbd135ed28fd0a38962a7feda6 Mon Sep 17 00:00:00 2001
From: Kai Chen <chenkaidev@gmail.com>
Date: Mon, 23 Dec 2019 15:54:35 +0800
Subject: [PATCH] Fix the return value of `ga_shape_target_single` (#1853)

* fix the return value of ga_shape_target_single

* fix the code format
---
 mmdet/core/anchor/guided_anchor_target.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mmdet/core/anchor/guided_anchor_target.py b/mmdet/core/anchor/guided_anchor_target.py
index bf43850..21162eb 100644
--- a/mmdet/core/anchor/guided_anchor_target.py
+++ b/mmdet/core/anchor/guided_anchor_target.py
@@ -250,7 +250,7 @@ def ga_shape_target_single(flat_approxs,
         tuple
     """
     if not inside_flags.any():
-        return (None, ) * 6
+        return (None, ) * 5
     # assign gt and sample anchors
     expand_inside_flags = inside_flags[:, None].expand(
         -1, approxs_per_octave).reshape(-1)
-- 
GitLab