Skip to content

Commit

Permalink
Update train_mimic_utils.py
Browse files Browse the repository at this point in the history
fix a bug
  • Loading branch information
weiyithu authored Apr 26, 2023
1 parent 8cff1bb commit 1c222ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/train_utils/train_mimic_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def train_one_epoch(model, model_teacher, optimizer, train_loader, model_func, l
tb_dict_teacher, disp_dict_teacher, batch_teacher_new = model_teacher(batch_teacher)


batch['rois_mimic'] = batch_teacher_new['rois_mimic'].clone()
# batch['rois_mimic'] = batch_teacher_new['rois_mimic'].clone()
temp, batch_new = model_func(model, batch)
loss, tb_dict, disp_dict = temp
loss_mimic = cal_mimic_loss(batch_teacher_new, batch_new, model.module.model_cfg.ROI_HEAD, mimic_mode)
Expand Down

0 comments on commit 1c222ca

Please sign in to comment.