Commit
·
4695104
1
Parent(s):
d3371c1
Update text column handling in build_atlas_command to improve dataset compatibility
Browse files- atlas-export.py +6 -3
atlas-export.py
CHANGED
@@ -147,9 +147,12 @@ def build_atlas_command(args) -> tuple[list, str, Optional[Path]]:
|
|
147 |
if args.batch_size:
|
148 |
cmd.extend(["--batch-size", str(args.batch_size)])
|
149 |
|
150 |
-
#
|
151 |
-
|
152 |
-
|
|
|
|
|
|
|
153 |
|
154 |
if args.image_column:
|
155 |
cmd.extend(["--image", args.image_column])
|
|
|
147 |
if args.batch_size:
|
148 |
cmd.extend(["--batch-size", str(args.batch_size)])
|
149 |
|
150 |
+
# Only specify text column if provided or if not an image-only dataset
|
151 |
+
if args.text_column:
|
152 |
+
cmd.extend(["--text", args.text_column])
|
153 |
+
elif not args.image_column:
|
154 |
+
# Default to "text" only for text datasets (when no image column is specified)
|
155 |
+
cmd.extend(["--text", "text"])
|
156 |
|
157 |
if args.image_column:
|
158 |
cmd.extend(["--image", args.image_column])
|