GithubHelp home page GithubHelp logo

Comments (3)

handale88 avatar handale88 commented on June 26, 2024

I have also got the same error. If you find the solution, please let me know as well... :(

from deep_complex_networks.

OisinMoran avatar OisinMoran commented on June 26, 2024

So I had this same problem. What the file is trying to do is import a local package (one of the ones downloaded) but it doesn't know where to find it. In Train.py if you change this:

import musicnet.models.complex

to this:

import sys
# Change this to your own equivalent path
path = '/home/oisin/deep_complex_networks/musicnet' 
if path not in sys.path:
   sys.path.insert(0, path)

import musicnet.models.complex

it gets rid of that error, but gives a new (but similar) error:

ImportError: No module named 'bn'

which can be dealt with by first changing (deep_complex_networks/musicnet/musicnet/models/complex/)

from complexnn import ComplexConv1D, ComplexBN, ComplexDense, GetReal

to

import sys
# Again change this to your own equivalent path
path = '/home/oisin/deep_complex_networks'
if path not in sys.path:
   sys.path.insert(0, path)
from complexnn import ComplexConv1D, ComplexBN, ComplexDense, GetReal

and then changing (in deep_complex_networks/complexnn/_init_.py)

import bn, conv, dense, fft, init, norm, pool

to

from . import bn, conv, dense, fft, init, norm, pool

from deep_complex_networks.

OisinMoran avatar OisinMoran commented on June 26, 2024

@weibo053 and @handale88: Also make sure you are in the deep_complex_networks-master/musicnet directory and not just in deep_complex_networks-master. Have you both solved this issue yet?

from deep_complex_networks.

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.