You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From a folder with a metadata file containing a "file_name" field for the names or paths to the images:
70
+
You can load a folder with a metadata file containing a field for the names or paths to the images, structured like this:
71
71
72
72
```
73
73
Example 1: Example 2:
@@ -79,6 +79,8 @@ folder/ folder/
79
79
└── imgNNN.png └── imgNNN.png
80
80
```
81
81
82
+
You can iterate on the images paths like this:
83
+
82
84
```python
83
85
import pandas as pd
84
86
@@ -88,7 +90,7 @@ for image_path in (folder_path + df["file_name"]):
88
90
...
89
91
```
90
92
91
-
Since the dataset is in a supported structure, you can save this dataset to Hugging Face and the Dataset Viewer shows both the metadata and images on Hugging Face.
93
+
Since the dataset is in a supported structure ("metadata.csv" file with "file_name" field), you can save this dataset to Hugging Face and the Dataset Viewer shows both the metadata and images on Hugging Face.
From a folder with a metadata file containing a "file_name" field for the names or paths to the audios:
128
+
You can load a folder with a metadata file containing a field for the names or paths to the audios, structured like this:
127
129
128
130
```
129
131
Example 1: Example 2:
@@ -135,6 +137,8 @@ folder/ folder/
135
137
└── recNNN.wav └── recNNN.wav
136
138
```
137
139
140
+
You can iterate on the audios paths like this:
141
+
138
142
```python
139
143
import pandas as pd
140
144
@@ -144,7 +148,7 @@ for audio_path in (folder_path + df["file_name"]):
144
148
...
145
149
```
146
150
147
-
Since the dataset is in a supported structure, you can save this dataset to Hugging Face and the Dataset Viewer shows both the metadata and audios on Hugging Face.
151
+
Since the dataset is in a supported structure ("metadata.csv" file with "file_name" field), you can save this dataset to Hugging Face and the Dataset Viewer shows both the metadata and audios on Hugging Face.
0 commit comments