Datasets:
philippemo
commited on
Commit
•
4dab6d9
1
Parent(s):
ffcb779
Disable dask string convert optimization
Browse files- extract_images.py +5 -1
extract_images.py
CHANGED
@@ -1,10 +1,14 @@
|
|
1 |
import os
|
|
|
2 |
from io import BytesIO
|
3 |
from PIL import Image
|
4 |
-
import argparse
|
5 |
|
|
|
6 |
import dask.dataframe as dd
|
7 |
|
|
|
|
|
|
|
8 |
def save_image(row, image_column, format, save_folder, print_logs):
|
9 |
row_id = row.name
|
10 |
|
|
|
1 |
import os
|
2 |
+
import argparse
|
3 |
from io import BytesIO
|
4 |
from PIL import Image
|
|
|
5 |
|
6 |
+
import dask
|
7 |
import dask.dataframe as dd
|
8 |
|
9 |
+
dask.config.set({"dataframe.convert-string": False})
|
10 |
+
|
11 |
+
|
12 |
def save_image(row, image_column, format, save_folder, print_logs):
|
13 |
row_id = row.name
|
14 |
|