accel-brain / accel-brain-code

The purpose of this repository is to make prototypes as case study in the context of proof of concept(PoC) and research and development(R&D) that I have written in my website. The main research topics are Auto-Encoders in relation to the representation learning, the statistical machine learning for energy-based models, adversarial generation networks(GANs), Deep Reinforcement Learning such as Deep Q-Networks, semi-supervised learning, and neural network language model for natural language processing.
https://accel-brain.co.jp
GNU General Public License v2.0
310 stars 92 forks source link

trying to import and getting error. My numpy version1.26.4 #30

Open verma53665 opened 7 months ago

verma53665 commented 7 months ago

from pygan._mxnet.gan_image_generator import GANImageGenerator

AttributeError Traceback (most recent call last) Cell In[53], line 2 1 # Import necessary modules from pygan library ----> 2 from pygan._mxnet.gan_image_generator import GANImageGenerator 4 # Set up logger (optional) 5 from logging import getLogger, StreamHandler, DEBUG

File c:\Users\anush\OneDrive\Desktop\defence framework\pythonProjectDefence\lib\site-packages\pygan_mxnet\gan_image_generator.py:2 1 # -- coding: utf-8 -- ----> 2 from accelbrainbase.computableloss._mxnet.l2_norm_loss import L2NormLoss 3 from accelbrainbase.extractabledata._mxnet.image_extractor import ImageExtractor 4 from accelbrainbase.iteratabledata._mxnet.unlabeled_image_iterator import UnlabeledImageIterator

File c:\Users\anush\OneDrive\Desktop\defence framework\pythonProjectDefence\lib\site-packages\accelbrainbase\computableloss_mxnet\l2_norm_loss.py:3 1 # -- coding: utf-8 -- 2 from accelbrainbase.computable_loss import ComputableLoss ----> 3 from mxnet.gluon.loss import Loss 4 from mxnet.gluon.loss import _reshape_like, _apply_weighting 7 class L2NormLoss(Loss, ComputableLoss):

File c:\Users\anush\OneDrive\Desktop\defence framework\pythonProjectDefence\lib\site-packages\mxnet__init.py:33 [30](file:///C:/Users/anush/OneDrive/Desktop/defence%20framework/pythonProjectDefence/lib/site-packages/mxnet/init.py:30) # version info [31](file:///C:/Users/anush/OneDrive/Desktop/defence%20framework/pythonProjectDefence/lib/site-packages/mxnet/init.py:31) version = base.version ---> [33](file:///C:/Users/anush/OneDrive/Desktop/defence%20framework/pythonProjectDefence/lib/site-packages/mxnet/init.py:33) from . import contrib ... ---> [27](file:///C:/Users/anush/OneDrive/Desktop/defence%20framework/pythonProjectDefence/lib/site-packages/mxnet/numpy/init.py:27) from .utils import * # pylint: disable=wildcard-import [28](file:///C:/Users/anush/OneDrive/Desktop/defence%20framework/pythonProjectDefence/lib/site-packages/mxnet/numpy/init__.py:28) from .function_base import # pylint: disable=wildcard-import 29 from .stride_tricks import # pylint: disable=wildcard-import

AttributeError: module 'mxnet.numpy.utils' has no attribute 'bool'