Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs : readme update for possible hub description use #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Leon-Gee
Copy link

hello i was hoping to help contributing with the aceess of this dataset through the open source hub package. i made an easy 2 line description of code on how to do this:

# Load kmnist-training set in python
import hub
ds = hub.load("hub://activeloop/kmnist-train")

# Load kmnist-test set in python
#ds = hub.load("hub://activeloop/kmnist-test")



# Checking out the first number and his label
import matplotlib.pyplot as plt
img = ds.images[0].numpy() 
plt.imshow(img)
plt.title(f"{ds.labels[0].numpy(aslist=True)}")
plt.show()

# train a model in pytorch
for sample in ds.pytorch():
    # ... model code here ...

# train a model in tensorflow
for sample in ds.tensorflow():
    # ... model code here ...

@Leon-Gee
Copy link
Author

If you would like me to review it let me know it:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant