Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shijianjian committed Sep 5, 2024
1 parent 37699e4 commit e36afbf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kornia/contrib/models/rt_detr/architecture/rtdetr_head.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ def __init__(
super().__init__()
self.num_queries = num_queries
# TODO: verify this is correct
assert len(in_channels) <= num_levels
if len(in_channels) > num_levels:
raise ValueError(f"`num_levels` cannot be greater than {len(in_channels)}. Got {num_levels}.")
self.num_levels = num_levels

# build the input projection layers
Expand Down

0 comments on commit e36afbf

Please sign in to comment.