Giter Site home page Giter Site logo

k3-addons's Introduction

k3-addons: Additional multi-backend functionality for Keras 3.

Logo

K3 Addons supercharge your multibackend Keras 3 workflow, giving access to various innovative machine learning techniques. While Keras 3 offers a rich set of APIs, not everything can be included in the core APIs due to less generic usage. K3 Addons bridges this gap, ensuring you're not limited by the core Keras 3 library. These add-ons might include various attention mechanisms for Text and Image Data, advanced optimizers, or specialized layers tailored for unique data types. With K3 Addons, you'll gain the flexibility to tackle emerging ML challenges and push the boundaries of what's possible with Keras 3.

Installation

To Install K3 Addons simply run following command in your environment:

pip install k3-addons

Includes:

Currently includes layers, losses, and activations API.

  • Layers

  • Pooling:

    • k3_addons.layers.AdaptiveAveragePooling1D

      Multibackend Implementation of torch.nn.AdaptiveAvgPool1d. The results are close to PyTorch.

    • k3_addons.layers.AdaptiveMaxPooling1D

      Multibackend Implementation of torch.nn.AdaptiveMaxPool1d. The results are close to PyTorch.

    • k3_addons.layers.AdaptiveAveragePooling2D

      Multibackend Implementation of torch.nn.AdaptiveAvgPool2d. The results are close to PyTorch.

    • k3_addons.layers.AdaptiveMaxPooling2D

      Multibackend Implementation of torch.nn.AdaptiveMaxPool2d. The results are close to PyTorch.

    • k3_addons.layers.Maxout

      Multibackend port of tensorflow_addons.layers.Maxout. Paper

  • Normalization

    • k3_addons.layers.InstanceNormalization

      Specific case of keras.layers.GroupNormalization since it normalizes all features of one channel. The Groupsize is equal to the channel size.

  • Attention:

    • k3_addons.layers.DoubleAttention

    Paper

    • k3_addons.layers.AFTFull

    An Attention Free Transformer

    • k3_addons.layers.ChannelAttention2D
    • k3_addons.layers.SpatialAttention2D
    • k3_addons.layers.ECAAttention

    ECA-Net: Efficient Channel Attention for Deep Convolutional Neural Networks

    • k3_addons.layers.ExternalAttention

    Beyond Self-attention: External Attention using Two Linear Layers for Visual Tasks

    • k3_addons.layers.ResidualAttention

    Residual Attention: A Simple but Effective Method for Multi-Label Recognition

    • k3_addons.layers.MobileViTAttention

    Coordinate Attention for Efficient Mobile Network Design

    • k3_addons.layers.BAMBlock
    • k3_addons.layers.CBAM
    • k3_addons.layers.MobileViTv2Attention

    Separable Self-attention for Mobile Vision Transformers

    • k3_addons.layers.ParNetAttention

    Non-deep Networks

    • k3_addons.layers.SimAM
  • Losses

    • k3_addons.losses.ContrastiveLoss
    • k3_addons.losses.GIoULoss
    • k3_addons.losses.PinballLoss
    • k3_addons.losses.SigmoidFocalCrossEntropy
    • k3_addons.losses.WeightedKappaLoss
    • k3_addons.losses.pairwise_distance
    • k3_addons.losses.pinball_loss
  • Activations

    • k3_addons.activations.hardshrink
    • k3_addons.activations.lisht
    • k3_addons.activations.mish
    • k3_addons.activations.snake
    • k3_addons.activations.tanhshrink

k3-addons's People

Contributors

anas-rz avatar

Stargazers

Soroush Moazed avatar  avatar Umar avatar Matthieu Thiboust avatar jlskytte avatar Uday Kumar Adusumilli avatar Jay shah avatar Felipe Menegazzi avatar Max Kukuškin avatar Simao (Sam) Eduardo avatar Sean Morgan avatar Ruibin Liu avatar Timothy Vincent avatar Muhammad Mahad khaliq avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.