Views
No views yet


| Task | Dataset | Metric | Value |
|---|---|---|---|
| Semantic Segmentation | Cityscapes | Single-scale mIoU | 82.70% (SOTA) |
| Image Classification | ImageNet-1k | Accuracy | 74.93% |
| Task | Model | Parameters |
|---|---|---|
| 99% Accu. in MNIST | WaveMix Lite-8/10 | 3566 |
| 90% Accu. in Fashion MNIST | WaveMix Lite-8/5 | 7156 |
| 80% Accu. in CIFAR-10 | WaveMix Lite-32/7 | 37058 |
| 90% Accu. in CIFAR-10 | WaveMix Lite-64/6 | 520106 |
$ pip install wavemix1import torch, wavemix
2from wavemix.SemSegment import WaveMix
3import torch
4
5model = WaveMix(
6 num_classes= 20,
7 depth= 16,
8 mult= 2,
9 ff_channel= 256,
10 final_dim= 256,
11 dropout= 0.5,
12 level=4,
13 stride=2
14)
15
16img = torch.randn(1, 3, 256, 256)
17
18preds = model(img) # (1, 20, 256, 256)1import torch, wavemix
2from wavemix.classification import WaveMix
3import torch
4
5model = WaveMix(
6 num_classes= 1000,
7 depth= 16,
8 mult= 2,
9 ff_channel= 192,
10 final_dim= 192,
11 dropout= 0.5,
12 level=3,
13 patch_size=4,
14)
15img = torch.randn(1, 3, 256, 256)
16
17preds = model(img) # (1, 1000)1import wavemix, torch
2from wavemix.sisr import WaveMix
3
4model = WaveMix(
5 depth = 4,
6 mult = 2,
7 ff_channel = 144,
8 final_dim = 144,
9 dropout = 0.5,
10 level=1,
11)
12
13img = torch.randn(1, 3, 256, 256)
14out = model(img) # (1, 3, 512, 512)1import wavemix, torch
2from wavemix import Level1Waveblock
3num_classes: int.depth: int.mult: int.ff_channel: int.final_dim: int.dropout: float between [0, 1], default 0..level: int.stride: int.initial_conv: str.patch_size: int.@misc{
p2022wavemix,
title={WaveMix: Multi-Resolution Token Mixing for Images},
author={Pranav Jeevan P and Amit Sethi},
year={2022},
url={https://openreview.net/forum?id=tBoSm4hUWV}
}
@misc{jeevan2022wavemix,
title={WaveMix: Resource-efficient Token Mixing for Images},
author={Pranav Jeevan and Amit Sethi},
year={2022},
eprint={2203.03689},
archivePrefix={arXiv},
primaryClass={cs.CV}
}
@misc{jeevan2023wavemix,
title={WaveMix: A Resource-efficient Neural Network for Image Analysis},
author={Pranav Jeevan and Kavitha Viswanathan and Anandu A S and Amit Sethi},
year={2023},
eprint={2205.14375},
archivePrefix={arXiv},
primaryClass={cs.CV}
}