Skip to content

Commit

Permalink
Update ShuffleResnet.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Fang-Haoshu authored Nov 24, 2021
1 parent ddaf4b9 commit bcfbc99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion alphapose/models/layers/ShuffleResnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import torch.nn as nn
import torch.nn.functional as F

from .dcn import DCN
from .PixelUnshuffle import PixelUnshuffle
from .SE_module import SELayer

Expand Down Expand Up @@ -81,6 +80,7 @@ def __init__(self, inplanes, planes, stride=1,
conv_layers.append(nn.Conv2d(planes * 4, planes, kernel_size=3, stride=1,
padding=1, bias=False))
else:
from .dcn import DCN
conv_layers.append(DCN(planes * 4, planes, dcn, kernel_size=3, stride=1,
padding=1, bias=False))
self.conv2 = nn.Sequential(*conv_layers)
Expand All @@ -89,6 +89,7 @@ def __init__(self, inplanes, planes, stride=1,
self.conv2 = nn.Conv2d(planes, planes, kernel_size=3, stride=stride,
padding=1, bias=False)
else:
from .dcn import DCN
self.conv2 = DCN(planes, planes, dcn, kernel_size=3, stride=stride,
padding=1, bias=False)

Expand Down

0 comments on commit bcfbc99

Please sign in to comment.