ReDet
ReDet copied to clipboard
多线程预测问题,Can't pickle local object 'Cyclic Group.irrep.<locals>.<lambda>'
作者您好,在预测大的遥感影像的时候想使用多线程进行预测,但是e2cnn中的Cyclic Group导致不能调用pool.apply,请问对这方面您有经验吗
请附上具体的log
请附上具体的log
Traceback (most recent call last):
File "/home/cresda/ProgramCode/ReDet-master_cuda/demo_large_image_multiProcess.py", line 379, in
参考:https://stackoverflow.com/questions/8804830/python-multiprocessing-picklingerror-cant-pickle-type-function 可能对你的问题有帮助:
I'd use pathos.multiprocesssing, instead of multiprocessing. pathos.multiprocessing is a fork of multiprocessing that uses dill. dill can serialize almost anything in python, so you are able to send a lot more around in parallel. The pathos fork also has the ability to work directly with multiple argument functions, as you need for class methods.