# Image classification tutorial bug

**URL:** <https://discuss.huggingface.co/t/image-classification-tutorial-bug/37267>\
**Category:** 🤗Transformers\
**Created:** [April 20, 2023, 5:43pm UTC](https://discuss.huggingface.co/t/image-classification-tutorial-bug/37267 "2023-04-20T17:43:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rharris117](https://avatars.discourse-cdn.com/v4/letter/r/73ab20/32.png) [@rharris117](https://discuss.huggingface.co/u/rharris117)\
**Post date:** [April 20, 2023, 5:43pm UTC](https://discuss.huggingface.co/t/image-classification-tutorial-bug/37267/1 "2023-04-20T17:43:34Z")

</div>

Hi, I am trying to follow the tutorial here:

> **[Google Colaboratory](https://colab.research.google.com/github/huggingface/notebooks/blob/main/examples/image_classification.ipynb#scrollTo=4O_p3WrpRyej)**

but the following line gives me a bug: Resize(feature\_extractor.size)

“Size should be int or sequence. Got \<class ‘dict’\>”

This is because feature\_extractor.size is {‘height’: 224, ‘width’: 224}. Should this be fixed in the tutorial notebook? I see a similar issue for a different notebook that it says was fixed, but it doesn’t seem to have been applied to this one.

> <https://github.com/huggingface/diffusers/pull/1938>
>
> Fix #1896
> 
> TypeError: Size should be int or sequence. Got \<class 'dict'\>
