Compact-Transformers

Escaping the Big Data Paradigm with Compact Transformers, 2021 (Train your Vision Transformers in 30 mins on CIFAR-10 with a single GPU!) (by SHI-Labs)

Compact-Transformers Alternatives

Similar projects and alternatives to Compact-Transformers

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better Compact-Transformers alternative or higher similarity.

Compact-Transformers reviews and mentions

Posts with mentions or reviews of Compact-Transformers. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-01.
  • Deep Dive into the Vision Transformers Paper (ViT)
    3 projects | news.ycombinator.com | 1 Dec 2023
    Yeah so I can get how that might be confusing. Sometimes code is clearer. So in the vanilla transformer you do a patch and then embed operation, right? A quick way to do that is actually with non-overlapping convolutions. Your strides are the same size as your kernel sizes. Look closely at Figure 2 (you can also see a visual representation in Figure 1 but I'll admit there is some artistic liberty there because we wanted to stress the combined patch and embed operation. Those are real outputs though. But basically yeah, change the stride so you overlap. Those create patches, then you embed. So we don't really call it a hybrid the same way you may call a 1x1 cov a channel wise linear.

    ViT https://github.com/SHI-Labs/Compact-Transformers/blob/main/s...

    CCT: https://github.com/SHI-Labs/Compact-Transformers/blob/main/s...

  • [D] Different input image size when using Visual Transformers
    2 projects | /r/MachineLearning | 26 May 2022
    After looking around for this type of architecture, it looks someone had this idea before me: https://github.com/SHI-Labs/Compact-Transformers
  • Will Transformers Take over Artificial Intelligence?
    5 projects | news.ycombinator.com | 10 Mar 2022
    > Are transformers competitive with (for example) CNNs on vision-related tasks when there's less data available?

    Typically no, but in some cases yes. Pure vision transformers suffer from too much global inductive bias and not enough local inductive bias. For vision problems LIB tends to be a pretty important part to learning vision problems. That's what made convolutions helpful in the first place. But the good news is that you don't need much. CCT[0] showed that early convs (1 or 2) was enough to get good performance. In fact, CCT gets ResNet50 level performance on CIFAR-10 with 15% the number of parameters[1]. This was done _without_ pre-training, which is what most papers with transformers do when reporting CIFAR numbers. We also have SOTA on Flowers102 which is a small dataset (~6.5k) but larger images (99.76% with pre-training, 97.19% without). So we can definitely have transformers work with datasets on the order of magnitude you're talking about. But keep in mind that transformers still like a lot of data augmentation.

    > I'm in an industry (building energy consumption prediction) where we can only generate around 10,000 to 100,000 datapoints (from simulation engines) for DL. Are transformers ever used with that scale of data?

    In short, yes. Feel free to open issues on our GH if you experience problems[2]. We've been trying to help people use our network for various types of problems.

    Disclosure: I'm one of the lead authors on CCT.

    [0] https://arxiv.org/abs/2104.05704

    [1] https://paperswithcode.com/sota/image-classification-on-cifa...

    [2] https://github.com/SHI-Labs/Compact-Transformers

  • A note from our sponsor - SaaSHub
    www.saashub.com | 1 May 2024
    SaaSHub helps you find the best software and product alternatives Learn more →

Stats

Basic Compact-Transformers repo stats
4
448
1.1
about 1 year ago

SHI-Labs/Compact-Transformers is an open source project licensed under Apache License 2.0 which is an OSI approved license.

The primary programming language of Compact-Transformers is Python.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com