Giter Site home page Giter Site logo

shivam1718 / hub Goto Github PK

View Code? Open in Web Editor NEW

This project forked from activeloopai/deeplake

0.0 0.0 0.0 2.75 MB

The fastest way to access and manage datasets for PyTorch and TensorFlow. Easily build scalable data pipelines. https://activeloop.ai

Home Page: https://activeloop.ai

License: Mozilla Public License 2.0

Dockerfile 0.08% Python 99.87% Shell 0.05%

hub's Introduction



Docs PyPI version PyPI version CircleCI codecov tweet

Activeloop's Hacktoberfest is extended till Nov 15! Check out our Hacktoberfest Project Dashboard to contribute!

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

Hub provides the fastest 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.

Contributors

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 torch

mnist = hub.load("mnist/mnist")
mnist = mnist.to_pytorch(lambda x: (x["data"], x["labels"]))

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

for image, label in train_loader:
    # 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")

Look at Hub in action on Google Colab

  • MNIST Classification with Hub and PyTorch
      Open In Colab

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!

Disclaimers

Similarly to other dataset management packages, Hub is a utility library that downloads and prepares public datasets. We do not host or distribute these datasets, vouch for their quality or fairness, or claim that you have license to use the dataset. It is your responsibility to determine whether you have permission to use the dataset under the dataset's license.

If you're a dataset owner and wish to update any part of it (description, citation, etc.), or do not want your dataset to be included in this library, please get in touch through a GitHub issue. Thanks for your contribution to the ML community!

hub's People

Contributors

davidbuniat avatar edogrigqv2 avatar abhinavtuli avatar sanchitvj avatar hugovk avatar mikayelh avatar sohamsshah avatar anselmoo avatar rohankmr414 avatar platipo avatar thisiseshan avatar prithviraj-maurya avatar aksh-02 avatar sudiptog81 avatar adi10hero avatar kzuri avatar zomglings avatar vagharsh avatar michizhou avatar rafaeelaudibert avatar sambhavbhurtel avatar valerianpereira avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.