mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
Add in_chans
to data config helper. Fix #2021
This commit is contained in:
parent
63ee54853c
commit
40d55ab4bc
@ -21,7 +21,9 @@ def resolve_data_config(
|
||||
|
||||
# Resolve input/image size
|
||||
in_chans = 3
|
||||
if args.get('chans', None) is not None:
|
||||
if args.get('in_chans', None) is not None:
|
||||
in_chans = args['in_chans']
|
||||
elif args.get('chans', None) is not None:
|
||||
in_chans = args['chans']
|
||||
|
||||
input_size = (in_chans, 224, 224)
|
||||
|
Loading…
x
Reference in New Issue
Block a user