Update train.py
Stack frames for CARLA pixel encoders too
This commit is contained in:
parent
0fc1b8bd37
commit
3f5320c78f
2
train.py
2
train.py
@ -318,7 +318,7 @@ def main():
|
|||||||
)
|
)
|
||||||
|
|
||||||
# stack several consecutive frames together
|
# stack several consecutive frames together
|
||||||
if args.encoder_type == 'pixel':
|
if args.encoder_type.startswith('pixel'):
|
||||||
env = utils.FrameStack(env, k=args.frame_stack)
|
env = utils.FrameStack(env, k=args.frame_stack)
|
||||||
eval_env = utils.FrameStack(eval_env, k=args.frame_stack)
|
eval_env = utils.FrameStack(eval_env, k=args.frame_stack)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user