質問編集履歴
2
エラーコードの全文を記載しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,6 +24,9 @@
|
|
24
24
|
/usr/local/lib/python3.8/dist-packages/tensorflow/python/data/ops/structured_function.py:264: UserWarning: Even though the `tf.config.experimental_run_functions_eagerly` option is set, this option does not apply to tf.data functions. To force eager execution of tf.data functions, please use `tf.data.experimental.enable_debug_mode()`.
|
25
25
|
warnings.warn(
|
26
26
|
---------------------------------------------------------------------------
|
27
|
+
/usr/local/lib/python3.8/dist-packages/tensorflow/python/data/ops/structured_function.py:264: UserWarning: Even though the `tf.config.experimental_run_functions_eagerly` option is set, this option does not apply to tf.data functions. To force eager execution of tf.data functions, please use `tf.data.experimental.enable_debug_mode()`.
|
28
|
+
warnings.warn(
|
29
|
+
---------------------------------------------------------------------------
|
27
30
|
ValueError Traceback (most recent call last)
|
28
31
|
<ipython-input-8-4e904f052eee> in <module>
|
29
32
|
9 evaluation_image = evaluation_image.astype('float32')/255
|
@@ -33,6 +36,13 @@
|
|
33
36
|
13 # 元画像との差分を計算
|
34
37
|
|
35
38
|
1 frames
|
39
|
+
/usr/local/lib/python3.8/dist-packages/keras/utils/traceback_utils.py in error_handler(*args, **kwargs)
|
40
|
+
65 except Exception as e: # pylint: disable=broad-except
|
41
|
+
66 filtered_tb = _process_traceback_frames(e.__traceback__)
|
42
|
+
---> 67 raise e.with_traceback(filtered_tb) from None
|
43
|
+
68 finally:
|
44
|
+
69 del filtered_tb
|
45
|
+
|
36
46
|
/usr/local/lib/python3.8/dist-packages/keras/engine/input_spec.py in assert_input_compatibility(input_spec, inputs, layer_name)
|
37
47
|
262 if spec_dim is not None and dim is not None:
|
38
48
|
263 if spec_dim != dim:
|
1
エラーコードの全文の記載をしました
test
CHANGED
File without changes
|
test
CHANGED
@@ -21,5 +21,24 @@
|
|
21
21
|
```
|
22
22
|
### エラーコード
|
23
23
|
```
|
24
|
-
|
24
|
+
/usr/local/lib/python3.8/dist-packages/tensorflow/python/data/ops/structured_function.py:264: UserWarning: Even though the `tf.config.experimental_run_functions_eagerly` option is set, this option does not apply to tf.data functions. To force eager execution of tf.data functions, please use `tf.data.experimental.enable_debug_mode()`.
|
25
|
+
warnings.warn(
|
26
|
+
---------------------------------------------------------------------------
|
27
|
+
ValueError Traceback (most recent call last)
|
28
|
+
<ipython-input-8-4e904f052eee> in <module>
|
29
|
+
9 evaluation_image = evaluation_image.astype('float32')/255
|
30
|
+
10 for e in evaluation_image:
|
31
|
+
---> 11 z_points = encoder.predict(e)
|
32
|
+
12 reconst_images = decoder.predict(z_points)
|
33
|
+
13 # 元画像との差分を計算
|
25
34
|
|
35
|
+
1 frames
|
36
|
+
/usr/local/lib/python3.8/dist-packages/keras/engine/input_spec.py in assert_input_compatibility(input_spec, inputs, layer_name)
|
37
|
+
262 if spec_dim is not None and dim is not None:
|
38
|
+
263 if spec_dim != dim:
|
39
|
+
--> 264 raise ValueError(f'Input {input_index} of layer "{layer_name}" is '
|
40
|
+
265 'incompatible with the layer: '
|
41
|
+
266 f'expected shape={spec.shape}, '
|
42
|
+
|
43
|
+
ValueError: Input 0 of layer "model_6" is incompatible with the layer: expected shape=(None, 300, 300, 3), found shape=(32, 300, 3)
|
44
|
+
```
|