ruotianluo / ImageCaptioning.pytorch

I decide to sync up this repo and self-critical.pytorch. (The old master is in old master branch for archive)
MIT License
1.43k stars 409 forks source link

运行训练时报这个错AttributeError: Can't pickle local object 'HybridLoader.__init__.<locals>.<lambda>' #154

Open MrAccelerator opened 2 years ago

MrAccelerator commented 2 years ago

请问这个该怎么解决呢?

ruotianluo commented 2 years ago

神奇,我都没遇到过这个。你可以找一个可以wrap lambda function的 picklewrapper wrap一下

Ruotian Luo

On May 9, 2022, at 11:29 PM, MrAccelerator @.***> wrote:

 请问这个该怎么解决呢?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

MrAccelerator commented 2 years ago

我把num_workers改成0就好了,不知道什么原理