brainglobe / brainglobe-workflows

Workflows that utilise BrainGlobe tools to perform data analysis and visualisation.
BSD 3-Clause "New" or "Revised" License
9 stars 2 forks source link

indexing error, analysis step fails #42

Closed viktorpm closed 8 months ago

viktorpm commented 1 year ago

Describe the bug Cellfinder ran with the pre-trained network without any issues. After retraining the network the analysis step failed with the error message: IndexError: index 367 is out of bounds for axis 2 with size 367

The analysis folder with the summary.csv was not created. Classification ran and I was able to visualize the cells.

I'm working with rat data and used the Waxholm Space atlas of the Sprague Dawley rat brain for the registration step. Initially, it was not perfect so I thought that might have been causing the issue but got the same error even with a fairly good registration.

I tried using another trained model (not the best-performing one) but it didn't help. I only have this issue with one animal. It runs on six others with similar parameters without an issue.

Log files cellfinder.out.txt cellfinder.err.txt

adamltyson commented 1 year ago

I think this is a general issue and I suspect the error is something along the lines of:

Two possible solutions:

adamltyson commented 1 year ago

This is linked to cellfinder-napari PRs https://github.com/brainglobe/cellfinder-napari/pull/117 & https://github.com/brainglobe/cellfinder-napari/pull/153