Giter Club home page Giter Club logo

Comments (11)

sd12832 avatar sd12832 commented on August 19, 2024 1

I'll get a Python3 branch up and running tomorrow or day after!

from deepconvsep.

nkundiushuti avatar nkundiushuti commented on August 19, 2024

it's a known python3 pickle issue when loading pickled python2 files
https://stackoverflow.com/questions/11305790/pickle-incompatibility-of-numpy-arrays-between-python-2-and-3

from deepconvsep.

sd12832 avatar sd12832 commented on August 19, 2024
        u = pickle._Unpickler(f)
        u.encoding = 'latin1'
        p = u.load()
        return p

This is what I replaced the relevant code with.

I still got the error below:

Traceback (most recent call last):
  File "separate_dsd.py", line 336, in <module>
    main(sys.argv[1:])
  File "separate_dsd.py", line 333, in main
    train_auto(inputfile,outdir,model,0.3,30,25,32,513)
  File "separate_dsd.py", line 276, in train_auto
    sampleRate, audioObj = scipy.io.wavfile.read(filein)
  File "/usr/local/lib/python3.6/site-packages/scipy/io/wavfile.py", line 236, in read
    file_size, is_big_endian = _read_riff_chunk(fid)
  File "/usr/local/lib/python3.6/site-packages/scipy/io/wavfile.py", line 168, in _read_riff_chunk
    "understood.".format(repr(str1)))
ValueError: File format b'ID3\x04'... not understood.

from deepconvsep.

sd12832 avatar sd12832 commented on August 19, 2024

I believe it's something to do with your encoding. What should I change the encoding to?

from deepconvsep.

sd12832 avatar sd12832 commented on August 19, 2024

Wait a minute, the encoding was most definitely latin1. But I guess the extra mp3 tags are making the system fail. How would I solve this?

from deepconvsep.

nkundiushuti avatar nkundiushuti commented on August 19, 2024

you can't use it with mp3. must be wav. otherwise you have to change the file loader to something that supports mp3 like soundfile

from deepconvsep.

sd12832 avatar sd12832 commented on August 19, 2024

Yeah, it all works now! Thank you for all your help.

from deepconvsep.

radkoff avatar radkoff commented on August 19, 2024

Hey Sharan, if you could push the python3 changes to your fork (or submit it as a PR for a python3 branch of DeepConvSep), that would be awesome!

from deepconvsep.

nkundiushuti avatar nkundiushuti commented on August 19, 2024

from deepconvsep.

jcthink avatar jcthink commented on August 19, 2024

loading pickle error is solved by this line
params=pickle.load(f,encoding="latin1")

from deepconvsep.

jcthink avatar jcthink commented on August 19, 2024

Not able to read the wav file using scipy
I am getting the error as
ValueError: File format b'<!DO'... not understood.

from deepconvsep.

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.