Upload set-classification.py
Browse files- set-classification.py +1 -1
set-classification.py
CHANGED
@@ -5,7 +5,7 @@ from datasets import DownloadManager
|
|
5 |
class SetClassification(datasets.GeneratorBasedBuilder):
|
6 |
"""Set-Classification Images dataset"""
|
7 |
|
8 |
-
def __init__(self, data_path, *args, **kwargs):
|
9 |
super(SetClassification, self).__init__(*args, **kwargs)
|
10 |
self.data_path = data_path
|
11 |
self.labels = pd.read_csv(f'{self.data_path}/labels.csv')
|
|
|
5 |
class SetClassification(datasets.GeneratorBasedBuilder):
|
6 |
"""Set-Classification Images dataset"""
|
7 |
|
8 |
+
def __init__(self, data_path='data', *args, **kwargs):
|
9 |
super(SetClassification, self).__init__(*args, **kwargs)
|
10 |
self.data_path = data_path
|
11 |
self.labels = pd.read_csv(f'{self.data_path}/labels.csv')
|