Skip to content

Commit

Permalink
polish code
Browse files Browse the repository at this point in the history
  • Loading branch information
zjowowen committed Mar 15, 2023
1 parent 6b9def4 commit 6f49d0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ding/bonus/ppof.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def collect_data(
task.use(offline_data_saver(save_data_path, data_type='hdf5'))
task.run(max_step=1)
logging.info(
f'PPOF collecting is finished, more than {n_sample} samples are collected and saved in `{save_data_path}`'
'PPOF collecting is finished, more than {n_sample} samples are collected and saved in `{save_data_path}`'
)

def batch_evaluate(
Expand Down
2 changes: 1 addition & 1 deletion ding/bonus/td3.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def deploy(self, enable_save_replay: bool = False, replay_save_path: str = None,
elif enable_save_replay:
env.enable_save_replay(replay_path=os.path.join(self.exp_name, 'videos'))
else:
logging.warning(f'No video would be generated during the deploy.')
logging.warning('No video would be generated during the deploy.')

def single_env_forward_wrapper(forward_fn, cuda=True):

Expand Down

0 comments on commit 6f49d0a

Please sign in to comment.