Skip to content

Commit

Permalink
Fix: Rename keyword argument in_channels to num_channels (#35289)
Browse files Browse the repository at this point in the history
Fix: Rename keyword argument in_channels to num_channels in some default backbone configs
  • Loading branch information
ningyuv authored Dec 27, 2024
1 parent 4eb17b2 commit 7f97d01
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def __init__(
logger.info("`backbone_config` is `None`. Initializing the config with the default `Swin` backbone.")
backbone_config = CONFIG_MAPPING["swin"](
image_size=224,
in_channels=3,
num_channels=3,
patch_size=4,
embed_dim=96,
depths=[2, 2, 18, 2],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def __init__(
# fall back to https://huggingface.co/microsoft/swin-base-patch4-window12-384-in22k
backbone_config = SwinConfig(
image_size=384,
in_channels=3,
num_channels=3,
patch_size=4,
embed_dim=128,
depths=[2, 2, 18, 2],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def __init__(
logger.info("`backbone_config` is unset. Initializing the config with the default `Swin` backbone.")
backbone_config = CONFIG_MAPPING["swin"](
image_size=224,
in_channels=3,
num_channels=3,
patch_size=4,
embed_dim=96,
depths=[2, 2, 6, 2],
Expand Down

0 comments on commit 7f97d01

Please sign in to comment.