6ecffe54690da84be104cbb2ec8a709f6b2a7fd3,data_augment.py,,augment,#Any#Any#,4

Before Change


	if config.use_vertical_flips:
		print("Warning: not yet implemented")
	print(img_data)
	pdb.set_trace()
	return img_data

After Change


	if config.use_vertical_flips:
		if np.random.randint(0, 2) == 0:
			img = cv2.flip(img, 0)
			for bbox in img_data["bboxes"]:
				y1 = bbox["y1"]
				y2 = bbox["y2"]
				bbox["y2"] = rows - y1
				bbox["y1"] = rows - y2

	for bbox in img_data["bboxes"]:
		x1 = bbox["x1"]
		x2 = bbox["x2"]
		y1 = bbox["y1"]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: kbardool/keras-frcnn
Commit Name: 6ecffe54690da84be104cbb2ec8a709f6b2a7fd3
Time: 2017-02-03
Author: yannhenon@gmail.com
File Name: data_augment.py
Class Name:
Method Name: augment


Project Name: azavea/raster-vision
Commit Name: afeec8a22c2936dd9b2a94eec64cd89442fe9598
Time: 2019-01-03
Author: jmcclain@azavea.com
File Name: rastervision/data/label_store/semantic_segmentation_raster_store.py
Class Name: SemanticSegmentationRasterStore
Method Name: save


Project Name: vitchyr/rlkit
Commit Name: 0030a2dd021c5ae0c67536ab64bbe6bf89c6493e
Time: 2018-11-27
Author: vitchyr@gmail.com
File Name: examples/her/her_td3.py
Class Name:
Method Name: experiment


Project Name: vitchyr/rlkit
Commit Name: 77ea92f681ad145c755147267d36ec4ba59310c9
Time: 2018-12-04
Author: vitchyr@gmail.com
File Name: examples/her/her_td3.py
Class Name:
Method Name: experiment