Fix embarrassing bug with ckpt.
PiperOrigin-RevId: 686679906 Change-Id: I61126ce94214b5f7b25b31e343a243d1a1dbb9f4
This commit is contained in:
committed by
Copybara-Service
parent
ffdb800e45
commit
43a7493d17
+2
-2
@@ -1513,8 +1513,8 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"# grab the latest checkpoint from the flat terrain joystick policy\n",
|
"# grab the latest checkpoint from the flat terrain joystick policy\n",
|
||||||
"latest_ckpts = list(ckpt_path.glob('*'))\n",
|
"latest_ckpts = list(ckpt_path.glob('*'))\n",
|
||||||
"latest_ckpts.sort()\n",
|
"latest_ckpts.sort(key=lambda x: int(x.as_posix().split('/')[-1]))\n",
|
||||||
"latest_ckpt = latest_ckpts[0]\n",
|
"latest_ckpt = latest_ckpts[-1]\n",
|
||||||
"\n",
|
"\n",
|
||||||
"train_fn = functools.partial(\n",
|
"train_fn = functools.partial(\n",
|
||||||
" ppo.train, num_timesteps=40_000_000, num_evals=5,\n",
|
" ppo.train, num_timesteps=40_000_000, num_evals=5,\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user