Issue with 'learn_initial_query=True' in RT-DETR: AttributeError on 'tile'
Hello everyone,I’m relatively new to the Transformers library and I’ve encountered an issue while working with the RT-DETR model. Specifically, when I setlearn_initial_query = Trueand attempt to run my code, I encounter the following error:File "./venv/lib/python3.12/site-packages/transformers/models/rt_detr/modeling_rt_detr.py", line 1858, in forward
    target = self.weight_embedding.tile([batch_size, 1, 1])
             ^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "./venv/lib/python3.12/site-packages/torch/nn/modules/module.py", line 1729, in __getattr__
    raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'")
AttributeError: 'Embedding' object has no attribute 'tile'It seems like thetilemethod is being called on anEmbeddingobject, but according to the error message, this method doesn’t exist for that object.I followed the example notebook and am using theTrainerto train the model. Could this be a bug in themodeling_rt_detr.pyfile, or is there something I might be missing in my setup?Any help or insights would be greatly appreciated!Thank you!
2024-09-13T14:53:11Z
Please I still need help here!
2024-09-14T07:43:31Z
Thanks, have pinged the team!