serl icon indicating copy to clipboard operation
serl copied to clipboard

AttributeError: utd_ratio

Open Caiyishuai opened this issue 9 months ago • 5 comments

when I run bash run_learner.sh from "Quick Start with SERL in Sim"

sent initial network to actor learner: 0%| | 0/1000000 [00:00<?, ?it/s] Traceback (most recent call last): | 0/1000000 [00:00<?, ?it/s] File "/home/admin01/workspace/serl/examples/async_sac_state_sim/async_sac_state_sim.py", line 322, in app.run(main) File "/home/admin01/anaconda3/envs/serl/lib/python3.10/site-packages/absl/app.py", line 312, in run _run_main(main, args) File "/home/admin01/anaconda3/envs/serl/lib/python3.10/site-packages/absl/app.py", line 258, in _run_main sys.exit(main(argv)) File "/home/admin01/workspace/serl/examples/async_sac_state_sim/async_sac_state_sim.py", line 302, in main learner( File "/home/admin01/workspace/serl/examples/async_sac_state_sim/async_sac_state_sim.py", line 231, in learner agent, update_info = agent.update_high_utd(batch, utd_ratio=FLAGS.utd_ratio) File "/home/admin01/anaconda3/envs/serl/lib/python3.10/site-packages/absl/flags/_flagvalues.py", line 471, in getattr raise AttributeError(name) AttributeError: utd_ratio

Don't know how to solve it, please help me !

Caiyishuai avatar Mar 20 '25 15:03 Caiyishuai

same issue

Lingzhi3 avatar Mar 22 '25 03:03 Lingzhi3

same issue

jianzhang96 avatar Mar 25 '25 07:03 jianzhang96

just set FLAGS.utd_ratio=1 will solve the problem.

Serenos avatar Mar 26 '25 09:03 Serenos

just set FLAGS.utd_ratio=1 will solve the problem.

it works, thanks!

77philosophia avatar May 08 '25 08:05 77philosophia

just set FLAGS.utd_ratio=1 will solve the problem.

it seems to be: flags.DEFINE_integer('utd_ratio', 1,'UTD ratio (update steps per environment step) for high-frequency training')

zyf617 avatar Jun 02 '25 02:06 zyf617