Hey,
The model is having some difficulties predicting the pupil on a small subset of 2P mouse eyes.
I'm collecting images from those movies to improve the training dataset, but in the meantime, I found it to be extremely effective to simply invert the images that I feed to the net with:
import cv2 as cv
invertedFrame = cv.bitwise_not(frame)
It may be useful to add a toggle button to the webapp to invert images in case one is having problems.
Hey, The model is having some difficulties predicting the pupil on a small subset of 2P mouse eyes. I'm collecting images from those movies to improve the training dataset, but in the meantime, I found it to be extremely effective to simply invert the images that I feed to the net with:
It may be useful to add a toggle button to the webapp to invert images in case one is having problems.