Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shijianjian committed Sep 4, 2024
1 parent 8764caa commit dcf3768
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kornia/contrib/models/rt_detr/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ def from_pretrained(model_name: str) -> RTDETR:
)

def map_name(old_name: str) -> str:
# Start with the old name
new_name = old_name

# Encoder renaming
new_name = re.sub("encoder.pan_blocks", "encoder.ccfm.pan_blocks", new_name)
new_name = re.sub("encoder.downsample_convs", "encoder.ccfm.downsample_convs", new_name)
new_name = re.sub("encoder.fpn_blocks", "encoder.ccfm.fpn_blocks", new_name)
Expand Down

0 comments on commit dcf3768

Please sign in to comment.