Skip to content

Commit

Permalink
depricate load_sstable
Browse files Browse the repository at this point in the history
  • Loading branch information
Kefan Chen authored and Kefan Chen committed May 10, 2022
1 parent 83ac360 commit eca4a45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dataset_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ def load_single_image(img_path):
return input_pair(img_id, src_image, trt_image, rotation, translation, fov, rotation_pred)

ds = tf.data.Dataset.list_files(os.path.join(data_path, '*'))
ds = ds.flat_map(load_sstable)
ds = ds.flat_map(load_data)
ds = ds.map(load_images, num_parallel_calls=50).apply(
tf.data.experimental.ignore_errors()).repeat(epochs)
ds = ds.batch(batch_size, drop_remainder=True).prefetch(10)
return ds



0 comments on commit eca4a45

Please sign in to comment.