#StackBounty: #tensorflow #tensorflow-datasets Add image to tensorflow dataset

Bounty: 100

I am using Tensorflow tfds.load function to load my data:

import tensorflow_datasets as tfds
import tensorflow as tf

(raw_train, raw_validation, raw_test), metadata = tfds.load(
    'cats_vs_dogs',
    split=['train[:80%]', 'train[80%:90%]', 'train[90%:]'],
    with_info=True,
    as_supervised=True,
)

Now, I have some additional images of cats and dogs on my local pc (for example Cat1.jpg) I would like to add to these data. How can I do this?

(I have not just one file, but a lot and furthermore this is just a binary example, same question holds for multi-class case, so would be good to also have a solution for this.)


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.