Skip to content

sleap-export: AttributeError: 'CentroidCropGroundTruth' object has no attribute 'keras_model' #2102

Closed Answered by gitttt-1234
AgolovaUCL asked this question in Help!
Discussion options

You must be logged in to vote

Hi @AgolovaUCL !

We won't be able to export a centered-instance model, because it needs the ground-truth centroids to crop the images. You could export a TopDown model with both centroid and centered-instance model, where the centroid model predicts the centroids of all instances in the image using which the images are cropped. The centered-instance model then predicts the keypoints in this cropped image.
You would be able to run inference (and get eval metrics) on just the centered-instance model, provided you have ground-truth data for centroids to crop the images. Sorry, we didn't explicitly mention in the sleap-export documentation, we just have it under the bonsai export guide.

Let u…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@AgolovaUCL
Comment options

@gitttt-1234
Comment options

Answer selected by gitttt-1234
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help!
Labels
None yet
2 participants