Skip to content

Commit

Permalink
Revert SPPF to SPP in r6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqwang committed Dec 1, 2021
1 parent 12389a3 commit eea4e4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yolort/models/path_aggregation_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import torch
from torch import nn, Tensor
from yolort.v5 import Conv, BottleneckCSP, C3, SPPF
from yolort.v5 import Conv, BottleneckCSP, C3, SPP


class IntermediateLevelP6(nn.Module):
Expand Down Expand Up @@ -106,7 +106,7 @@ def __init__(
depth_gain = max(round(3 * depth_multiple), 1)

if version == "r6.0":
init_block = SPPF(in_channels[-1], in_channels[-1], k=5)
init_block = SPP(in_channels[-1], in_channels[-1], k=(5, 9, 13))
elif version in ["r3.1", "r4.0"]:
init_block = block(in_channels[-1], in_channels[-1], n=depth_gain, shortcut=False)
else:
Expand Down

0 comments on commit eea4e4d

Please sign in to comment.