I'm encountering an issue with this code and need some help resolving it.
These errors are impeding my progress, and I'm unsure how to proceed. Any immediate insights or guidance on resolving these issues would be immensely appreciated.
/usr/local/lib/python3.10/dist-packages/kornia/augmentation/augmentation.py:1830: DeprecationWarning: GaussianBlur is no longer maintained and will be removed from the future versions. Please use RandomGaussianBlur instead.
warnings.warn(
/usr/local/lib/python3.10/dist-packages/mxnet/numpy/utils.py:37: FutureWarning: In the future np.bool will be defined as the corresponding NumPy scalar.
bool = onp.bool
AttributeError Traceback (most recent call last)
in ()
11
12 from network.AEI_Net import AEI_Net
---> 13 from coordinate_reg.image_infer import Handler
14 from insightface_func.face_detect_crop_multi import Face_detect_crop
15 from arcface_model.iresnet import iresnet100
8 frames
/content/sber-swap/coordinate_reg/image_infer.py in
2 import numpy as np
3 import os
----> 4 import mxnet as mx
5 from skimage import transform as trans
6 import insightface
/usr/local/lib/python3.10/dist-packages/mxnet/__init__.py in
31 __version__ = base.__version__
32
---> 33 from . import contrib
34 from . import ndarray
35 from . import ndarray as nd
/usr/local/lib/python3.10/dist-packages/mxnet/contrib/__init__.py in
28 from . import tensorboard
29
---> 30 from . import text
31 from . import onnx
32 from . import io
/usr/local/lib/python3.10/dist-packages/mxnet/contrib/text/__init__.py in
21 from . import utils
22 from . import vocab
---> 23 from . import embedding
/usr/local/lib/python3.10/dist-packages/mxnet/contrib/text/embedding.py in
34 from ... import base
35 from ...util import is_np_array
---> 36 from ... import numpy as _mx_np
37 from ... import numpy_extension as _mx_npx
38
/usr/local/lib/python3.10/dist-packages/mxnet/numpy/__init__.py in
21 from . import random
22 from . import linalg
---> 23 from .multiarray import * # pylint: disable=wildcard-import
24 from . import _op
25 from . import _register
/usr/local/lib/python3.10/dist-packages/mxnet/numpy/multiarray.py in
45 from ..ndarray.numpy import _internal as _npi
46 from ..ndarray.ndarray import _storage_type, from_numpy
---> 47 from .utils import _get_np_op
48 from .fallback import * # pylint: disable=wildcard-import,unused-wildcard-import
49 from . import fallback
/usr/local/lib/python3.10/dist-packages/mxnet/numpy/utils.py in
35 int64 = onp.int64
36 bool_ = onp.bool_
---> 37 bool = onp.bool
38
39 pi = onp.pi
/usr/local/lib/python3.10/dist-packages/numpy/__init__.py in __getattr__(attr)
317
318 if attr in __former_attrs__:
--> 319 raise AttributeError(__former_attrs__[attr])
320
321 if attr == 'testing':
AttributeError: module 'numpy' has no attribute 'bool'.
`np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
I'm encountering an issue with this code and need some help resolving it. These errors are impeding my progress, and I'm unsure how to proceed. Any immediate insights or guidance on resolving these issues would be immensely appreciated.
/usr/local/lib/python3.10/dist-packages/kornia/augmentation/augmentation.py:1830: DeprecationWarning: GaussianBlur is no longer maintained and will be removed from the future versions. Please use RandomGaussianBlur instead. warnings.warn( /usr/local/lib/python3.10/dist-packages/mxnet/numpy/utils.py:37: FutureWarning: In the future
np.bool
will be defined as the corresponding NumPy scalar. bool = onp.boolAttributeError Traceback (most recent call last)