a5d0580eab128b9729d042965f517b85dc67040d,tensorflow_datasets/image/kitti.py,Kitti,_split_generators,#Kitti#Any#,101
Before Change
"annotations": os.path.join(_DATA_URL, _LABELS_FNAME),
}
files = dl_manager.download(filenames)
return [
tfds.core.SplitGenerator(
name=tfds.Split.TRAIN,
gen_kwargs={
"images": dl_manager.iter_archive(files["images"]),
"annotations": dl_manager.iter_archive(files["annotations"]),
"subdir": "training",
}),
]
def _generate_examples(self, images, annotations, subdir):
Yields images and annotations.
After Change
train_images, validation_images, test_images = _build_splits(
dl_manager.iter_archive(files["devkit"]))
return [
tfds.core.SplitGenerator(
name=tfds.Split.TRAIN,
gen_kwargs={
"images": dl_manager.iter_archive(files["images"]),
"annotations": dl_manager.iter_archive(files["annotations"]),
"subdir": "training",
"image_ids": train_images,
}),
tfds.core.SplitGenerator(
name=tfds.Split.VALIDATION,
gen_kwargs={
"images": dl_manager.iter_archive(files["images"]),
"annotations": dl_manager.iter_archive(files["annotations"]),
"subdir": "training",
"image_ids": validation_images,
}),
tfds.core.SplitGenerator(
name=tfds.Split.TEST,
gen_kwargs={
"images": dl_manager.iter_archive(files["images"]),
"annotations": dl_manager.iter_archive(files["annotations"]),
"subdir": "training",
"image_ids": test_images,
}),
]
def _generate_examples(self, images, annotations, subdir, image_ids):
Yields images and annotations.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: tensorflow/datasets
Commit Name: a5d0580eab128b9729d042965f517b85dc67040d
Time: 2019-07-15
Author: no-reply@google.com
File Name: tensorflow_datasets/image/kitti.py
Class Name: Kitti
Method Name: _split_generators
Project Name: tensorflow/datasets
Commit Name: 6a0b1657c0b5619c8360f40e735253fa39e4e55a
Time: 2019-10-24
Author: yaozhaoyz@google.com
File Name: tensorflow_datasets/summarization/gigaword.py
Class Name: Gigaword
Method Name: _split_generators
Project Name: tensorflow/datasets
Commit Name: ecf2583ed663faa52da43a058189c799392e6502
Time: 2019-04-01
Author: navinmohan81@gmail.com
File Name: tensorflow_datasets/image/scene_parse_150.py
Class Name: SceneParse150
Method Name: _split_generators