Skip to content

Commit

Permalink
CoAtNet
Browse files Browse the repository at this point in the history
  • Loading branch information
xmu-xiaoma666 committed Oct 20, 2021
1 parent 920734e commit 6c229ea
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions model/attention/CoAtNet.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import sys
from math import sqrt
sys.path.append('.')
from conv.MBConv import MBConvBlock
from attention.SelfAttention import ScaledDotProductAttention
from model.conv.MBConv import MBConvBlock
from model.attention.SelfAttention import ScaledDotProductAttention

class CoAtNet(nn.Module):
def __init__(self,in_ch,image_size,out_chs=[64,96,192,384,768]):
Expand Down
4 changes: 2 additions & 2 deletions model/attention/DANet.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import torch
from torch import nn
from torch.nn import init
from .SelfAttention import ScaledDotProductAttention
from .SimplifiedSelfAttention import SimplifiedScaledDotProductAttention
from model.attention.SelfAttention import ScaledDotProductAttention
from model.attention.SimplifiedSelfAttention import SimplifiedScaledDotProductAttention

class PositionAttentionModule(nn.Module):

Expand Down
Binary file modified model/attention/__pycache__/SelfAttention.cpython-38.pyc
Binary file not shown.
Binary file modified model/conv/__pycache__/MBConv.cpython-38.pyc
Binary file not shown.

0 comments on commit 6c229ea

Please sign in to comment.