# ValueError when running rt-detrv2 using Trainer

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fvalueerror-when-running-rt-detrv2-using-trainer%2F140327%3E%5C
**Category:** 🤗Transformers\
**Created:** [February 11, 2025, 9:20pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fvalueerror-when-running-rt-detrv2-using-trainer%2F140327 "2025-02-11T21:20:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zzzz567](https://avatars.discourse-cdn.com/v4/letter/z/bbce88/32.png) [@zzzz567](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fzzzz567)%5C
**Post date:** [February 11, 2025, 9:20pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fvalueerror-when-running-rt-detrv2-using-trainer%2F140327%2F1 "2025-02-11T21:20:37Z")

</div>

Hi,

I am getting a ValueError when running the rt-detrv2 fine tuning implementation from HuggingFace.

See this [topic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fpotential-bug-in-the-rt-detr-v2-fine-tune-script%2F139774) for more info on the error.

Thank you for your help
