Adding preprocessing function
This commit is contained in:
parent
7d7387bd5d
commit
1f4667a08d
@ -200,6 +200,10 @@ def make_env(args):
|
||||
)
|
||||
return env
|
||||
|
||||
def preprocess_obs(obs):
|
||||
obs = obs/255.0 - 0.5
|
||||
return obs
|
||||
|
||||
def soft_update_params(net, target_net, tau):
|
||||
for param, target_param in zip(net.parameters(), target_net.parameters()):
|
||||
target_param.data.copy_(
|
||||
|
Loading…
Reference in New Issue
Block a user