Views
No views yet
1# Install Sample-Factory
2pip install sample-factory[all]
3
4# Install VizDoom
5pip install vizdoompython -m sample_factory.huggingface.load_from_hub -r Adilbai/rl_course_vizdoom_health_gathering_supreme1# Basic evaluation
2python -m sample_factory.enjoy --algo=APPO --env=VizdoomHealthGathering-v0 \
3 --train_dir=./train_dir --experiment=rl_course_vizdoom_health_gathering_supreme
4
5# With video recording
6python -m sample_factory.enjoy --algo=APPO --env=VizdoomHealthGathering-v0 \
7 --train_dir=./train_dir --experiment=rl_course_vizdoom_health_gathering_supreme \
8 --save_video --video_frames=10000 --no_render1from sample_factory.enjoy import enjoy
2from sample_factory.cfg.arguments import parse_full_cfg, parse_sf_args
3
4# Configure the environment
5env_name = "VizdoomHealthGathering-v0"
6cfg = parse_full_cfg(parse_sf_args([
7 "--algo=APPO",
8 f"--env={env_name}",
9 "--train_dir=./train_dir",
10 "--experiment=rl_course_vizdoom_health_gathering_supreme"
11]))
12
13# Run evaluation
14status = enjoy(cfg)1python -m sample_factory.train --algo=APPO --env=VizdoomHealthGathering-v0 \
2 --train_dir=./train_dir --experiment=rl_course_vizdoom_health_gathering_supreme \
3 --restart_behavior=resume --train_for_env_steps=100000001python -m sample_factory.enjoy --algo=APPO --env=VizdoomHealthGathering-v0 \
2 --train_dir=./train_dir --experiment=rl_course_vizdoom_health_gathering_supreme \
3 --max_num_episodes=100 --max_num_frames=100000config.json: Complete training configurationcheckpoint_*.pth: Model weights and optimizer statesf_log.txt: Detailed training logsstats.json: Performance statistics1# If you encounter encoder architecture mismatches
2# Use the fixed checkpoint with updated key mapping1pip install vizdoom
2# Ensure VizDoom is properly installed1# For CPU-only evaluation
2python -m sample_factory.enjoy --device=cpu [other args]1@misc{vizdoom_health_gathering_supreme_2025,
2 title={VizDoom Health Gathering Supreme APPO Agent},
3 author={Adilbai},
4 year={2025},
5 publisher={Hugging Face},
6 url={https://huggingface.co/Adilbai/rl_course_vizdoom_health_gathering_supreme}
7}