Spaces:
Sleeping
Sleeping
Sachin Singh commited on
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -114,7 +114,7 @@ def get_game(name: str):
|
|
| 114 |
samp_cfg.num_steps_denoising = DENOISING_STEPS
|
| 115 |
sampler = DiffusionSampler(denoiser, samp_cfg)
|
| 116 |
|
| 117 |
-
seeds = [Episode.load(p) for p in sorted(glob.glob(str(d / "seeds" / "*.pt")))]
|
| 118 |
assert seeds, f"no seed episodes in {d/'seeds'}"
|
| 119 |
|
| 120 |
noop = action_names.index("noop") if "noop" in action_names else 0
|
|
|
|
| 114 |
samp_cfg.num_steps_denoising = DENOISING_STEPS
|
| 115 |
sampler = DiffusionSampler(denoiser, samp_cfg)
|
| 116 |
|
| 117 |
+
seeds = [Episode.load(p, map_location=DEVICE) for p in sorted(glob.glob(str(d / "seeds" / "*.pt")))]
|
| 118 |
assert seeds, f"no seed episodes in {d/'seeds'}"
|
| 119 |
|
| 120 |
noop = action_names.index("noop") if "noop" in action_names else 0
|