Skip to content

Commit 40d55ab

Browse files
committed
Add in_chans to data config helper. Fix #2021
1 parent 63ee548 commit 40d55ab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

timm/data/config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ def resolve_data_config(
2121

2222
# Resolve input/image size
2323
in_chans = 3
24-
if args.get('chans', None) is not None:
24+
if args.get('in_chans', None) is not None:
25+
in_chans = args['in_chans']
26+
elif args.get('chans', None) is not None:
2527
in_chans = args['chans']
2628

2729
input_size = (in_chans, 224, 224)

0 commit comments

Comments
 (0)