Update fiftyone.py
Browse files- fiftyone.py +2 -1
fiftyone.py
CHANGED
@@ -6,7 +6,8 @@ class FashionopediaLoader(fouh.BaseHuggingFaceLoader):
|
|
6 |
|
7 |
def load(self):
|
8 |
if isinstance(self.hf_dataset, datasets.DatasetDict):
|
9 |
-
|
|
|
10 |
if "name" in self.kwargs:
|
11 |
self.kwargs.pop("name")
|
12 |
dataset = fo.Dataset(name="fashionopedia-val", **self.kwargs)
|
|
|
6 |
|
7 |
def load(self):
|
8 |
if isinstance(self.hf_dataset, datasets.DatasetDict):
|
9 |
+
split_names = list(self.hf_dataset.keys())
|
10 |
+
self.hf_dataset = self.hf_dataset[split_names[0]]
|
11 |
if "name" in self.kwargs:
|
12 |
self.kwargs.pop("name")
|
13 |
dataset = fo.Dataset(name="fashionopedia-val", **self.kwargs)
|