Datasets:

Tags:
Not-For-All-Audiences
Libraries:
Datasets
License:
danbooru-cleaned / filter.sh
ppbrown's picture
Update filter.sh
2ca0907 verified
raw
history blame contribute delete
548 Bytes
#
# This file is a utility to help you, if you are volunteering to cull
# images from the raw set at
# https://huggingface.co/datasets/animelover/danbooru2022/commits/main/data
#
# If you are on linux, you can download this script, and use it to
# automatically delete SOME of the problem images in a directory.
# Tune the word list to your preference.
# Use it to remove jpgs with the listed tag(s), by;
# rm $(sh filter.sh)
egrep -l 'pussy|penis|vagina|testicle|censor|watermark|signature|border|text,|reference sheet' *txt |sed 's/txt/jpg/'