agerada / AIgarMIC

AIgarMIC – machine-learning assisted agar dilution software
GNU General Public License v3.0
2 stars 2 forks source link

numpy deprecation warning - conversion of array to scalar #3

Closed agerada closed 3 months ago

agerada commented 3 months ago
C:\Users\Alessandro\miniconda3\envs\AIgarMIC\lib\site-packages\aigarmic\train.py:75: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)
    labels[int(label.numpy())] += 1

Will raise error in future. Either fix code as instructed, or constrain numpy dependence

agerada commented 3 months ago

see commit 6d49a6a