Unofficial implementations of transfomers models for vision.
Project description
VisTrans
Implementations of transformers based models for different vision tasks
Install
- Install from PyPI
pip install vistrans
- Install from Anaconda
conda install -c nachiket273 vistrans
Version 0.003 (06/30/2021)
Minor fixes to fix issues with existing models.
Version 0.002 (04/17/2021)
Pretrained Pytorch Bottleneck Transformers for Visual Recognition including following
- botnet50
- botnet101
- botnet152
Implementation based off Official Tensorflow Implementation
Usage
pip install vistrans
1) List Pretrained Models.
```Python
from vistrans import BotNet
BotNet.list_pretrained()
- Create Pretrained Models.
from vistrans import BotNet
model = BotNet.create_pretrained(name, img_size, in_ch, num_classes,
n_heads, pos_enc_type)
- Create Custom Model
from vistrans import BotNet
model = BotNet.create_model(layers, img_size, in_ch, num_classes, groups,
norm_layer, n_heads, pos_enc_type)
Version 0.001 (03/04/2021)
Pretrained Pytorch Vision Transformer Models including following
- vit_s16_224
- vit_b16_224
- vit_b16_384
- vit_b32_384
- vit_l16_224
- vit_l16_384
- vit_l32_384
Implementation based off official jax repository and timm's implementation
Usage
- List Pretrained Models.
from vistrans import VisionTransformer
VisionTransformer.list_pretrained()
- Create Pretrained Models.
from vistrans import VisionTransformer
model = VisionTransformer.create_pretrained(name, img_size, in_ch, num_classes)
- Create Custom Model
from vistrans import VisionTransformer
model = VisionTransformer.create_model(img_size, patch_size, in_ch, num_classes,
embed_dim, depth, num_heads, mlp_ratio,
drop_rate, attention_drop_rate, hybrid,
norm_layer, bias)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vistrans-0.0.3.tar.gz.
File metadata
- Download URL: vistrans-0.0.3.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae0b22f8fc9a9768b229077b39430a4ed5efe42c9267cf1b307f8ef3d48e44e8
|
|
| MD5 |
59b41da566dcd8ff60cc0c0f6ff6f87b
|
|
| BLAKE2b-256 |
3a2047fa1e7af03d9821a90fa4645ec9ee698d185b1f5baa418fc8708a668c5b
|
File details
Details for the file vistrans-0.0.3-py3-none-any.whl.
File metadata
- Download URL: vistrans-0.0.3-py3-none-any.whl
- Upload date:
- Size: 11.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90a926b276d5149bf64d81a0928477d46f86ebdcb09a7dc9683f115d9b0454b4
|
|
| MD5 |
6d6c7e29a5075b3e7f6395299ae3b7e3
|
|
| BLAKE2b-256 |
c6fb98afc3f221f1733d5ee3ff56297225059bb6d8f6f26111c1243cc71c1e44
|