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:
@@ -331,7 +331,7 @@ def main():
|
|||||||
config = AutoConfig.from_pretrained(
|
config = AutoConfig.from_pretrained(
|
||||||
args.model_name_or_path,
|
args.model_name_or_path,
|
||||||
num_labels=len(labels),
|
num_labels=len(labels),
|
||||||
i2label=id2label,
|
id2label=id2label,
|
||||||
label2id=label2id,
|
label2id=label2id,
|
||||||
finetuning_task="image-classification",
|
finetuning_task="image-classification",
|
||||||
trust_remote_code=args.trust_remote_code,
|
trust_remote_code=args.trust_remote_code,
|
||||||
|
|||||||
Reference in New Issue
Block a user