93073ef18313015f2f45d9b54106ed98c8dc2579,mmdet/core/post_processing/merge_augs.py,,merge_aug_masks,#Any#Any#Any#Any#,81
Before Change
Returns:
tuple: (bboxes, scores)
recovered_masks = [
mask if not img_info[0]["flip"] else mask[..., ::-1]
for mask, img_info in zip(aug_masks, img_metas)
]
if weights is None:
merged_masks = np.mean(recovered_masks, axis=0)
else:
merged_masks = np.average(
After Change
flip = img_info[0]["flip"]
flip_direction = img_info[0]["flip_direction"]
if flip:
if flip_direction == "horizontal":
mask = mask[:, :, :, ::-1]
elif flip_direction == "vertical":
mask = mask[:, :, ::-1, :]
else:
raise ValueError(
f"Invalid flipping direction "{flip_direction}"")
recovered_masks.append(mask)
if weights is None:
merged_masks = np.mean(recovered_masks, axis=0)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 10
Instances
Project Name: open-mmlab/mmdetection
Commit Name: 93073ef18313015f2f45d9b54106ed98c8dc2579
Time: 2020-06-07
Author: xvjiarui0826@gmail.com
File Name: mmdet/core/post_processing/merge_augs.py
Class Name:
Method Name: merge_aug_masks
Project Name: analysiscenter/batchflow
Commit Name: 89f41f9280daceb58895f6a958c493f126db03bc
Time: 2019-12-05
Author: Tsimfer.SA@gazprom-neft.ru
File Name: batchflow/models/eager_torch/layers/resize.py
Class Name: Combine
Method Name: __init__
Project Name: automl/auto-sklearn
Commit Name: 9d0ed839dc9df4c9afc5966c1e3276c478a58d53
Time: 2020-09-16
Author: feurerm@informatik.uni-freiburg.de
File Name: scripts/update_metadata_util.py
Class Name:
Method Name: load_task
Project Name: snorkel-team/snorkel
Commit Name: 8a55bc7c982d291c9698d979c2e14bc79d396cd7
Time: 2019-08-13
Author: hancock.braden@gmail.com
File Name: snorkel/classification/models/advanced/advanced_classifier.py
Class Name: AdvancedClassifier
Method Name: forward