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

TypeError: can't pickle _thread.RLock objects #19

Open
rookiexiao123 opened this issue Dec 17, 2020 · 1 comment
Open

TypeError: can't pickle _thread.RLock objects #19

rookiexiao123 opened this issue Dec 17, 2020 · 1 comment

Comments

@rookiexiao123
Copy link

python compress.py -i data/originals/ -ckpt model/hific_med.pt --reconstruct
later


12:58:16 INFO - compress_and_decompress: Starting compression...
0%| | 0/3 [00:00<?, ?it/s]
Traceback (most recent call last):
File "compress.py", line 240, in
main()
File "compress.py", line 237, in main
compress_and_decompress(args)
File "compress.py", line 143, in compress_and_decompress
for idx, (data, bpp, filenames) in enumerate(tqdm(eval_loader), 0):
File "C:\Users\DELL\Anaconda3\envs\torch\lib\site-packages\tqdm\std.py", line 1171, in iter
for obj in iterable:
File "C:\Users\DELL\Anaconda3\envs\torch\lib\site-packages\torch\utils\data\dataloader.py", line 279, in iter
return _MultiProcessingDataLoaderIter(self)
File "C:\Users\DELL\Anaconda3\envs\torch\lib\site-packages\torch\utils\data\dataloader.py", line 719, in init
w.start()
File "C:\Users\DELL\Anaconda3\envs\torch\lib\multiprocessing\process.py", line 105, in start
self._popen = self._Popen(self)
File "C:\Users\DELL\Anaconda3\envs\torch\lib\multiprocessing\context.py", line 223, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "C:\Users\DELL\Anaconda3\envs\torch\lib\multiprocessing\context.py", line 322, in _Popen
return Popen(process_obj)
File "C:\Users\DELL\Anaconda3\envs\torch\lib\multiprocessing\popen_spawn_win32.py", line 65, in init
reduction.dump(process_obj, to_child)
File "C:\Users\DELL\Anaconda3\envs\torch\lib\multiprocessing\reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
TypeError: can't pickle _thread.RLock objects

please help me.What's wrong with me?

@kuro-z
Copy link

kuro-z commented Jul 2, 2021

me too.please help us.

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