Datasets:
philippemo
commited on
Commit
·
1942ea5
1
Parent(s):
4dab6d9
Update meta to disable warnings
Browse files- extract_images.py +5 -3
extract_images.py
CHANGED
@@ -50,13 +50,15 @@ def main():
|
|
50 |
|
51 |
ddf = dd.read_parquet(args.parquet_file)
|
52 |
|
53 |
-
results = ddf.apply(save_image,
|
|
|
|
|
54 |
image_column=args.image_column,
|
55 |
save_folder=args.save_folder,
|
56 |
format=args.format,
|
57 |
print_logs=args.print_logs)
|
58 |
-
results.compute()
|
59 |
|
60 |
|
61 |
if __name__ == "__main__":
|
62 |
-
main()
|
|
|
50 |
|
51 |
ddf = dd.read_parquet(args.parquet_file)
|
52 |
|
53 |
+
results = ddf.apply(save_image,
|
54 |
+
axis=1,
|
55 |
+
meta=(args.image_column, "str"),
|
56 |
image_column=args.image_column,
|
57 |
save_folder=args.save_folder,
|
58 |
format=args.format,
|
59 |
print_logs=args.print_logs)
|
60 |
+
results.compute()
|
61 |
|
62 |
|
63 |
if __name__ == "__main__":
|
64 |
+
main()
|