Skip to main content

Snark Hub

Project description



Docs

The fastest way to access and manage datasets for PyTorch and TensorFlow

Hub provides fast access to the state-of-the-art datasets for Deep Learning, enabling data scientists to manage them, build scalable data pipelines and connect to Pytorch and Tensorflow

Problems with Current Workflows

We realized that there are a few problems related with current workflow in deep learning data management through our experience of working with deep learning companies and researchers. Most of the time Data Scientists/ML researchers work on data management and preprocessing instead of doing modeling. Deep Learning often requires to work with large datasets. Those datasets can grow up to terabyte or even petabyte size. It is hard to manage data, store, access, and version-control. It is time-consuming to download the data and link with the training or inference code. There is no easy way to access a chunk of it and possibly visualize. Wouldn’t it be more convenient to have large datasets stored & version-controlled as single numpy-like array on the cloud and have access to it from any machine at scale?

Getting Started

Access public data. Fast

We’ve talked the talk, now let’s walk through how it works:

pip3 install hub

You can access public datasets with a few lines of code.

import hub

mnist = hub.load("mnist/mnist")
mnist["data"][0:1000].compute()

Train a model

Load the data and directly train your model using pytorch

import hub
import pytorch

cifar = hub.load("cifar/cifar10")
cifar = cifar.to_pytorch()

train_loader = torch.utils.data.DataLoader(
        cifar, batch_size=1, num_workers=0, collate_fn=cifar.collate_fn
)

for images, labels in train_loader:
    # your training loop here

Upload your dataset and access it from anywhere in 3 simple steps

  1. Register a free account at Activeloop and authenticate locally
hub register
hub login
  1. Then create a dataset and upload
from hub import tensor, dataset

images = tensor.from_array(np.zeros((4, 512, 512)))
labels = tensor.from_array(np.zeros((4, 512, 512)))

ds = dataset.from_tensors({"images": images, "labels": labels})
ds.store("username/basic")
  1. Access it from anywhere else in the world, on any device having a command line.
import hub

ds = hub.load("username/basic")

For more advanced data pipelines like uploading large datasets or applying many transformations, please see docs.

Things you can do with Hub

  • Store large datasets with version-control
  • Collaborate as in Google Docs: Multiple data scientists working on the same data in sync with no interruptions
  • Access from multiple machines simultaneously
  • Integration with your ML tools like Numpy, Dask, PyTorch, or TensorFlow.
  • Create arrays as big as you want
  • Take a quick look on your data without redundant manipulations/in a matter of seconds/etc.

Use Cases

Examples

Activeloop’s Hub format lets you achieve faster inference at a lower cost. Test out the datasets we’ve converted into Hub format - see for yourself!

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

hub-0.10.0.2.tar.gz (24.2 kB view details)

Uploaded Source

Built Distribution

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

hub-0.10.0.2-py3-none-any.whl (70.6 kB view details)

Uploaded Python 3

File details

Details for the file hub-0.10.0.2.tar.gz.

File metadata

  • Download URL: hub-0.10.0.2.tar.gz
  • Upload date:
  • Size: 24.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.33.0 CPython/2.7.16

File hashes

Hashes for hub-0.10.0.2.tar.gz
Algorithm Hash digest
SHA256 96ca10f2b3e6f6f05a81bddb52ee6fc0b2dcf652adc46de900bacd2e15db33aa
MD5 9d0fe168be08799c9a872fcb4d4a266f
BLAKE2b-256 17358f8c7e9a2b93dd3c94a8daed9d9bfa1480920f1337e44949c09511da733d

See more details on using hashes here.

File details

Details for the file hub-0.10.0.2-py3-none-any.whl.

File metadata

  • Download URL: hub-0.10.0.2-py3-none-any.whl
  • Upload date:
  • Size: 70.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.19.1 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.33.0 CPython/2.7.16

File hashes

Hashes for hub-0.10.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b984f9eaabf08e162e37a28c504c53ffbd13759dcaa10fcc35343f0a52466afe
MD5 509a05962176057086ea9fcae55a9420
BLAKE2b-256 c5fce73e53e71030a84700831a61166ab476467c8bd2e071e370514e1eb39493

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