Giter VIP home page Giter VIP logo

Comments (6)

Walid-Ahmed avatar Walid-Ahmed commented on July 17, 2024 3

@zhreshold @Jiakui
I tried option 2 and When I try to execute demo.py I got the same error message
AttributeError: 'module' object has no attribute 'Scale' ,

the file tools/find_mxnet is now as follows:-

import sys
sys.path.insert(0, '../mxnet/python')
try:
    import mxnet as mx
except ImportError:
    import os, sys
    curr_path = os.path.abspath(os.path.dirname(__file__))
    sys.path.append(os.path.join(curr_path, "../mxnet/python"))
    import mxnet as mx

I had MXNET successfully installed using instructions from http://mxnet.io/get_started/osx_setup.html#install-the-mxnet-package-for-python

Thanks

from mxnet-ssd.

Jiakui avatar Jiakui commented on July 17, 2024 2

I found the problem, I used the standard mxnet instead of your version.

from mxnet-ssd.

Jiakui avatar Jiakui commented on July 17, 2024

My question is, how should I run the demo.py if I don't install your fork of mxnet? I have installed the dmlc version of mxnet and it dosen't have the mx.symbol.Scale module.

from mxnet-ssd.

zhreshold avatar zhreshold commented on July 17, 2024

The extra layers are required.
But you don't necessary to install mxnet globally, use per-project mxnet is a better practice IMO.

from mxnet-ssd.

xhniu avatar xhniu commented on July 17, 2024

@zhreshold Sorry, i encounter this question too. How to fix it? I just finish all the operation as the github readme, how can i modify my mxnet project to run the demo.py, thank you.

from mxnet-ssd.

zhreshold avatar zhreshold commented on July 17, 2024

@xhniu If you followed all steps correctly, and still got this error, you should check if you have installed an official repo globally. If true, import mxnet will import that one first.
Two options

  1. Remove the mxnet-xxx.egg in your python global packages
  2. in tools/find_mxnet, insert path before import mxnet, e.g.
sys.path.insert(0, '../mxnet/python')
try:
  import mxnet as mx
...

from mxnet-ssd.

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.