sam522/ppo-SnowballTarget
By sam522 · ↓ 1 · ♥ 0 · Updated 2025-09-04
What's in this repo
This page lists the files in sam522/ppo-SnowballTarget, including SnowballTarget.onnx.
- 1 ONNX models (.onnx files)
- 3 files, including 1 .md, 1 .onnx
- Last updated 2025-09-04
ONNX files
| File | Size | Download |
|---|---|---|
| SnowballTarget.onnx | — | Download |
How to use
These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.
README
PPO Agent playing ML-Agents-SnowballTarget
This is a trained model of a PPO agent playing ML-Agents-SnowballTarget using Unity ML-Agents.
Usage
Download model and play it:
from mlagents_envs.environment import UnityEnvironment
from mlagents_envs.base_env import ActionTuple
import numpy as np
# Load the environment
env = UnityEnvironment(file_name="path/to/SnowballTarget")
# Reset the environment
env.reset()
behavior_names = list(env.behavior_specs)
spec = env.behavior_specs[behavior_names[0]]
# Load your trained model
# (You'll need to implement model loading based on your training framework)
# Run the environment
decision_steps, terminal_steps = env.get_steps(behavior_names[0])
while True:
# Get observations
obs = decision_steps.obs[0]
# Get action from your model
# action = your_model.predict(obs)
# Step the environment
action_tuple = ActionTuple(discrete=np.array([[action]]))
env.set_actions(behavior_names[0], action_tuple)
env.step()
decision_steps, terminal_steps = env.get_steps(behavior_names[0])
if len(terminal_steps) > 0:
break
env.close()
Model info
reinforcement-learning
ml-agents
ml-agents
onnx
ML-Agents-SnowballTarget
ppo
deep-reinforcement-learning
reinforcement-learning
model-index
region:us
↓ 1
♥ 0
Created: 2025-07-25
Updated: 2025-09-04
View on Hugging FaceFiles (3)
.gitattributes
README.md
SnowballTarget.onnx
ONNX