YOLOS icon indicating copy to clipboard operation
YOLOS copied to clipboard

Adding YOLOS to HuggingFace Transformers

Open NielsRogge opened this issue 2 years ago • 6 comments

Hi YOLOS team :)

I've implemented YOLOS as a fork of 🤗 HuggingFace Transformers, and I'm going to add it soon to the library (see https://github.com/huggingface/transformers/pull/16848). Here's a notebook that illustrates inference with it: https://colab.research.google.com/drive/18ti9HrRoVE6d0vGBtnaeq93Tau3EYqOK?usp=sharing

The reason I'm adding YOLOS is because I really like the simplicity of it, compared to very complex frameworks such as Faster R-CNN and Mask R-CNN. I've added DETR previously also because it simplifies the task of object detection a lot.

As you may or may not know, any model on the HuggingFace hub has its own Github repository. E.g. the YOLOS-small checkpoint can be found here: https://huggingface.co/nielsr/yolos-s. If you check the "files and versions" tab, it includes the weights. The model hub uses git-LFS (large file storage) to use Git with large files such as model weights. This means that any model has its own Git commit history!

A model card can also be added to the repo, which is just a README.

Are you interested in creating an organization on the hub, such that we can store all model checkpoints there (rather than under my user name)?

Let me know!

Kind regards,

Niels ML Engineer @ HuggingFace

NielsRogge avatar Apr 20 '22 09:04 NielsRogge

Hi @NielsRogge, thanks for your and your team's interest in our work!

We are very glad to create an organization on the hub.

Yuxin-CV avatar Apr 20 '22 10:04 Yuxin-CV

huggingface/transformers#16848

Hey Niels,

Thank you so much for implementing YOLOS in HuggingFace Transformer.

I am the university professor/supervisor of github/hustvl. As you can see, in our group, we have many many awesome transformer-based computer vision methods, such as YOLOS, MIMDet, TeViT, and TopFormer. Besides, we have other SoTA vision methods, such as QueryInst, ByteTrack, SparseInst, and FairMOT.

We would like to create an organization on HuggingFace. The name of the organization could be "hustvl". Definitely, HuggingFace and hustvl will have a win-win cooperation.

Thanks a lot! Xinggang

xinggangw avatar Apr 20 '22 11:04 xinggangw

Awesome :) feel free to create an organization on hf.co. I can then put all YOLOS checkpoints there, such that people will be able to do (for instance):

from transformers import YolosForObjectDetection

model = YolosForObjectDetection.from_pretrained("hustvl/yolos-s")

It seems that you have many exciting models! We can definitely add more in the future.

NielsRogge avatar Apr 20 '22 12:04 NielsRogge

Awesome :) feel free to create an organization on hf.co. I can then put all YOLOS checkpoints there, such that people will be able to do (for instance):

from transformers import YolosForObjectDetection

model = YolosForObjectDetection.from_pretrained("hustvl/yolos-s")

It seems that you have many exciting models! We can definitely add more in the future.

@NielsRogge Done. The org URL is https://huggingface.co/hustvl. Thanks a lot.

xinggangw avatar Apr 20 '22 13:04 xinggangw

🥳 YOLOS is now available in HuggingFace Transformers: https://huggingface.co/docs/transformers/main/en/model_doc/yolos

All checkpoints can be found on the hub: https://huggingface.co/models?other=yolos. They come with inference widgets, meaning you can directly try out all YOLOS checkpoints in the browser on images that you upload (or click one of the "examples")

NielsRogge avatar May 03 '22 14:05 NielsRogge

🥳 YOLOS is now available in HuggingFace Transformers: https://huggingface.co/docs/transformers/main/en/model_doc/yolos

All checkpoints can be found on the hub: https://huggingface.co/models?other=yolos. They come with inference widgets, meaning you can directly try out all YOLOS checkpoints in the browser on images that you upload (or click one of the "examples")

Thank you for your great efforts! @NielsRogge

Yuxin-CV avatar May 04 '22 03:05 Yuxin-CV