在 Colab 上运行 v4.5 时出错
作者: sulaimangari创建于 2022年12月1日更新于 2025年5月4日
Traceback (most recent call last):
File "style2paints/V4.5/s2p_v45_server/Style2PaintsV45_source.py", line 231, in <module>
tail_op_g, head_op_g, render_op_g, refs_img_g = make_graph()
File "style2paints/V4.5/s2p_v45_server/Style2PaintsV45_source.py", line 197, in make_graph
features = reader(ip3 / 255.0)
File "/usr/local/lib/python3.8/dist-packages/keras/utils/traceback_utils.py", line 70, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/usr/local/lib/python3.8/dist-packages/keras/engine/input_spec.py", line 295, in assert_input_compatibility
raise ValueError(
ValueError: Input 0 of layer "model_1" is incompatible with the layer: expected shape=(None, 224, 224, 3), found shape=(None, 128, 128, 3)内容来源: lllyasviel/style2paints