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

Fix incorrect use of img_rank field in EcoTaxa export metadata #70

Merged
merged 2 commits into from
Dec 19, 2024

Conversation

ethanjli
Copy link
Member

@ethanjli ethanjli commented Dec 4, 2024

This PR fixes a problem reported by @fabienlombard on the PlanktoScope Slack workspace, in which the segmenter's behavior to set the img_rank metadata field to the index of the image in the entire dataset was incorrect; that rank is instead supposed to be used to set a display priority among alternate images (e.g. brightfield vs fluorescence) corresponding to the same object. And EcoTaxa cannot handle img_rank values above ~32700, so larger datasets exported by the segmenter could not be imported to EcoTaxa. Now we just set img_rank to 1 for all object images, since we only export one image per object.

@ethanjli
Copy link
Member Author

This PR was approved for merging in the 2024-12-19 software meeting.

@ethanjli ethanjli added this pull request to the merge queue Dec 19, 2024
Merged via the queue into main with commit 500d978 Dec 19, 2024
5 checks passed
@ethanjli ethanjli deleted the fix/segmenter-image-rank branch December 19, 2024 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

None yet

1 participant