NielsRogge / Transformers-Tutorials

This repository contains demos I made with the Transformers library by HuggingFace.
MIT License
9.54k stars 1.45k forks source link

Mask2Former-model: AttributeError: 'list' object has no attribute 'shape' on inference #445

Closed beschmitt closed 4 months ago

beschmitt commented 4 months ago

I have tried getting the fine-tuning of the mask2former model to work but all of a sudden I am getting the above error every time I try to run inference. Specifically the error occurs when the resulting inputs from the image processor get passed to the model. I don't get this error when training the model, only on inference. I also ran the exact code as in the Inference_with_Mask2Former.ipynb and I'm still getting the error.