Skip to content

Commit a14684b

Browse files
committed
lint
1 parent d0f8851 commit a14684b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/make_image_hf_dataset.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@
159159
"import json\n",
160160
"from PIL import Image\n",
161161
"\n",
162+
"\n",
162163
"def generator(qa_file, image_folder, image_prefix):\n",
163164
" with open(qa_file, \"r\") as f:\n",
164165
" data = json.load(f)\n",
@@ -188,7 +189,7 @@
188189
"metadata": {},
189190
"outputs": [],
190191
"source": [
191-
"NUM_PROC = 32 # number of processes to use for multiprocessing, set to 1 for no multiprocessing\n",
192+
"NUM_PROC = 32 # number of processes to use for multiprocessing, set to 1 for no multiprocessing\n",
192193
"\n",
193194
"data_val = datasets.Dataset.from_generator(\n",
194195
" generator,\n",
@@ -249,7 +250,7 @@
249250
"metadata": {},
250251
"outputs": [],
251252
"source": [
252-
"data.push_to_hub(\"lmms-lab/VQAv2_TOY\") # replace lmms-lab to your username"
253+
"data.push_to_hub(\"lmms-lab/VQAv2_TOY\") # replace lmms-lab to your username"
253254
]
254255
},
255256
{

0 commit comments

Comments
 (0)