mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
fix a typo bug where 'id2label' was incorrectly written as 'i2label' when reading config (#34637)
fix a bug where 'id2label' was incorrectly written as 'i2label' when reading the config from pretrained config
This commit is contained in:
parent
eb0ab3ed4b
commit
c772d4d91e
@ -331,7 +331,7 @@ def main():
|
||||
config = AutoConfig.from_pretrained(
|
||||
args.model_name_or_path,
|
||||
num_labels=len(labels),
|
||||
i2label=id2label,
|
||||
id2label=id2label,
|
||||
label2id=label2id,
|
||||
finetuning_task="image-classification",
|
||||
trust_remote_code=args.trust_remote_code,
|
||||
|
Loading…
Reference in New Issue
Block a user