Skip to content

Commit

Permalink
Remove unnecessary torch.compile of map
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguy11325 committed Jun 23, 2024
1 parent 1078251 commit 05a1488
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pokemonred_puffer/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import cv2
import matplotlib.colors as mcolors
import numpy as np
import torch

KANTO_MAP_PATH = os.path.join(os.path.dirname(__file__), "kanto_map_dsv.png")
BACKGROUND = np.array(cv2.imread(KANTO_MAP_PATH))
Expand Down Expand Up @@ -36,7 +35,3 @@ def make_pokemon_red_overlay(counts: np.ndarray):
render = np.clip(render, 0, 255).astype(np.uint8)

return render


if torch.cuda.is_available():
make_pokemon_red_overlay = torch.compile(make_pokemon_red_overlay)

0 comments on commit 05a1488

Please sign in to comment.