RT DETR - can't pickle local object

I have been getting this error when trying to run RT DETR on Windows locally

AttributeError: Can’t pickle local object ‘RTDETRDataset.build_transforms..’

When I run it in Google Colab it works fine.

If i change workers to 0 instead of the default 8 it starts working.
This doesn’t change the overall results, only makes it slower, or am i wrong?

What’s the full traceback?

I dont have it.

I put workers=0 in the params and know it seems to be working

It would be similar, but not exactly the same due to randomness differences