mmaction icon indicating copy to clipboard operation
mmaction copied to clipboard

Mistake when apply parallel test

Open liya2001 opened this issue 5 years ago • 2 comments

I tried to apply parallel test but this error occurred: _pickle.PicklingError: Can't pickle <function _data_func at 0x7fe56fa76510>: attribute lookup _data_func on main failed @zhaoyue-zephyrus

liya2001 avatar Jul 19 '19 06:07 liya2001

@liya2001 Sorry for replying late.

  1. Which command do you execute?

  2. Do you have complete error log? (Remember to quote them to avoid issue reference)

zhaoyue-zephyrus avatar Jul 26 '19 15:07 zhaoyue-zephyrus

The command

CUDA_VISIBLE_DEVICES=1,2 python tools/test_localizer.py ${CONFIG_FILE} ${CHECKPOINT_FILE} --out ${RESULT_FILE} --eval activitynet --gpus 2

The error log

Traceback (most recent call last): File "tools/test_localizer.py", line 215, in main() File "tools/test_localizer.py", line 151, in main workers_per_gpu=args.proc_per_gpu) File "/data00/home/liya/anaconda3/lib/python3.6/site-packages/mmcv/runner/parallel_test.py", line 59, in parallel_test w.start() File "/data00/home/liya/anaconda3/lib/python3.6/multiprocessing/process.py", line 105, in start self._popen = self._Popen(self) File "/data00/home/liya/anaconda3/lib/python3.6/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/data00/home/liya/anaconda3/lib/python3.6/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/data00/home/liya/anaconda3/lib/python3.6/multiprocessing/popen_fork.py", line 19, in init self._launch(process_obj) File "/data00/home/liya/anaconda3/lib/python3.6/multiprocessing/popen_spawn_posix.py", line 47, in _launch reduction.dump(process_obj, fp) File "/data00/home/liya/anaconda3/lib/python3.6/multiprocessing/reduction.py", line 60, in dump ForkingPickler(file, protocol).dump(obj) _pickle.PicklingError: Can't pickle <function _data_func at 0x7fe7655f0378>: attribute lookup _data_func on main failed

Thanks @zhaoyue-zephyrus

liya2001 avatar Jul 28 '19 02:07 liya2001