2feaa30964f4393ce65a394253e180cb8f6e0dc1,luminoth/datasets/object_detection_dataset.py,ObjectDetectionDataset,_augment,#ObjectDetectionDataset#,54
Before Change
aug_fn = DATA_AUGMENTATION_STRATEGIES[aug_type]
random_number = tf.random_uniform([])
prob = aug_config.pop("prob", default_prob)
apply_aug_strategy = tf.less(random_number, prob)
augmented = tf.cond(
apply_aug_strategy,
lambda: aug_fn(image, bboxes, **aug_config),
lambda: {"image": image, "bboxes": bboxes}
After Change
aug_fn = DATA_AUGMENTATION_STRATEGIES[aug_type]
random_number = tf.random_uniform([])
prob = tf.to_float(aug_config.pop("prob", default_prob))
apply_aug_strategy = tf.less(random_number, prob)
augmented = tf.cond(
apply_aug_strategy,
lambda: aug_fn(image, aug_config, bboxes),
lambda: {"image": image, "bboxes": bboxes}
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
Project Name: tryolabs/luminoth
Commit Name: 2feaa30964f4393ce65a394253e180cb8f6e0dc1
Time: 2017-09-05
Author: iangtayler@gmail.com
File Name: luminoth/datasets/object_detection_dataset.py
Class Name: ObjectDetectionDataset
Method Name: _augment
Project Name: catalyst-team/catalyst
Commit Name: d1a87e5d39b075fdb1643315bddaec90d0c5c99b
Time: 2019-12-06
Author: tez.romach@gmail.com
File Name: catalyst/dl/scripts/trace.py
Class Name:
Method Name: trace_model_from_checkpoint
Project Name: catalyst-team/catalyst
Commit Name: d1a87e5d39b075fdb1643315bddaec90d0c5c99b
Time: 2019-12-06
Author: tez.romach@gmail.com
File Name: catalyst/dl/scripts/run.py
Class Name:
Method Name: main