hpi-xnor / BMXNet

(New version is out: https://github.com/hpi-xnor/BMXNet-v2) BMXNet: An Open-Source Binary Neural Network Implementation Based on MXNet
Apache License 2.0
349 stars 95 forks source link

ImportError: cannot import name 'transforms' #58

Closed kaivu1999 closed 5 years ago

kaivu1999 commented 5 years ago

Description

Not able to import transforms from mxnet

Environment info

CuDNN 7.1.4 Cuda 9.2 Nvcc V9.2.148

Using pthon3 and pip freeze results in :

astroid==2.2.5
backcall==0.1.0
certifi==2019.3.9
chardet==3.0.4
cycler==0.10.0
decorator==4.4.0
graphviz==0.8.4
idna==2.8
ipython==7.5.0
ipython-genutils==0.2.0
isort==4.3.20
jedi==0.13.3
kiwisolver==1.1.0
lazy-object-proxy==1.4.1
matplotlib==3.0.3
mccabe==0.6.1
-e git+https://github.com/hpi-xnor/mxnet.git@468fa60788b1d8f210f9ab45a65611bb7524e339#egg=mxnet&subdirectory=python
mxnet-cu92==1.4.1
numpy==1.14.6
parso==0.4.0
pexpect==4.7.0
pickleshare==0.7.5
pkg-resources==0.0.0
prompt-toolkit==2.0.9
ptyprocess==0.6.0
Pygments==2.4.0
pylint==2.3.1
pyparsing==2.4.0
python-dateutil==2.8.0
requests==2.22.0
six==1.12.0
traitlets==4.3.2
typed-ast==1.3.5
urllib3==1.25.2
wcwidth==0.1.7
wrapt==1.11.1

The git repository which can be seen just above mxnet-cu92==1.4.1 is due to setting up bmxnet in the same environment.

from mxnet.gluon.data.vision import transforms

Error Message:

>>> from mxnet.gluon.data.vision import transforms
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: cannot import name 'transforms'

I am not able to fix this?

kaivu1999 commented 5 years ago

I also raised the issue on MXNet repo. https://github.com/apache/incubator-mxnet/issues/15053#issue-447667530

yanghaojin commented 5 years ago

Hi, we have a new branch of BMXNet which supports Gluon and the latest MXNet version, please check it: https://github.com/hpi-xnor/BMXNet-v2