Skip to content

Commit

Permalink
CSV2S3: Remove some MJ checks
Browse files Browse the repository at this point in the history
  • Loading branch information
bghira committed Nov 5, 2023
1 parent 27bc57b commit 7da351c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions toolkit/datasets/csv_to_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,11 +560,7 @@ def fetch_data(data, args, uri_column):
if (
hasattr(args, "midjourney_data_checks")
and args.midjourney_data_checks
and (
"image #" not in row[args.caption_field].lower()
or "upscaled" in row[args.caption_field].lower()
or "(fast)" in row[args.caption_field].lower()
)
and "image #" not in row[args.caption_field].lower()
):
# Midjourney's upscaler sucks. We only want single images, non-tiled.
logger.debug(f"Skipping: {row[args.caption_field]}")
Expand Down

0 comments on commit 7da351c

Please sign in to comment.