Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Versioning] v0.5 bump #2267

Merged
merged 29 commits into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
amend
  • Loading branch information
vmoens committed Jul 9, 2024
commit 0704caa75e7e2e4fd0d5c82da6017c4ad9c3e5c8
4 changes: 2 additions & 2 deletions sota-implementations/dreamer/dreamer.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
import torch.cuda
import tqdm
from dreamer_utils import (
_default_device,
dump_video,
log_metrics,
make_collector,
make_dreamer,
make_environments,
make_replay_buffer, _default_device,
make_replay_buffer,
)
from hydra.utils import instantiate

# mixed precision training
from torch.cuda.amp import GradScaler
Expand Down
6 changes: 4 additions & 2 deletions sota-implementations/dreamer/dreamer_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import torch

import torch.nn as nn
from hydra.utils import instantiate
from tensordict import NestedKey
from tensordict.nn import (
InteractionType,
Expand Down Expand Up @@ -138,7 +137,10 @@ def make_environments(cfg, parallel_envs=1, logger=None):
train_env = transform_env(cfg, train_env)
train_env.set_seed(cfg.env.seed)
func = functools.partial(
_make_env, cfg=cfg, device=_default_device(cfg.env.device), from_pixels=cfg.logger.video
_make_env,
cfg=cfg,
device=_default_device(cfg.env.device),
from_pixels=cfg.logger.video,
)
eval_env = ParallelEnv(
1,
Expand Down
Loading