Skip to content

ZeroDivisionError #69

@casperdcl

Description

@casperdcl

I have the same issue as #61 & #64 (and likely #62 & #63):

File "/opt/conda/lib/python3.12/site-packages/tensorboard_plugin_3d/plugin.py", line 173, in _find_next_images
  self.current_run = (int(idx) - 1) % len(self._all_runs)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ZeroDivisionError: integer modulo by zero

I'm using SyneRBI/PETRIC@16393ed; effectively:

monai.visualize.plot_2d_or_3d_image(np.clip(nchwd, 0, 1), step, tbX_sw, tag='image')

Note that the "Images" tab shows the GIF properly.

But the "3D" tab doesn't display, and forcefully loading the 3D plugin produces the ZeroDivisionError in tensorboard's logs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions