open-mmlab / OpenUnReID

PyTorch open-source toolbox for unsupervised or domain adaptive object re-ID.
Apache License 2.0
397 stars 67 forks source link

why source_pretrain wrong? #21

Closed 969191832 closed 4 years ago

969191832 commented 4 years ago

Traceback (most recent call last): File "source_pretrain/main.py", line 142, in main() File "source_pretrain/main.py", line 124, in main runner.run() File "/workspace/mnt/storage/zsl/debug_observe/OpenUnReID/openunreid/apis/runner.py", line 122, in run self.train() File "/workspace/mnt/storage/zsl/debug_observe/OpenUnReID/openunreid/apis/runner.py", line 212, in train self.train_loader.new_epoch(self._epoch) File "/workspace/mnt/storage/zsl/debug_observe/OpenUnReID/openunreid/data/utils/dataset_wrapper.py", line 89, in new_epoch self.iter = iter(self.loader) File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/dataloader.py", line 279, in iter return _MultiProcessingDataLoaderIter(self) File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/dataloader.py", line 719, in init w.start() File "/usr/lib/python3.6/multiprocessing/process.py", line 105, in start self._popen = self._Popen(self) File "/usr/lib/python3.6/multiprocessing/context.py", line 223, in _Popen return _default_context.get_context().Process._Popen(process_obj) File "/usr/lib/python3.6/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/usr/lib/python3.6/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/usr/lib/python3.6/multiprocessing/popen_fork.py", line 19, in init self._launch(process_obj) File "/usr/lib/python3.6/multiprocessing/popen_spawn_posix.py", line 47, in _launch reduction.dump(process_obj, fp) File "/usr/lib/python3.6/multiprocessing/reduction.py", line 60, in dump ForkingPickler(file, protocol).dump(obj) AttributeError: Can't pickle local object 'SubPolicy.init..' Traceback (most recent call last): File "source_pretrain/main.py", line 142, in main() File "source_pretrain/main.py", line 124, in main runner.run() File "/workspace/mnt/storage/zsl/debug_observe/OpenUnReID/openunreid/apis/runner.py", line 122, in run self.train() File "/workspace/mnt/storage/zsl/debug_observe/OpenUnReID/openunreid/apis/runner.py", line 212, in train self.train_loader.new_epoch(self._epoch) File "/workspace/mnt/storage/zsl/debug_observe/OpenUnReID/openunreid/data/utils/dataset_wrapper.py", line 89, in new_epoch self.iter = iter(self.loader) File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/dataloader.py", line 279, in iter return _MultiProcessingDataLoaderIter(self) File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/dataloader.py", line 719, in init w.start() File "/usr/lib/python3.6/multiprocessing/process.py", line 105, in start self._popen = self._Popen(self) File "/usr/lib/python3.6/multiprocessing/context.py", line 223, in _Popen return _default_context.get_context().Process._Popen(process_obj) File "/usr/lib/python3.6/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/usr/lib/python3.6/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/usr/lib/python3.6/multiprocessing/popen_fork.py", line 19, in init self._launch(process_obj) File "/usr/lib/python3.6/multiprocessing/popen_spawn_posix.py", line 47, in _launch reduction.dump(process_obj, fp) File "/usr/lib/python3.6/multiprocessing/reduction.py", line 60, in dump ForkingPickler(file, protocol).dump(obj) AttributeError: Can't pickle local object 'SubPolicy.init..' Traceback (most recent call last): File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/usr/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/usr/local/lib/python3.6/dist-packages/torch/distributed/launch.py", line 263, in main() File "/usr/local/lib/python3.6/dist-packages/torch/distributed/launch.py", line 259, in main cmd=cmd)

yxgeee commented 4 years ago

Please see (f) in https://github.com/open-mmlab/OpenUnReID/blob/master/docs/INSTALL.md#install-openunreid

969191832 commented 4 years ago

thanks