region:us
#samples=5007831

```
dataset = load_dataset('lyakaap/laion2B-japanese-subset', split='train')
dataset = dataset.remove_columns(['LANGUAGE', 'NSFW', 'LICENSE', 'SAMPLE_ID'])
dataset = dataset.filter(lambda x: x['HEIGHT'] <= 384 and x['WIDTH'] <= 384)
dataset = dataset.filter(lambda x: x['HEIGHT'] >= 128 and x['WIDTH'] >= 128)
dataset = dataset.filter(lambda x: x['similarity'] >= 0.31)
dataset.push_to_hub('lyakaap/laion-mini-ja', token='XXX')
```