mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
Fix missing cfg key check
This commit is contained in:
parent
073d31a076
commit
c88e80081d
@ -61,7 +61,7 @@ def resolve_data_config(model, args, default_cfg={}, verbose=True):
|
||||
else:
|
||||
assert len(std) == in_chans
|
||||
new_config['std'] = std
|
||||
else:
|
||||
elif 'std' in default_cfg:
|
||||
new_config['std'] = default_cfg['std']
|
||||
|
||||
# resolve default crop percentage
|
||||
|
Loading…
x
Reference in New Issue
Block a user