Skip to content

Commit

Permalink
Update train_clml.py
Browse files Browse the repository at this point in the history
  • Loading branch information
chuangua authored Jul 1, 2022
1 parent 7839db9 commit ec6c1df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions train_clml.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from src.loss_functions.losses import AsymmetricLoss, Hill, SPLC
from randaugment import RandAugment
from torch.cuda.amp import GradScaler, autocast
from ConLoss_MLML import OLELoss,CLML
from ConLoss_MLML import CLLoss,CLML

parser = argparse.ArgumentParser(description='PyTorch MS_COCO Training')
parser.add_argument('--dataset', help='select dataset', default='./dataset/coco_train_0.75left.txt')
Expand Down Expand Up @@ -129,7 +129,7 @@ def train_multi_label_coco(args, model, train_loader, val_loader, lr):
loss_classification=crit1(output,target)

if use_clml:
loss_clml=crit_clml(output, target, epoch,feature,lam)
loss_clml=crit_clml(output, target, feature, epoch,lam)
else:
loss_clml=0

Expand Down

0 comments on commit ec6c1df

Please sign in to comment.