Save model using save_pretrainedmethod.
I trained the DeTr model on custom dataset using this tutorial. 

[Niels Rogge Fine_tuning_DetrForObjectDetection](https://github.com/NielsRogge/Transformers-Tutorials/blob/master/DETR/DETR_minimal_example_(with_DetrFeatureExtractor).ipynb)

I was trying to save that model using save_pretrained method, but I'm getting a error.

Can someone please help me on how to save a model and load the same for inference using save_pretrained and from_pretrained methods. 

Thank you so much.
Please use the [forums](https://discuss.huggingface.co/) to get help debugging your code :-)<|||||>This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md) are likely to be ignored.