Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions dataset_import.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import tensorflow_datasets as tfds
import tensorflow as tf

# tfds works in both Eager and Graph modes
tf.compat.v1.enable_eager_execution()

# See available datasets
# print(tfds.list_builders())

# Construct a tf.data.Dataset
ds_test = tfds.load(name="voc2007", split=tfds.Split.TEST.subsplit(tfds.percent[25:75]))
print(ds_test.take(1))
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
matplotlib
matplotlib
tensorflow-datasets