代码拉取完成,页面将自动刷新
"""
Launch an experiment on local machine with docker
"""
import sys
import doodad as dd
import doodad.ssh as ssh
import doodad.mount as mount
mode_local = dd.mode.LocalDocker(
image='rakelly/rlkit:latest'
)
# Set up code and output directories
OUTPUT_DIR = 'output' # doodad will prepend `/mounts` to this, set config in code to output to this path
mounts = [
mount.MountLocal(local_dir='~/rlkit', pythonpath=True), # point to your code
mount.MountLocal(local_dir='~/.mujoco', mount_point='/root/.mujoco'), # point to your mujoco
mount.MountLocal(local_dir='~/rlkit/output', mount_point=OUTPUT_DIR, output=True),
]
call = sys.argv[1] + ' 1' # assume script has arg for docker mode
dd.launch_python(
target=call, # call target script (absolute path)
mode=mode_local,
mount_points=mounts,
verbose=True,
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。