tfds.show_examples rows parameter does work properly
Short description Say I have loaded a dataset using tfds & if I use tfds.show_exmaples to plot examples. the argument for number of rows does not work properly. It seems to plot rows = argument value +1 (seems like its following 0 based index or something). I know its nitpicking at this moment but thought I'll report it anyway. Thanks
Environment information I'm using google colab
- Operating System: google colab
- Python version: 3.6.8
tensorflow-datasets/tfds-nightlyversion: tensorflow-datasets 2.1.0tensorflow/tensorflow-gpu/tf-nightly/tf-nightly-gpuversion: tensorflow 2.1
Reproduction instructions
import tensorflow_datasets as tfds
ds_train, info_train = tfds.load('cats_vs_dogs', split= 'train[:80%]', with_info= True)
tfds.show_examples(info_train, ds_train, rows= 1, cols = 3)
This seems to show 2 rows instead of 1
Expected behavior This should have printed only 1 row
@nirajkale Please see this colab notebook its been updated but pip package you are using is not been updated yet. So for correct use you can clone repo.
Edit: You can use tfds-nightly, pip install tfds-nightly it also works fine see colab
@nirajkale please close this issue you can use tfds-nightly
Thanks will use tfds-nightly