前提
Google colabでUnetを行い、ロスを下げるためにデータセットを見直しました。
しかし、新しくエラーが出るようになりました。
train_step(image,alpha) ←この部分でエラーが出ています。
Input 0 of layer "model" is incompatible with the layer: expected shape=(None, 128, 128, 3), found shape=(50, 128, 128, 4)
これは何を指しているのでしょうか?またどのように変更すれば良いのでしょうか?
実現したいこと
Unetのエラーを解決したい
エラー文
ValueError: in user code:
File "<ipython-input-4-78d0837b4be5>", line 112, in train_step * predictions = model(image) File "/usr/local/lib/python3.7/dist-packages/keras/utils/traceback_utils.py", line 67, in error_handler ** raise e.with_traceback(filtered_tb) from None File "/usr/local/lib/python3.7/dist-packages/keras/engine/input_spec.py", line 264, in assert_input_compatibility raise ValueError(f'Input {input_index} of layer "{layer_name}" is ' ValueError: Input 0 of layer "model" is incompatible with the layer: expected shape=(None, 128, 128, 3), found shape=(50, 128, 128, 4)
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。





回答1件
あなたの回答
tips
プレビュー