MouseLand / cellpose

a generalist algorithm for cellular segmentation with human-in-the-loop capabilities
https://www.cellpose.org/
BSD 3-Clause "New" or "Revised" License
1.33k stars 382 forks source link

Two style vector normalizations #888

Closed Soroush-aali-bagi closed 2 weeks ago

Soroush-aali-bagi commented 6 months ago

https://github.com/MouseLand/cellpose/blob/509ffca33737058b0b4e2e96d506514e10620eb3/cellpose/core.py#L234 I wonder why you normalize the style vector for the second time (link above), when you have already did it earlier here: https://github.com/MouseLand/cellpose/blob/509ffca33737058b0b4e2e96d506514e10620eb3/cellpose/core.py#L334

carsen-stringer commented 2 weeks ago

we are averaging the styles across tiles which doesn't guarantee they remain unit norm