Skip to content

Commit

Permalink
add some configs
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzilun committed Jul 2, 2020
1 parent c9ec788 commit 8f951b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions backbone.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

class ResNet12Block(nn.Module):
"""
ResNet block
ResNet Block
"""
def __init__(self, inplanes, planes):
super(ResNet12Block, self).__init__()
Expand Down Expand Up @@ -45,7 +45,7 @@ def forward(self, x):

class ResNet12(nn.Module):
"""
ResNet12 backbone
ResNet12 Backbone
"""
def __init__(self, emb_size, block=ResNet12Block, cifar_flag=False):
super(ResNet12, self).__init__()
Expand Down Expand Up @@ -116,7 +116,7 @@ def forward(self, x):

class ConvNet(nn.Module):
"""
Conv4 backbone
Conv4 Backbone
"""
def __init__(self, emb_size, cifar_flag=False):
super(ConvNet, self).__init__()
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ def main():
print('Backbone: ConvNet')
else:
logger.info('Invalid backbone: {}, please specify a backbone model from '
'convnet and resnet12.'.format(config['backbone']))
'convnet or resnet12.'.format(config['backbone']))
exit()

gnn_module = DPGN(config['num_generation'],
Expand Down

0 comments on commit 8f951b4

Please sign in to comment.