Open kaivu1999 opened 5 years ago
Hey, this is the MXNet Label Bot. Thank you for submitting the issue! I will try and suggest some labels so that the appropriate MXNet community members can help resolve it. Here are my recommended labels: Installation
I am able to get from mxnet import gluon
@kaivu1999 Can you try checking what installation is being used for mxnet?:
from mxnet import gluon
print(gluon.__file__)
If you are using the bmxnet, it does not contain the gluon.data.vision.transforms.py file. It is an old fork of mxnet and the transforms which are here on master https://github.com/apache/incubator-mxnet/blob/master/python/mxnet/gluon/data/vision/transforms.py are not present there https://github.com/hpi-xnor/BMXNet/tree/master/python/mxnet/gluon/data
Yeah I am have installed BMXnet as I want to use it. I installed mxnet first ofcourse, and then bmxnet in the same environment. Yeah I checked in an other virtual environment with only mxnet-cu92 installed it works !! So I can't use transforms while using in this particular environment ? Can something be done?
>>> from mxnet import gluon
>>> print(gluon.__file__)
/home/kaivalya/ntu_first/env/lib/python3.5/site-packages/mxnet/gluon/__init__.py
Here are a few options that might work:
import mxnet as mx
and bmxnet as bmx
. You can then specify that the vision transforms come from MXNet proper and everything else comes from BMXNet. I don't know if you will run into weird errors due to differences between mxnet and bmxnet if you do this, though.It may also be worth raising this as an issue on the BMXNet repo to see if they have any other ideas.
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 :
The git repository which can be seen just above mxnet-cu92==1.4.1 is due to setting up bmxnet in the same environment.
Error Message:
I am not able to fix this?