Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError: tuple index out of range #17

Open
ranck626 opened this issue May 2, 2023 · 1 comment
Open

IndexError: tuple index out of range #17

ranck626 opened this issue May 2, 2023 · 1 comment

Comments

@ranck626
Copy link

ranck626 commented May 2, 2023

Traceback (most recent call last):
File "main.py", line 150, in
model_wrapper.test()
File "/usr/local/lib/python3.8/site-packages/torch/autograd/grad_mode.py", line 49, in decorate_no_grad
return func(*args, **kwargs)
File "/content/drive/MyDrive/Cell-DETR/model_wrapper.py", line 421, in test
misc.plot_instance_segmentation_labels(
File "/content/drive/MyDrive/Cell-DETR/misc.py", line 435, in plot_instance_segmentation_labels
instances_map += np.array(colors_traps[min(counter_trap_instance, len(colors_cells) - 1)]).reshape(1, 1, 3)
IndexError: tuple index out of range

@ranck626
Copy link
Author

ranck626 commented May 3, 2023

This problem sometimes appears and sometimes does not. weird

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant