Root package info.
Project description
Eqxvision
Eqxvision is a Python library providing computer vision models to the Equinox ecosystem.
Installation
Use the package manager pip to install foobar.
pip install eqxvision
Usage
import jax
import jax.random as jr
import equinox as eqx
from eqxvision.models import resnet18
@eqx.filter_jit
def forward(net, images, key):
keys = jax.random.split(key, images.shape[0])
jax.vmap(net)(images, key=keys)
net = resnet18(num_classes=1000)
images = jr.uniform(jr.PRNGKey(0), shape=(1,3,224,224))
output = forward(net, images, jr.PRNGKey(0))
Tips
- Use
jax.vmap(net, axis_name='batch')(images)
for models withbatchnorms
. - Don't forget to call
eqx.inference
for switching toinference
mode.
Roadmap
- Add VGGs, Inception, GoogLeNet
- Add/Explore functionality to load weights directly from torch.pth
- Doc fixes
- Build fixes
- Pre-commit Hooks
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Acknowledgements
License
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
eqxvision-0.0.1.tar.gz
(7.7 kB
view hashes)
Built Distribution
Close
Hashes for eqxvision-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2bce97091cbde1ef33341c2bab89eab8351d92c169ae8291ba2724ef4730675 |
|
MD5 | d4a32bb7b726a8ce3a63b5988b233b9c |
|
BLAKE2b-256 | dd0ee6ce0b72cf6b7cf1fa3f357df2b5110fd4348ecc48a6f1d742e770d59b3c |