You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
My own task or dataset (give details below)
Reproduction
Follow official tutorial instructions:
After applying a transform function to the CPPE5 dataset and trying to load a single element fails with the following error:
TypeError Traceback (most recent call last)
[<ipython-input-75-e2a7222a96ab>](https://localhost:8080/#) in <cell line: 22>()
20
21 cppe5["train"] = cppe5["train"].with_transform(transform_aug_ann)
---> 22 cppe5["train"][15]
9 frames
[/usr/local/lib/python3.10/dist-packages/transformers/models/detr/image_processing_detr.py](https://localhost:8080/#) in <listcomp>(.0)
1285 if annotations is not None:
1286 annotations = [
-> 1287 self.normalize_annotation(
1288 annotation, get_image_size(image, input_data_format), input_data_format=input_data_format
1289 )
TypeError: DetrImageProcessor.normalize_annotation() got an unexpected keyword argument 'input_data_format'
System Info
transformers 4.3.2
python 3.10
using google colab
Who can help?
@amyeroberts, @sgugger, @stevhliu
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Follow official tutorial instructions:
After applying a transform function to the CPPE5 dataset and trying to load a single element fails with the following error:
Here's a colab notebook so you test/run it easily. Go to the last step to view the error:
https://colab.research.google.com/drive/1WtwFcW7_N5N7VLsoswx2U4O8CBkCRNc4?usp=sharing
Expected behavior
I expect to not encounter a failure and continue the tutorial.
The text was updated successfully, but these errors were encountered: