How isphada2002-tech/3d-drone-double-dqn-numpy works
This repository is a NumPy-based 3D drone-navigation simulation that loads satellite elevation data, simulates drift and terrain clearance, and trains a Double DQN agent to correct the flight path. Its main workflow runs in Drone-agent-3D.py; ddqn_agent.py implements action selection, replay-based learning, and weight persistence. The README documents collision avoidance, target navigation, and the pre-trained weights. The graph follows the shown calls; visualization is integrated into the simulation script rather than a separate runtime module.
Main entry points: Drone-agent-3D.py Flight simulation · ddqn_agent.py Double DQN agent · ddqn_weights.pkl Saved weights · output_AW3D30.tif Elevation raster
Components 12
Flight environment
- Elevation raster
output_AW3D30.tif - Terrain preparation
Drone-agent-3D.py - Flight simulation
Drone-agent-3D.py - Clearance and reward
Drone-agent-3D.py - 3D visualization
Drone-agent-3D.py
DDQN learning
- Double DQN agent
ddqn_agent.py - Action selection
ddqn_agent.py - Replay buffer
ddqn_agent.py - Network learning
ddqn_agent.py
Model and results
- Saved weights
ddqn_weights.pkl - Reward plots
Drone-agent-3D.py
Other components
- Operator
Connections 13
- Operator → Flight simulation: runs
README.md - Flight simulation → Elevation raster: reads
Drone-agent-3D.py - Flight simulation → Terrain preparation: prepares
Drone-agent-3D.py - Flight simulation → Double DQN agent: initializes
Drone-agent-3D.py - Double DQN agent → Saved weights: loads
ddqn_agent.py - Flight simulation → Clearance and reward: computes
Drone-agent-3D.py - Flight simulation → Action selection: requests action
Drone-agent-3D.py - Flight simulation → Replay buffer: stores transitions
Drone-agent-3D.py - Flight simulation → Network learning: trains
Drone-agent-3D.py - Network learning → Replay buffer: samples
ddqn_agent.py - Double DQN agent → Saved weights: saves
- Flight simulation → 3D visualization: updates
Drone-agent-3D.py - Flight simulation → Reward plots: plots rewards
Drone-agent-3D.py