AI4Finance-Foundation / AI4Finance-Foundation/ElegantRL

MATD3 & MADDPG cannot be call by train_agent or train_agent_multiprocessing

未关闭
#286 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Python
星标
4.4k
派生
978
PR 合并指标
30 天内没有已合并 PR

描述

`AgentMATD3` & `AgentMADDPG` cannot be call by `train_agent` or `train_agent_multiprocessing`, when I add them to 'demo_DDPG_TD3_SAC.py'

Error shows like that

Traceback (most recent call last):
File "/Users/c/Downloads/ElegantRL-master/examples/demo_DDPG_TD3_SAC.py", line 238, in
train_ddpg_td3_sac_for_pendulum()
File "/Users/c/Downloads/ElegantRL-master/examples/demo_DDPG_TD3_SAC.py", line 43, in train_ddpg_td3_sac_for_pendulum
train_agent_multiprocessing(args) # train_agent(args)
File "/Users/c/Downloads/ElegantRL-master/elegantrl/train/run.py", line 124, in train_agent_multiprocessing
[process.start() for process in process_list]
File "/Users/c/Downloads/ElegantRL-master/elegantrl/train/run.py", line 124, in
[process.start() for process in process_list]
File "/opt/anaconda3/envs/erl/lib/python3.9/multiprocessing/process.py", line 121, in start
self._popen = self._Popen(self)
File "/opt/anaconda3/envs/erl/lib/python3.9/multiprocessing/context.py", line 224, in _Popen
return _default_context.get_context().Process._Popen(process_obj)
File "/opt/anaconda3/envs/erl/lib/python3.9/multiprocessing/context.py", line 291, in _Popen
return Popen(process_obj)
File "/opt/anaconda3/envs/erl/lib/python3.9/multiprocessing/popen_forkserver.py", line 35, in __init__
super().__init__(process_obj)
File "/opt/anaconda3/envs/erl/lib/python3.9/multiprocessing/popen_fork.py", line 19, in __init__
self._launch(process_obj)
File "/opt/anaconda3/envs/erl/lib/python3.9/multiprocessing/popen_forkserver.py", line 47, in _launch
reduction.dump(process_obj, buf)
File "/opt/anaconda3/envs/erl/lib/python3.9/multiprocessing/reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
TypeError: cannot pickle 'module' object

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。