質問編集履歴
1
コード修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,8 +24,6 @@
|
|
24
24
|
|
25
25
|
random_crop = None, mix_up_alpha = 0.0, cutout_mask_size = 0):
|
26
26
|
|
27
|
-
# 親クラスのコンストラクタ
|
28
|
-
|
29
27
|
super().__init__(featurewise_center, samplewise_center, featurewise_std_normalization, samplewise_std_normalization,
|
30
28
|
|
31
29
|
zca_whitening, zca_epsilon, rotation_range, width_shift_range, height_shift_range, brightness_range,
|
@@ -34,9 +32,7 @@
|
|
34
32
|
|
35
33
|
rescale, preprocessing_function, data_format, validation_split)
|
36
34
|
|
37
|
-
|
35
|
+
|
38
|
-
|
39
|
-
# Random Crop
|
40
36
|
|
41
37
|
assert random_crop == None or len(random_crop) == 2
|
42
38
|
|
@@ -56,10 +52,6 @@
|
|
56
52
|
|
57
53
|
|
58
54
|
|
59
|
-
# ランダムクロップ
|
60
|
-
|
61
|
-
# 参考 https://jkjung-avt.github.io/keras-image-cropping/
|
62
|
-
|
63
55
|
def random_crop(self, original_img):
|
64
56
|
|
65
57
|
# Note: image_data_format is 'channel_last'
|