Skip to content

deprecate gym to gymnasium and add timm yaml file back #2609

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion torchbenchmark/models/drq/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import numpy as np
import torch
from gym import spaces
from gymnasium import spaces
from torchbenchmark.tasks import REINFORCEMENT_LEARNING

from ...util.model import BenchmarkModel
Expand Down
2 changes: 1 addition & 1 deletion torchbenchmark/models/drq/drqutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import random
from collections import deque

import gym
import gymnasium as gym

import numpy as np
import torch
Expand Down
2 changes: 1 addition & 1 deletion torchbenchmark/models/drq/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
kornia
scikit-image
gym
gymnasium
10 changes: 5 additions & 5 deletions torchbenchmark/models/soft_actor_critic/envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import random
from collections import deque

import gym
import gymnasium as gym
import numpy as np


Expand Down Expand Up @@ -132,7 +132,7 @@ def highway_env(env_id):

highway_env: https://highway-env.readthedocs.io/en/latest/index.html
"""
import gym
import gymnasium as gym

env = gym.make(env_id)
env.configure({"action": {"type": "ContinuousAction"}})
Expand Down Expand Up @@ -339,15 +339,15 @@ def load_dmc(
"""
Load a task from the deepmind control suite.

Uses dmc2gym (https://github.com/denisyarats/dmc2gym)
Uses dmc2gymnasiym (https://github.com/imgeorgiev/dmc2gymnasium)

Note that setting seed=None (the default) picks a random seed
"""
import dmc2gym
import dmc2gymnasium

if seed is None:
seed = random.randint(1, 100000)
env = dmc2gym.make(
env = dmc2gymnasium.make(
domain_name=domain_name,
task_name=task_name,
from_pixels=from_pixels,
Expand Down
2 changes: 1 addition & 1 deletion torchbenchmark/models/soft_actor_critic/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
gym
gymnasium
pygame
tensorboardX
4 changes: 4 additions & 0 deletions userbenchmark/dynamo/dynamobench/timm_models.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# removing this file prevents the TimmRunner from dynamically skipping models
skip:
all:
- ~
Loading