Fast Image Processor for EfficientNet: Deprecated folder issue
Author: Kim-Ju-won
Pull request: no

First of all, I deeply appreciate the opportunity to contribute, as discussed in [issue #36978](https://github.com/huggingface/transformers/issues/36978).

I left a comment there mentioning that I’d like to contribute a Fast image processor for EfficientFormer.

I tried running the following command from the guide:
```bash
transformers-cli add-fast-image-processor --model-name efficientformer
```
However, I encountered the following error:
```
2025-04-14 10:33:50.966210: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
Traceback (most recent call last):
  File "/usr/local/bin/transformers-cli", line 8, in <module>
    sys.exit(main())
  File "/root/transformers/src/transformers/commands/transformers_cli.py", line 50, in main
    service.run()
  File "/root/transformers/src/transformers/commands/add_fast_image_processor.py", line 677, in run
    add_fast_image_processor(model_name=self.model_name)
  File "/root/transformers/src/transformers/commands/add_fast_image_processor.py", line 597, in add_fast_image_processor
    raise ValueError(f"No image processing module found in {model_module}")
ValueError: No image processing module found in /root/transformers/src/transformers/models/model_name
```
After checking, I found that the issue seems to be due to the efficientformer model being located in the deprecated subdirectory, rather than directly under the models folder like other actively supported models.

<img width="1337" alt="Image" src="https://github.com/user-attachments/assets/d4a96b0f-274f-4bc9-957b-b08cb9b7b3d5" />

And also, I looked into the [EfficientFormer model documentation](https://huggingface.co/docs/transformers/model_doc/efficientformer), and found the following note:

> This model is in maintenance mode only, we don’t accept any new PRs changing its code. If you run into any issues running this model, please reinstall the last version that supported this model: v4.40.2. You can do so by running the following command: pip install -U transformers==4.40.2.

So I’m wondering:
- Is it possible to add a Fast image processor for EfficientFormer even though it’s in the deprecated folder?
- Should I move it to the main models directory, or keep working inside deprecated?
- Or, as mentioned in the documentation, is this model no longer open for contributions beyond v4.40.2?

Thank you very much for your time and support.
Wishing you a peaceful and warm day ahead!


Comments:
Hey @Kim-Ju-won ! Thanks for the very nice issue 🤗 And good catch indeed, if the model is deprecated, we're not opening it to more contributions. It was deprecated in https://github.com/huggingface/transformers/pull/30781 so unless a new important model is introduced that uses it as a backbone, for instance, we're not modifying it. cc @yonigozlan we should remove deprecated models from https://github.com/huggingface/transformers/issues/36978 ! @Kim-Ju-won feel free to jump in on other models processors! On actively maintained ones, contributions are very welcome 🙏 

Sorry I missed this! I will remove them now from the issue :)

@molbap @yonigozlan 
Thanks for the quick and clear response! 🙌

I'll take a look at other actively maintained models and see where I can contribute.  

Appreciate the guidance! 😄