Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 16300

Removing Images from tf.data.Dataset by their frequency

$
0
0

So i am loading photos inside of tf.data.Dataset.

I want to remove photos, if their labeled counterparts are already present 100 times in dataset. how can i do that? for example if cat photo was already seen 101 time in tf.data.Dataset it would get removed.

Now data is already in tf.data.Dataset format, its loaded like this:

dataset = tf.keras.utils.image_dataset_from_directory(DATADIR, image_size=(2044, 1533), batch_size = None)

Viewing all articles
Browse latest Browse all 16300

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>