Skip to content

Commit

Permalink
fix a bug where 'id2label' was incorrectly written as 'i2label' when …
Browse files Browse the repository at this point in the history
…reading the config from pretrained config
  • Loading branch information
ZuoChenFttS committed Nov 7, 2024
1 parent 7bbc624 commit 300c082
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 300c082

Please sign in to comment.