Skip to content

Commit

Permalink
🚀 [RofuncRL] Update RofuncDTrans
Browse files Browse the repository at this point in the history
  • Loading branch information
Skylark0924 committed Aug 30, 2023
1 parent 7c11d6c commit 4ef29f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/learning_rl/example_D4RL_RofuncRL.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ def inference(custom_args):


if __name__ == '__main__':
gpu_id = 0
gpu_id = 3

parser = argparse.ArgumentParser()
# Available tasks: Hopper, HalfCheetah, Walker2d, Reacher2d
parser.add_argument("--task", type=str, default="Walker2d")
parser.add_argument("--task", type=str, default="Hopper")
parser.add_argument("--agent", type=str, default="dtrans") # dtrans
parser.add_argument("--sim_device", type=str, default="cuda:{}".format(gpu_id))
parser.add_argument("--rl_device", type=str, default="cuda:{}".format(gpu_id))
Expand Down
3 changes: 2 additions & 1 deletion rofunc/learning/utils/download_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import pickle

import gym
import d4rl # Import required to register environments, you may need to also import the submodule
import numpy as np

import rofunc as rf
Expand All @@ -34,6 +33,8 @@ def download_d4rl_dataset(save_dir):
if os.path.exists(f'{save_dir}/{name}.pkl'):
continue

import d4rl # Import required to register environments, you may need to also import the submodule

env = gym.make(name)
dataset = env.get_dataset()

Expand Down

0 comments on commit 4ef29f7

Please sign in to comment.