Skip to main content

Paper - Pytorch

Project description

Simba

graph A simpler Pytorch + Zeta Implementation of the paper: "SiMBA: Simplified Mamba-based Architecture for Vision and Multivariate Time series"

install

$ pip install simba-torch

usage

import torch 
from simba_torch.main import Simba

# Forward pass with images
img = torch.randn(1, 3, 224, 224)

# Create model
model = Simba(
    dim = 4,                # Dimension of the transformer
    dropout = 0.1,          # Dropout rate for regularization
    d_state=64,             # Dimension of the transformer state
    d_conv=64,              # Dimension of the convolutional layers
    num_classes=64,         # Number of output classes
    depth=8,                # Number of transformer layers
    patch_size=16,          # Size of the image patches
    image_size=224,         # Size of the input image
    channels=3,             # Number of input channels
    # use_pos_emb=True # If you want
)

# Forward pass
out = model(img)
print(out.shape)

License

MIT

Todo

  • Add paper link
  • Add citation bibtex
  • cleanup

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

simba_torch-0.0.5.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simba_torch-0.0.5-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file simba_torch-0.0.5.tar.gz.

File metadata

  • Download URL: simba_torch-0.0.5.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.0 Darwin/23.3.0

File hashes

Hashes for simba_torch-0.0.5.tar.gz
Algorithm Hash digest
SHA256 e619f4defed636bfe3d7218ede72c1dba003a0558a8372dda3a0e0bbd94240a2
MD5 7ab0ecc9a82ed0ff8c11b82febd08308
BLAKE2b-256 b1bc7f22a7bdd4166d258bea69751d8d09dc150f1a6eb885fb0a3d96b1c938da

See more details on using hashes here.

File details

Details for the file simba_torch-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: simba_torch-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.11.0 Darwin/23.3.0

File hashes

Hashes for simba_torch-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 46ac9b3296780b001b81ad79542bf14290683acbb600a99d130b756d4d470284
MD5 a0d9b29578cf64d0e0877e8410d95648
BLAKE2b-256 686841bc77be42bf45adc262e91ab96eafeefa90a07a4b3d3d8aa9461a5e9df2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page