Skip to content

Commit

Permalink
linting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbuniat committed Dec 1, 2020
1 parent 6a50176 commit fb35639
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions examples/upload_tfds.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
from hub.utils import Timer

if __name__ == "__main__":
path = "./data/test/tfds_new/eurosat"
path = "./data/test/tfds_new/coco"
with Timer("Eurosat TFDS"):
out_ds = hub.Dataset.from_tfds("coco")
out_ds = hub.Dataset.from_tfds("coco", num=100)
res_ds = out_ds.store(path)
ds = hub.load(path)
print(ds)
print(ds["image"].compute())
print(ds["image", 0].compute())
1 change: 0 additions & 1 deletion hub/api/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ def __init__(
self.username, self.dataset_name, self.meta
)


def _store_meta(self) -> dict:
meta = {
"shape": self.shape,
Expand Down

0 comments on commit fb35639

Please sign in to comment.