brainglobe / cellfinder

Automated 3D cell detection in very large images
https://brainglobe.info/documentation/cellfinder/index.html
BSD 3-Clause "New" or "Revised" License
181 stars 39 forks source link

[BUG] Path to trained model from `brainmapper` is a str, and doesn't have `.suffix` attribute #470

Closed alessandrofelder closed 1 week ago

alessandrofelder commented 2 weeks ago

Describe the bug We need the path to the keras model to be a Path to call .suffix on it, but brainmapper parses it as a string

To Reproduce run brainmapper and pass --trained-model <path to model>- thanks to @JRegg66 for reporting!

Expected behaviour We can pass trained models from brainmapper without issue.