Skip to content

Commit

Permalink
Update unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jaegukhyun committed Jun 27, 2023
1 parent 53359e9 commit d893e1a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_custom_dino_load_state_pre_hook(self, fxt_cfg_custom_dino: Dict):
"memory_trans_fc": "memory_trans_fc",
"memory_trans_norm": "memory_trans_norm",
}
model.load_state_dict_pre_hook(model, ckpt_dict)
model.load_state_dict_pre_hook(ckpt_dict)

assert ckpt_dict["bbox_head.transformer.level_embeds"] == "level_embed"
assert ckpt_dict["bbox_head.transformer.encoder.attentions.0"] == "encoder.self_attn"
Expand Down

0 comments on commit d893e1a

Please sign in to comment.