Skip to content

The CSC_loss / CAC_loss terms do not seem to be involved in the backpropagation process at all now #24

Description

@Diaozhaoheng

Regarding the code of your project, when starting the semi-supervised training at 350, it seems that the CSC/CAC_loss is not involved in the entire training process. Could you please explain how it functions?
if epoch >= args.start_fusion_epoch: ### start semi-supervised on unlabeled data model.cuda() model.eval() with autocast(enabled=args.amp): with torch.no_grad(): ct_img_F_ds, mri_img_F_ds, ct_unlabeled_output, mri_unlabeled_output = model(ct_unlabeled_data, mri_unlabeled_data) ### compute CSC loss CSC_loss = CSC_loss_func(ct_img_F_ds, mri_img_F_ds) CAC_loss = CAC_loss_func(ct_unlabeled_output, mri_unlabeled_output) ### compute CSC loss consistency_weight_csc = sigmoid_rampup(epoch, args.max_epochs) ### compute CAC loss consistency_weight_cac = cosine_rampdown(epoch, args.max_epochs) loss = sup_loss + consistency_weight_csc * CSC_loss + consistency_weight_cac * CAC_loss

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions