Skip to main content

Root package info.

Project description

Eqxvision

Eqxvision is a package of popular computer vision model architectures built using Equinox.

Installation

Use the package manager pip to install eqxvision.

pip install eqxvision

Usage

import jax
import jax.random as jr
import equinox as eqx
from eqxvision.models import alexnet

@eqx.filter_jit
def forward(net, images, key):
    keys = jax.random.split(key, images.shape[0])
    output = jax.vmap(net)(images, key=keys)
    ...
    
net = alexnet(num_classes=1000)

images = jr.uniform(jr.PRNGKey(0), shape=(1,3,224,224))
output = forward(net, images, jr.PRNGKey(0))
import equinox as eqx
from eqxvision.models import alexnet

net = alexnet(num_classes=1000)
net = eqx.tree_inference(net, True)

Tips

  • Checkout the documentation for a sample usage for each model;
  • Better to use @equinox.jit_filter instead of @jax.jit;
  • Use jax.vmap(net, axis_name='batch')(images) for models with batchnorms;
  • Don't forget to switch to inference mode for evaluations.

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

MIT

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

eqxvision-0.0.4a0.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

eqxvision-0.0.4a0-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file eqxvision-0.0.4a0.tar.gz.

File metadata

  • Download URL: eqxvision-0.0.4a0.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for eqxvision-0.0.4a0.tar.gz
Algorithm Hash digest
SHA256 7eef8339c948ae77821b3362079d4bc82ed3a917dc9040a20e43c54e8d116310
MD5 7849e0b1edae52bc46656f611b04d805
BLAKE2b-256 3e56ae1652f2ff3eadf64f169984265564b2db063f45ba2847e9f504c5f4829d

See more details on using hashes here.

File details

Details for the file eqxvision-0.0.4a0-py3-none-any.whl.

File metadata

  • Download URL: eqxvision-0.0.4a0-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for eqxvision-0.0.4a0-py3-none-any.whl
Algorithm Hash digest
SHA256 b75b9947e2096b46ccc133d25f237f4129848210e82aa2aa46291106f2c51aa2
MD5 6170b851a7af80325df6e1dc9dd5382d
BLAKE2b-256 8ec799478187ff0bfefd0820be3e21c11e37fbca55cab6ac41758bc540766f9e

See more details on using hashes here.

Supported by

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