Skip to main content

Pretrained keras 3 vision models

Project description

KerasFormers 🚀

License Keras Python

📖 Introduction

KerasFormers is a collection of models with pretrained weights, built entirely with Keras 3. It supports a range of tasks, including classification, object detection (DETR, RT-DETR, RT-DETRv2, RF-DETR, D-FINE, OWL-ViT, OWLv2), segmentation (SAM, SAM2, SAM3, SegFormer, DeepLabV3, EoMT, MaskFormer, Mask2Former, MobileViT-DeepLabV3), monocular depth estimation (Depth Anything V1, Depth Anything V2), feature extraction (DINO, DINOv2, DINOv3), vision-language modeling (CLIP, SigLIP, SigLIP2, MetaCLIP 2), speech recognition (Whisper), and more. It includes hybrid architectures like MaxViT alongside traditional CNNs and pure transformers. kerasformers includes custom layers and backbone support, providing flexibility and efficiency across various applications. For backbones, there are various weight variants like in1k, in21k, fb_dist_in1k, ms_in22k, fb_in22k_ft_in1k, ns_jft_in1k, aa_in1k, cvnets_in1k, augreg_in21k_ft_in1k, augreg_in21k, and many more.

⚡ Installation

From PyPI (recommended)

pip install -U kerasformers

From Source

pip install -U git+https://github.com/IMvision12/KerasFormers

📑 Documentation

Per-model guides with architecture notes, usage examples, and available pretrained weights live in the docs/ folder. You'll find dedicated pages for classification backbones (CaiT, ViT, ResNet, ConvNeXt, EfficientNet, Swin, and the 30+ other backbones listed below — all share the same XModel / XImageClassify two-class structure), segmentation (SAM family, SegFormer, DeepLabV3, EoMT, MaskFormer, Mask2Former, MobileViT), object detection (DETR variants, D-FINE, OWL-ViT, OWLv2), feature extraction (DINO v1/v2/v3), depth estimation (Depth Anything v1/v2), vision-language models (CLIP, SigLIP, SigLIP2, MetaCLIP 2), and speech recognition (Whisper).

📑 Models








📜 License

This project leverages timm and transformers for converting pretrained weights from PyTorch to Keras. For licensing details, please refer to the respective repositories.

🌟 Credits

  • The Keras team for their powerful and user-friendly deep learning framework
  • The Transformers library for its robust tools for loading and adapting pretrained models
  • The pytorch-image-models (timm) project for pioneering many computer vision model implementations
  • All contributors to the original papers and architectures implemented in this library

Citing

BibTeX

@misc{gc2025kerasformers,
  author = {Gitesh Chawda},
  title = {KerasFormers},
  year = {2025},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/IMvision12/KerasFormers}}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kerasformers-1.0.0.tar.gz (689.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kerasformers-1.0.0-py3-none-any.whl (841.9 kB view details)

Uploaded Python 3

File details

Details for the file kerasformers-1.0.0.tar.gz.

File metadata

  • Download URL: kerasformers-1.0.0.tar.gz
  • Upload date:
  • Size: 689.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kerasformers-1.0.0.tar.gz
Algorithm Hash digest
SHA256 27decb0454880892213fd89b46ef86851eb694bfe1c66c63c8f5a877c20e4a27
MD5 be56a37c153f25f8936ce8394942a916
BLAKE2b-256 0f90af21ba0650c1f1b31cea6f17a9095e36d6e40d40106d4075b85fd0bf053a

See more details on using hashes here.

Provenance

The following attestation bundles were made for kerasformers-1.0.0.tar.gz:

Publisher: release.yml on IMvision12/KerasFormers

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kerasformers-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: kerasformers-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 841.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for kerasformers-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4bb9375318b57559d86d015a9d84433d413f1bc8d5087fd8b45844134ff309ff
MD5 392b42702bce42556b7530927bf99454
BLAKE2b-256 9447eb14fdbe1046dfb6e903cdba55b9cf1cf6700716df6214f1b9e932dcf462

See more details on using hashes here.

Provenance

The following attestation bundles were made for kerasformers-1.0.0-py3-none-any.whl:

Publisher: release.yml on IMvision12/KerasFormers

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page