# ValueError: too many values to unpack (expected 3) using the DETR model

**URL:** <https://discuss.huggingface.co/t/valueerror-too-many-values-to-unpack-expected-3-using-the-detr-model/52118>\
**Category:** 🤗Transformers\
**Created:** [August 25, 2023, 8:11am UTC](https://discuss.huggingface.co/t/valueerror-too-many-values-to-unpack-expected-3-using-the-detr-model/52118 "2023-08-25T08:11:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nwoke](https://avatars.discourse-cdn.com/v4/letter/n/e36b37/32.png) [@Nwoke](https://discuss.huggingface.co/u/Nwoke)\
**Post date:** [August 25, 2023, 8:11am UTC](https://discuss.huggingface.co/t/valueerror-too-many-values-to-unpack-expected-3-using-the-detr-model/52118/1 "2023-08-25T08:11:10Z")

</div>

I’m using a custom dataset to retrain(fine-tune) the DETR model. After Augmenting and preprocessing my images using `image_processor = AutoImageProcessor.from_pretrained(checkpoint)` I get this errror `ValueError: too many values to unpack (expected 3)` when I run `trainer.train()`. Please what could be the cause of this

---

<div class="post-metadata">

**Author:** ![hamees](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/hamees/32/29173_2.png) [@hamees](https://discuss.huggingface.co/u/hamees)\
**Post date:** [July 10, 2024, 6:12am UTC](https://discuss.huggingface.co/t/valueerror-too-many-values-to-unpack-expected-3-using-the-detr-model/52118/2 "2024-07-10T06:12:13Z")

</div>

hey were you able to find a solution?
