webp_dataset: Create a 'WebPDataset'.

Description Usage Arguments Examples

View source: R/image_dataset.R

Description

A WebP Image File Dataset that reads the WebP file.

Usage

1
webp_dataset(filenames)

Arguments

filenames

A tf.string tensor containing one or more filenames.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
## Not run: 
dataset <- webp_dataset(
    filenames = list("testdata/sample.webp")) %>%
  dataset_repeat(1)

sess <- tf$Session()
iterator <- make_iterator_one_shot(dataset)
next_batch <- iterator_get_next(iterator)

until_out_of_range({
  batch <- sess$run(next_batch)
  print(batch)
})

## End(Not run)

tfio documentation built on Dec. 25, 2019, 5:06 p.m.