Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
liuning-scu-cn committed Aug 3, 2019
1 parent 3997a6c commit 4a581a9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions core/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def forward(self, x, label=None, direction=None):

########################################################################
# Solution Three: tiger_cnn3
# Multitask: Tiger ID, Left/right
# Multitask: Tiger ID, Left/Right
# Backbone: SE-ResNet50
# DoubleBranch: backbone, erase
# Concat-Fuse
Expand Down Expand Up @@ -344,7 +344,7 @@ def forward(self, x, label=None, direction=None):

########################################################################
# Solution Four: tiger_cnn4
# Multitask: Tiger ID, Left/right
# Multitask: Tiger ID, Left/Right
# Backbone: SE-ResNet50
# DoubleBranch: backbone, erase
# SE-Fuse
Expand Down Expand Up @@ -527,9 +527,9 @@ def forward(self, x, label=None, direction=None):

########################################################################
# Solution Five: tiger_cnn5
# Multitask: Tiger ID, Left/right
# Multitask: Tiger ID, Left/Right
# Backbone: SE-ResNet50
# Loss Function: LabelSmoothingCrossEntropy+TripletLoss
# Loss Function: LabelSmoothingCrossEntropy + TripletLoss + Finetune(tiger_cnn1)
#
class tiger_cnn5(nn.Module):
def __init__(self, classes=107, stride=1):
Expand Down Expand Up @@ -599,9 +599,9 @@ def forward(self, x, label=None, direction=None):

########################################################################
# Solution Six: tiger_cnn6
# Multitask: Tiger ID, Left/right
# Multitask: Tiger ID, Left/Right
# Model Fusion: tiger_cnn1, tiger_cnn3
# Loss Function: LabelSmoothingCrossEntropy+TripletLoss
# Loss Function: LabelSmoothingCrossEntropy
#
class tiger_cnn6(nn.Module):
def __init__(self, classes=107):
Expand Down Expand Up @@ -664,9 +664,9 @@ def forward(self, x, label=None, direction=None):

########################################################################
# Solution Seven: tiger_cnn7
# Multitask: Tiger ID, Left/right
# Multitask: Tiger ID, Left/Right
# Model Fusion: tiger_cnn1, tiger_cnn2
# Loss Function: LabelSmoothingCrossEntropy+TripletLoss
# Loss Function: LabelSmoothingCrossEntropy
#
class tiger_cnn7(nn.Module):
def __init__(self, classes=107):
Expand Down Expand Up @@ -729,7 +729,7 @@ def forward(self, x, label=None, direction=None):

########################################################################
# Solution Three: tiger_cnn8
# Multitask: Tiger ID, Left/right
# Multitask: Tiger ID, Left/Right
# Backbone: SE-ResNet50
# DoubleBranch: backbone, erase
# Concat-Fuse
Expand Down

0 comments on commit 4a581a9

Please sign in to comment.