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)
Metadata
Release files for vistrans 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vistrans-0.0.3.tar.gz | 11.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vistrans-0.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.6 kB
Release files / vistrans-0.0.3.tar.gz
| Download URL | vistrans-0.0.3.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae0b22f8fc9a9768b229077b39430a4ed5efe42c9267cf1b307f8ef3d48e44e8
|
|
BLAKE2b-256 checksum How to use checksums |
3a2047fa1e7af03d9821a90fa4645ec9ee698d185b1f5baa418fc8708a668c5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / vistrans-0.0.3-py3-none-any.whl
| Download URL | vistrans-0.0.3-py3-none-any.whl |
|---|---|
| Size | 11.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
90a926b276d5149bf64d81a0928477d46f86ebdcb09a7dc9683f115d9b0454b4
|
|
BLAKE2b-256 checksum How to use checksums |
c6fb98afc3f221f1733d5ee3ff56297225059bb6d8f6f26111c1243cc71c1e44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|