023331ec2a7b0086abfc81eca16c84a1692ee653,keras/layers/convolutional.py,Cropping3D,__init__,#Cropping3D#Any#Any#,1860
Before Change
self.cropping = tuple(cropping)
if len(self.cropping) != 3:
raise ValueError("`cropping` must be a tuple length of 3.")
if len(self.cropping[0]) != 2:
raise ValueError("`cropping[0]` must be a tuple length of 2.")
if len(self.cropping[1]) != 2:
raise ValueError("`cropping[1]` must be a tuple length of 2.")
if len(self.cropping[2]) != 2:
raise ValueError("`cropping[2]` must be a tuple length of 2.")
if data_format not in {"channels_last", "channels_first"}:
raise ValueError("data_format must be in {"channels_last", "channels_first"}.")
self.data_format = data_format
self.input_spec = [InputSpec(ndim=5)]
After Change
"1st entry of cropping")
dim2_cropping = conv_utils.normalize_tuple(cropping[1], 2,
"2nd entry of cropping")
dim3_cropping = conv_utils.normalize_tuple(cropping[2], 2,
"3rd entry of cropping")
self.cropping = (dim1_cropping, dim2_cropping, dim3_cropping)
else:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 7
Instances
Project Name: keras-team/keras
Commit Name: 023331ec2a7b0086abfc81eca16c84a1692ee653
Time: 2017-02-09
Author: francois.chollet@gmail.com
File Name: keras/layers/convolutional.py
Class Name: Cropping3D
Method Name: __init__
Project Name: keras-team/keras
Commit Name: 023331ec2a7b0086abfc81eca16c84a1692ee653
Time: 2017-02-09
Author: francois.chollet@gmail.com
File Name: keras/layers/convolutional.py
Class Name: Cropping2D
Method Name: __init__
Project Name: chrischoy/3D-R2N2
Commit Name: 310ecaab05e07f01e135365326d3023e576857e6
Time: 2016-08-21
Author: chrischoy208@gmail.com
File Name: lib/data_augmentation.py
Class Name:
Method Name: add_random_color_background
Project Name: chrischoy/3D-R2N2
Commit Name: 1829fcb631f11748c90df6985a7897050f2e6259
Time: 2016-08-21
Author: chrischoy208@gmail.com
File Name: lib/data_augmentation.py
Class Name:
Method Name: add_random_color_background