Git Product home page Git Product logo

compact-convolutional-transformer-pytorch-implementation's Introduction

Compact-Convolutional-Transformer-PyTorch-Implementation

This is a PyTorch implementation of the paper "Escaping the Big Data Paradigm with Compact Transformers". Link of the paper is https://arxiv.org/pdf/2104.05704.pdf

cct_diagram

You can set the following parameters according to your use case and compute power that you have, to define the CCT class. img_height = height of input image | img_width = width of input image | embedding_dim = size of embedding to be used in Transformer | n_conv_layers = number of covolutional layers in CCT | kernel_size = kernel size of convolutional layers in tokernizer | stride = stride used in convolutional layers | padding = padding used in convolutional layers | pooling_kernel_size = pooling size used in convolutional layers | pooling_stride = pooling stride in convolutional layers | pooling_padding = padding used in pooling | num_layers = number of layers or depth of the transformer | num_heads = number of heads of transformer | mlp_radio = MLP ratio to be used at the end of transformer | num_classes= number of classes that we want to predict | positional_embedding = 'learnable', # from ['sine', 'learnable', 'none']

compact-convolutional-transformer-pytorch-implementation's People

Contributors

sourabh-patil 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.