Replacing seed with version name variable in environment id naming

This commit is contained in:
Vedant Dave 2023-03-28 20:22:27 +02:00
parent d558b9f558
commit 47a0772c9d

View File

@ -8,6 +8,7 @@ def make(
resource_files, resource_files,
img_source, img_source,
total_frames, total_frames,
version,
seed=1, seed=1,
visualize_reward=True, visualize_reward=True,
from_pixels=False, from_pixels=False,
@ -20,7 +21,7 @@ def make(
video_recording=False, video_recording=False,
video_recording_dir=None, video_recording_dir=None,
): ):
env_id = 'dmc_%s_%s_%s-v1' % (domain_name, task_name, seed) env_id = 'dmc_%s_%s_%s-v1' % (domain_name, task_name, version)
if from_pixels: if from_pixels:
assert not visualize_reward, 'cannot use visualize reward when learning from pixels' assert not visualize_reward, 'cannot use visualize reward when learning from pixels'