GithubHelp home page GithubHelp logo

visiontransformers's Introduction

Vision Transformers

This lib is a collection of different vision transformers, also with some metric reports experimented on our own datasets. Currently supported transformers are:

  • ViT;
  • NesT;
  • DeiT;
  • DENO;

Welcome PR or do any experiments on your down datasets and report metric to us. This page will also report speed of very transformer compares with traditional CNNs.

Start

Before usage, please take examples folder as your reference. A simple usage could be:

import torch

from visiontransformers.formers.vit import ViT_b16


def test():
    model = ViT_b16(
        image_size=512,
        num_classes=10)
    
    print(model)
    a = torch.randn([1, 3, 512, 512])
    o = model(a)
    print(o.shape)


if __name__ == '__main__':
    test()

And that's all. You get your first ViT transformer model.

Roadmap

  • Speed benchmark on every model compares with baseline model such as Resnet50;
  • Add training result and metric report on some wild dataset;
  • Add some dense prediction task result such as semantic segmentation / depth estimation.
  • Keep tracking new breakthroughs in transformers direction.

visiontransformers's People

Stargazers

 avatar tridinh avatar Kiki R avatar  avatar MagicSource avatar Yunusemre avatar

Watchers

MagicSource avatar

Forkers

zumbalamambo

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.