You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tests/test_postProcessor.py:4: in
from openood.evaluation_api import Evaluator
.conda/lib/python3.10/site-packages/openood/evaluation_api/init.py:1: in
from .evaluator import Evaluator
.conda/lib/python3.10/site-packages/openood/evaluation_api/evaluator.py:11: in
from openood.evaluators.metrics import compute_all_metrics
.conda/lib/python3.10/site-packages/openood/evaluators/init.py:1: in
from .utils import get_evaluator
.conda/lib/python3.10/site-packages/openood/evaluators/utils.py:1: in
from openood.evaluators.mos_evaluator import MOSEvaluator
.conda/lib/python3.10/site-packages/openood/evaluators/mos_evaluator.py:13: in
from openood.postprocessors import BasePostprocessor
.conda/lib/python3.10/site-packages/openood/postprocessors/init.py:14: in
from .godin_postprocessor import GodinPostprocessor
.conda/lib/python3.10/site-packages/openood/postprocessors/godin_postprocessor.py:7: in
from openood.preprocessors.transform import normalization_dict
.conda/lib/python3.10/site-packages/openood/preprocessors/init.py:3: in
from .draem_preprocessor import DRAEMPreprocessor
.conda/lib/python3.10/site-packages/openood/preprocessors/draem_preprocessor.py:6: in
import imgaug.augmenters as iaa
.conda/lib/python3.10/site-packages/imgaug/init.py:7: in
from imgaug.imgaug import * # pylint: disable=redefined-builtin
.conda/lib/python3.10/site-packages/imgaug/imgaug.py:45: in
NP_FLOAT_TYPES = set(np.sctypes["float"])
.conda/lib/python3.10/site-packages/numpy/init.py:400: in getattr
raise AttributeError(
E AttributeError: np.sctypes was removed in the NumPy 2.0 release. Access dtypes explicitly instead.
As said in the last line, in Numpy 2.0 it is not allowed to define the following lines linked:
Hi, imgaug developers,
I was having the following error:
tests/test_postProcessor.py:4: in
from openood.evaluation_api import Evaluator
.conda/lib/python3.10/site-packages/openood/evaluation_api/init.py:1: in
from .evaluator import Evaluator
.conda/lib/python3.10/site-packages/openood/evaluation_api/evaluator.py:11: in
from openood.evaluators.metrics import compute_all_metrics
.conda/lib/python3.10/site-packages/openood/evaluators/init.py:1: in
from .utils import get_evaluator
.conda/lib/python3.10/site-packages/openood/evaluators/utils.py:1: in
from openood.evaluators.mos_evaluator import MOSEvaluator
.conda/lib/python3.10/site-packages/openood/evaluators/mos_evaluator.py:13: in
from openood.postprocessors import BasePostprocessor
.conda/lib/python3.10/site-packages/openood/postprocessors/init.py:14: in
from .godin_postprocessor import GodinPostprocessor
.conda/lib/python3.10/site-packages/openood/postprocessors/godin_postprocessor.py:7: in
from openood.preprocessors.transform import normalization_dict
.conda/lib/python3.10/site-packages/openood/preprocessors/init.py:3: in
from .draem_preprocessor import DRAEMPreprocessor
.conda/lib/python3.10/site-packages/openood/preprocessors/draem_preprocessor.py:6: in
import imgaug.augmenters as iaa
.conda/lib/python3.10/site-packages/imgaug/init.py:7: in
from imgaug.imgaug import * # pylint: disable=redefined-builtin
.conda/lib/python3.10/site-packages/imgaug/imgaug.py:45: in
NP_FLOAT_TYPES = set(np.sctypes["float"])
.conda/lib/python3.10/site-packages/numpy/init.py:400: in getattr
raise AttributeError(
E AttributeError:
np.sctypes
was removed in the NumPy 2.0 release. Access dtypes explicitly instead.As said in the last line, in Numpy 2.0 it is not allowed to define the following lines linked:
https://github.com/aleju/imgaug/blob/0101108d4fed06bc5056c4a03e2bcb0216dac326/imgaug/imgaug.py#L39C1-L41C40
I changed those lines to:
and worked for me. Is it okey to change those lines for the whole repo?
Thank you for your answer
The text was updated successfully, but these errors were encountered: