Skip to main content

Pretrained keras 3 vision models

Project description

Keras Models 🚀

License Keras Python

📖 Introduction

Keras Models (kmodels) 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, RF-DETR, D-FINE), segmentation (SAM, SAM2, SAM3, SegFormer, DeepLabV3, EoMT), vision-language modeling (CLIP, SigLIP, SigLIP2), and more. It includes hybrid architectures like MaxViT alongside traditional CNNs and pure transformers. kmodels 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 kmodels

From Source

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

📑 Documentation

Topic Description
Backbone Models Classification backbones (ViT, ResNet, Swin, ConvNeXt, EfficientNet, and more) with usage examples and model listing

Segmentation

Model Description
SAM Segment Anything Model — promptable segmentation with points, boxes, or masks (ViT-B/L/H)
SAM2 Segment Anything Model 2 — next generation of promptable visual segmentation (Hiera Tiny/Small/Base+/Large)
SAM3 Segment Anything Model 3 — open-vocabulary detection + segmentation with CLIP text encoder (ViT-L/14)
SegFormer Transformer-based semantic segmentation with MLP decoder, Cityscapes & ADE20K weights
DeepLabV3 Atrous convolution-based semantic segmentation
EoMT Encoder-only Mask Transformer for panoptic segmentation

Object Detection

Model Description
DETR End-to-end object detection with Transformers (ResNet-50/101 backbones)
RT-DETR Real-time DETR with ResNet-vd backbone and hybrid encoder (ResNet-18/34/50/101 variants)
RF-DETR Real-time detection transformer (Nano, Small, Medium, Base, Large variants)
D-FINE Fine-grained distribution refinement detector with HGNetV2 backbone (Nano/Small/Medium/Large/XLarge)

Vision-Language Models

Model Description
CLIP Contrastive Language-Image Pre-training for zero-shot classification
SigLIP Sigmoid loss-based language-image pre-training with multilingual support
SigLIP2 Next-gen SigLIP with improved semantic understanding and 256K vocabulary

📑 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{gc2025kmodels,
  author = {Gitesh Chawda},
  title = {Keras Models},
  year = {2025},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/IMvision12/keras-models}}

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

kmodels-0.2.4.tar.gz (453.1 kB view details)

Uploaded Source

Built Distribution

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

kmodels-0.2.4-py3-none-any.whl (554.2 kB view details)

Uploaded Python 3

File details

Details for the file kmodels-0.2.4.tar.gz.

File metadata

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

File hashes

Hashes for kmodels-0.2.4.tar.gz
Algorithm Hash digest
SHA256 5a0ffcd33ac7384179803207c9fe0c3e5654ce0d2ec46edc5d113fa5b119bfa9
MD5 313560097b0e99d2355f5ce8f5269ec5
BLAKE2b-256 3fcf6acf1743564abedac68445b395234bdfd926aed7cff1ee5814319fd73010

See more details on using hashes here.

Provenance

The following attestation bundles were made for kmodels-0.2.4.tar.gz:

Publisher: release.yml on IMvision12/keras-models

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

File details

Details for the file kmodels-0.2.4-py3-none-any.whl.

File metadata

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

File hashes

Hashes for kmodels-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 62e71e0eb397db69d530a1412dfef087797d6e9a5d8e6ac57f08b8d135ba1041
MD5 efe02f6ee83467546a27763b98ad6a83
BLAKE2b-256 1028fb6a43486d1b5753fe1cd87c4b82dad38930a72057dfb05205b1f56c7f90

See more details on using hashes here.

Provenance

The following attestation bundles were made for kmodels-0.2.4-py3-none-any.whl:

Publisher: release.yml on IMvision12/keras-models

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