Comments (11)
I'll get a Python3 branch up and running tomorrow or day after!
from deepconvsep.
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.
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.
I believe it's something to do with your encoding. What should I change the encoding to?
from deepconvsep.
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.
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.
Yeah, it all works now! Thank you for all your help.
from deepconvsep.
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.
from deepconvsep.
loading pickle error is solved by this line
params=pickle.load(f,encoding="latin1")
from deepconvsep.
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)
- TypeError when running trainCNN, please help HOT 20
- lasagne.layers.Conv2DLayer default adds bias HOT 2
- a cool idea
- another cool idea HOT 1
- The DSD model, where is it from? HOT 1
- Using examples/dsd100/separate_dsd.py HOT 2
- another way of generating the pkl models? HOT 1
- Cannot convert model_dsd_fft_1024.pkl Model from PKL to JSON HOT 4
- dear MTG HOT 3
- DSD Compute Features - ImportError transform HOT 1
- iKala is amplifying my results to the point of distortion HOT 2
- iKala Dataset not available HOT 1
- requirements.txt climate dependency missing HOT 1
- OSError: [Errno 22] using examples/dsd100/trainCNN.py (Win 10 64bit) HOT 1
- other separation tasks with this framework? force stereo? HOT 2
- fix path in train_auto HOT 1
- parameters in a file? HOT 1
- how to improve separation between sources? HOT 2
- Theano 0.9.0 API change HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepconvsep.