質問編集履歴

2

計算環境追記と動いているコード追記

2018/06/18 07:14

投稿

abshaiaiouysu
abshaiaiouysu

スコア7

test CHANGED
File without changes
test CHANGED
@@ -278,6 +278,18 @@
278
278
 
279
279
  計算環境はGoogleColaboratoryです。
280
280
 
281
+ ローカルのCPUで計算(OSは仮想マシンのUbuntu)でも同様のエラーが出ました。
282
+
283
+
284
+
285
+ https://github.com/eriklindernoren/Keras-GAN/blob/master/ccgan/ccgan.py
286
+
287
+ にあるCCGANのコードは、InstanceNormalizationの呼び出しで
288
+
289
+ エラーが出ることはないようです。しかし、Sequentialに書いてもFunctionalに書いても、
290
+
291
+ こちらのコードでは上述の結果になってしまいます。
292
+
281
293
 
282
294
 
283
295
 

1

LeakyReLUは不要なので削除(こちらも呼び出せなかったが)

2018/06/18 07:14

投稿

abshaiaiouysu
abshaiaiouysu

スコア7

test CHANGED
File without changes
test CHANGED
@@ -130,10 +130,6 @@
130
130
 
131
131
 
132
132
 
133
- from keras.layers.advanced_activations import LeakyReLU
134
-
135
-
136
-
137
133
 
138
134
 
139
135
  def build_encoder_decoder(input_shape=(224, 224, 3)):