Philip-MIT commited on
Commit
8651f5a
·
verified ·
1 Parent(s): f407c3f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -6
README.md CHANGED
@@ -38,11 +38,11 @@ The progress estimate is intended to serve as a dense reward signal for robotic
38
 
39
  ## Quick Start
40
 
41
- The recommended interface for inference is [RoboReason](https://github.com/Philip-MIT/roboreason):
42
 
43
- # pip install -U roboreason
44
 
45
- import roboreason as rr
46
 
47
  video_paths = [
48
  "test_videos/robosuite/lift/unsuccessful/robosuite_lift_episode_12_unsuccessful_max_reward_38.mp4"
@@ -50,7 +50,7 @@ The recommended interface for inference is [RoboReason](https://github.com/Phili
50
 
51
  task_description = "Pick up the cube from the table."
52
 
53
- rewards, reasoning_traces = rr.generate(
54
  model="SOLE-R1",
55
  task_description=task_description,
56
  video_paths=video_paths,
@@ -62,7 +62,7 @@ The recommended interface for inference is [RoboReason](https://github.com/Phili
62
 
63
  # Plotting with show_reasoning_traces=True
64
  output_sole = {"model": "SOLE-R1", "rewards": rewards[0], "reasoning_traces": reasoning_traces[0]}
65
- rr.video_plot(
66
  outputs=[output_sole],
67
  plot_save_path='model_outputs/sole-r1/robosuite/lift/unsuccessful/robosuite_lift_episode_12_unsuccessful_max_reward_38.mp4',
68
  video_path=video_paths[0],
@@ -76,7 +76,7 @@ The recommended interface for inference is [RoboReason](https://github.com/Phili
76
 
77
  Optional pre-download:
78
 
79
- from roboreason.utils.model_utils import get_model_dir
80
 
81
  get_model_dir("sole-r1")
82
 
 
38
 
39
  ## Quick Start
40
 
41
+ The recommended interface for inference is [RewardGen](https://github.com/Philip-MIT/rewardgen):
42
 
43
+ # pip install -U rewardgen
44
 
45
+ from rewardgen import generate, video_plot
46
 
47
  video_paths = [
48
  "test_videos/robosuite/lift/unsuccessful/robosuite_lift_episode_12_unsuccessful_max_reward_38.mp4"
 
50
 
51
  task_description = "Pick up the cube from the table."
52
 
53
+ rewards, reasoning_traces = generate(
54
  model="SOLE-R1",
55
  task_description=task_description,
56
  video_paths=video_paths,
 
62
 
63
  # Plotting with show_reasoning_traces=True
64
  output_sole = {"model": "SOLE-R1", "rewards": rewards[0], "reasoning_traces": reasoning_traces[0]}
65
+ video_plot(
66
  outputs=[output_sole],
67
  plot_save_path='model_outputs/sole-r1/robosuite/lift/unsuccessful/robosuite_lift_episode_12_unsuccessful_max_reward_38.mp4',
68
  video_path=video_paths[0],
 
76
 
77
  Optional pre-download:
78
 
79
+ from rewardgen.utils.model_utils import get_model_dir
80
 
81
  get_model_dir("sole-r1")
82