Skip to content

Commit

Permalink
Fix importing
Browse files Browse the repository at this point in the history
  • Loading branch information
msosav committed Jan 11, 2025
1 parent b089bc7 commit ce8fe2a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config/gym.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import gymnasium as gym
import numpy as np
from gymnasium.spaces import Box, Discrete, Dict
from gymnasium.spaces import Box, Dict, Discrete
from pyboy import PyBoy
from pyboy.utils import WindowEvent

Expand Down
3 changes: 0 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

from stable_baselines3 import PPO

from stable_baselines3.common.vec_env import SubprocVecEnv
from stable_baselines3.common import env_checker

from utils import CheckpointAndLoggingCallback, PreprocessEnv

if __name__ == "__main__":
Expand Down
7 changes: 4 additions & 3 deletions utils.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import os

import gymnasium as gym

from gymnasium.wrappers import gray_scale_observation
from stable_baselines3.common.callbacks import BaseCallback # For saving models
import numpy as np
from gymnasium.spaces import Box
from stable_baselines3.common.callbacks import \
BaseCallback
from stable_baselines3.common.vec_env import DummyVecEnv, VecFrameStack
from gymnasium.spaces import Box
import numpy as np
Expand Down

0 comments on commit ce8fe2a

Please sign in to comment.