DeepTrackAI / DeepTrack2

DeepTrack2
MIT License
162 stars 49 forks source link

TypeError: '<' not supported between instances of 'float' and 'list' #125

Closed XinyueZhang831 closed 2 years ago

XinyueZhang831 commented 2 years ago

Hi,

thank you for this great package. I am currently working on the multiple particle tracking colab notebook and found the error but don't know how to fix it. It would be great if I can get any help.

/usr/local/lib/python3.7/dist-packages/deeptrack/optics.py:357: UserWarning: Likely bad optical parameters. NA / wavelength resolution magnification = 15.98571280696451 should be at most 0.5 To fix, set magnification to 32.0, and downsample the resulting image with dt.AveragePooling((32.0, 32.0, 1))

""" /usr/local/lib/python3.7/dist-packages/deeptrack/optics.py:259: RuntimeWarning: invalid value encountered in sqrt

21 frames /usr/local/lib/python3.7/dist-packages/deeptrack/augmentations.py in (p) 145 super().init( 146 p=p, --> 147 augment=(lambda p: np.random.rand() < p) if augment is None else augment, 148 **kwargs, 149 )

TypeError: '<' not supported between instances of 'float' and 'list'