Hi all,
Today I tried to use the examples provided in the pipeline section (Pipelines). More specifically, I tried the ImageClassificationPipeline. However trying the example results in the following error:
{"label": self.model.config.id2label[i], "score": score.item()} for i, score in enumerate(scores)
KeyError: 9205
However, I am unsure how to fix this. Probably another model would not give this error but I would like to understand why the image classification is giving this error related to the labels.
Thanks for helping me out!