mirror of
https://github.com/modelscope/modelscope.git
synced 2026-02-24 20:19:51 +01:00
revise format
This commit is contained in:
@@ -635,7 +635,7 @@ class DLAUp(nn.Module):
|
||||
"ida_{}".format(i),
|
||||
IDAUp(3, channels[j], in_channels[j:], scales[j:] // scales[j]),
|
||||
)
|
||||
scales[j + 1 :] = scales[j]
|
||||
scales[j + 1:] = scales[j]
|
||||
in_channels[j + 1 :] = [channels[j] for _ in channels[j + 1 :]]
|
||||
|
||||
def forward(self, layers):
|
||||
|
||||
@@ -212,7 +212,6 @@ def gbox_post_process(gbox, c, s, h, w):
|
||||
def nms(dets, thresh):
|
||||
if len(dets) < 2:
|
||||
return dets
|
||||
scores = dets[:, 8]
|
||||
index_keep = []
|
||||
keep = []
|
||||
for i in range(len(dets)):
|
||||
|
||||
Reference in New Issue
Block a user