Skip to content

plot_model bogus errorΒ #21815

@khteh

Description

@khteh
        plot_model(
            self._model,
            to_file="output/RNN_SignsLanguageDigits.png",
            show_shapes=True,
            show_dtype=True,
            show_layer_names=True,
            rankdir="TB",
            expand_nested=True,
            show_layer_activations=True)
"dot" with args ['-Tpng', '/tmp/tmpxa9l83z3/tmpxd55ygh6'] returned code: -6

stdout, stderr:
 b''
b"failed at node 1187[0]\ndot: maze.c:311: chkSgraph: Assertion `np->cells[0]' failed.\n"

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/usr/src/Python/pAIthon/RNN_SignsLanguageDigits.py", line 531, in <module>
    rnn.BuildModel(args.retrain)
    ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
  File "/usr/src/Python/pAIthon/RNN_SignsLanguageDigits.py", line 351, in BuildModel
    plot_model(
    ~~~~~~~~~~^
        self._model,
        ^^^^^^^^^^^^
    ...<5 lines>...
        expand_nested=True,
        ^^^^^^^^^^^^^^^^^^^
        show_layer_activations=True)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/khteh/.local/share/virtualenvs/pAIthon-GaqEDHQT/lib/python3.13/site-packages/keras/src/utils/model_visualization.py", line 510, in plot_model
    dot.write(to_file, format=extension)
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/khteh/.local/share/virtualenvs/pAIthon-GaqEDHQT/lib/python3.13/site-packages/pydot/core.py", line 1730, in write
    s = self.create(prog, format, encoding=encoding)
  File "/home/khteh/.local/share/virtualenvs/pAIthon-GaqEDHQT/lib/python3.13/site-packages/pydot/core.py", line 1844, in create
    assert process.returncode == 0, (
           ^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: "dot" with args ['-Tpng', '/tmp/tmpxa9l83z3/tmpxd55ygh6'] returned code: -6

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions