Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSError: [Errno 22] using examples/dsd100/trainCNN.py (Win 10 64bit) #26

Open
gabrielegamberi opened this issue Jul 5, 2019 · 1 comment

Comments

@gabrielegamberi
Copy link

When I run trainCNN.py, with the following "db" path:
db = "D:\\DSD100\\"
I get this error:

Traceback (most recent call last):
File "", line 1, in
File "C:\Users\gabri\Anaconda3\envs\CNN3.6Tesi\lib\multiprocessing\spawn.py", line 105, in spawn_main
exitcode = _main(fd)
File "C:\Users\gabri\Anaconda3\envs\CNN3.6Tesi\lib\multiprocessing\spawn.py", line 115, in _main
self = reduction.pickle.load(from_parent)
MemoryError
Traceback (most recent call last):
File "C:/Users/gabri/Desktop/Tesi Segnali Audio/PyCharmTestingArea/CNNAdapted/examples/dsd100/trainCNN.py", line 332, in
mult_factor_out=scale_factor)
File "C:\Users\gabri\Desktop\Tesi Segnali Audio\PyCharmTestingArea\CNNAdapted\dataset.py", line 171, in init
self.updatePath(self.path_transform_in,self.path_transform_out)
File "C:\Users\gabri\Desktop\Tesi Segnali Audio\PyCharmTestingArea\CNNAdapted\dataset.py", line 639, in updatePath
self.initBatches()
File "C:\Users\gabri\Desktop\Tesi Segnali Audio\PyCharmTestingArea\CNNAdapted\dataset.py", line 676, in initBatches
self.loadBatches()
File "C:\Users\gabri\Desktop\Tesi Segnali Audio\PyCharmTestingArea\CNNAdapted\dataset.py", line 255, in loadBatches
self.genBatches()
File "C:\Users\gabri\Desktop\Tesi Segnali Audio\PyCharmTestingArea\CNNAdapted\dataset.py", line 294, in genBatches
xall = parmap(self.loadFile, list(range(self.findex+1,self.nindex)),nprocs=self.nprocs)
File "C:\Users\gabri\Desktop\Tesi Segnali Audio\PyCharmTestingArea\CNNAdapted\dataset.py", line 58, in parmap
p.start()
File "C:\Users\gabri\Anaconda3\envs\CNN3.6Tesi\lib\multiprocessing\process.py", line 105, in start
self._popen = self._Popen(self)
File "C:\Users\gabri\Anaconda3\envs\CNN3.6Tesi\lib\multiprocessing\context.py", line 223, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "C:\Users\gabri\Anaconda3\envs\CNN3.6Tesi\lib\multiprocessing\context.py", line 322, in _Popen
return Popen(process_obj)
File "C:\Users\gabri\Anaconda3\envs\CNN3.6Tesi\lib\multiprocessing\popen_spawn_win32.py", line 65, in init
reduction.dump(process_obj, to_child)
File "C:\Users\gabri\Anaconda3\envs\CNN3.6Tesi\lib\multiprocessing\reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
OSError: [Errno 22] Invalid argument

I'm using python 3.6

Versions of relevant libraries:
numpy (1.16.4)
theano (1.0.4+unknown)
lasagne 0.2.dev1
tqdm (4.32.1)
scipy (1.2.1)
m2w64-toolchain (5.3.0)
mkl (2019.4)

@gabrielegamberi gabrielegamberi changed the title Multiprocessing runtime error using examples/dsd100/trainCNN.py (Win 10 64bit) OSError: [Errno 22] using examples/dsd100/trainCNN.py (Win 10 64bit) Jul 5, 2019
@Albi070
Copy link

Albi070 commented Dec 14, 2022

Did you succeed running it ?
I would like to reuse the separation part for another project,
please get back to me if you did..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants