I am new to the tf.data API and trying to use it to load images from disk in the Dogs vs. Cats Redux: Kernels Edition Kaggle competition. To do this, I first created a pandas DataFrame named train_df with two columns – file_path containing the relative path of images and target containing the target labels 0 (for cat) and 1(for
Tag: tf.data.dataset
Invalid argument: Dimension -972891 must be >= 0
I have created a data pipeline using tf.data for speech recognition using the following code snippets: These snippets are borrowed from https://www.tensorflow.org/tutorials/audio/simple_audio#build_and_train_the_model. And my model is defined as below: When I start training process this error appears after a few iterations: Answer I have found that the issue happened in the padding step, I mean I’ve replaced the padding step