GithubHelp home page GithubHelp logo

Comments (6)

tdhd avatar tdhd commented on June 14, 2024

Which version of mxnet do you have installed?

from datawig.

AeroClassics avatar AeroClassics commented on June 14, 2024

from datawig.

tdhd avatar tdhd commented on June 14, 2024

I guess this has to do with how you have installed mxnet. I just did a clean install of mxnet 1.4, via pip, into a new conda environment and the module was found. How have you installed mxnet?

from datawig.

AeroClassics avatar AeroClassics commented on June 14, 2024

I suppose I can believe that. I was following this tutorial. The main difference from the tutorial are:
OpenCV 3.4.5 (local build, rather than global)
Cuda 10
cuDNN for Cuda 10
TensorRT
Python 3.6
and I used one additional compiler flag USE_NCCL=1
gcc-6 & g++-6 (Does it matter whether it is gcc-6 or gcc-7?)

I can try again and see what happens.

from datawig.

AeroClassics avatar AeroClassics commented on June 14, 2024

Same error
Traceback (most recent call last):
File "test.py", line 8, in
mx.random.seed(1234)
AttributeError: module 'mxnet' has no attribute 'random'

I pulled a fresh copy using:
git clone --recursive https://github.com/apache/incubator-mxnet mxnet
cd mxnet
The I built it using:
make -j12 USE_OPENCV=1 USE_BLAS=openblas USE_CUDA=1 USE_CUDA_PATH=/usr/local/cuda USE_CUDNN=1 USE_NCCL=1 USE_NCCL_PATH=/usr/lib/x86_64-linux-gnu
cd ~/.virtualenvs/mxnet/lib/python3.6/site-packages/
ln -s ~/devel/software/mxnet mxnet
Did a workon mxnet
and python3 test.py

With that failing I tried to do the Python install as outlined here. Su:
cd python
pip install -e .
And added my OpenCV lib folder to the LD_LIBRARY_PATH

do python3 test.py
Get spit out:
ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'
ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'
And it appeared to hang. Next time I ran the program I got:
ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'
ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'
INFO:root:downloaded https://s3.us-east-2.amazonaws.com/mxnet-public/letter_recognition/letter-recognition.data into letter-recognition.data successfully
Epoch 0, Training ('accuracy', 0.434625)
Epoch 1, Training ('accuracy', 0.6516875)
Epoch 2, Training ('accuracy', 0.6968125)
Epoch 3, Training ('accuracy', 0.72875)
Epoch 4, Training ('accuracy', 0.7565)

Is this what I should be getting?

Thanks!

from datawig.

felixbiessmann avatar felixbiessmann commented on June 14, 2024

We fixed some issues with dependencies and tested the installation again. Following the instructions in the README should work, hence closing this issue, feel free to re-open if the problem persists.

from datawig.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.