manikandan-n-07 commited on
Commit
675f070
Β·
1 Parent(s): 4ed5f26

Standardization: Final validator-compatible structure and inference standardization

Browse files
Dockerfile CHANGED
@@ -27,4 +27,4 @@ ENV HF_HOME=/tmp/.cache
27
 
28
  # Command to run the FastAPI server
29
  # This calls the main function in server/app.py which starts uvicorn
30
- CMD ["python", "drone_env/server/app.py", "--host", "0.0.0.0", "--port", "8000"]
 
27
 
28
  # Command to run the FastAPI server
29
  # This calls the main function in server/app.py which starts uvicorn
30
+ CMD ["python", "server/app.py", "--host", "0.0.0.0", "--port", "8000"]
README.md CHANGED
@@ -82,38 +82,37 @@ The codebase follows a clean separation-of-concerns architecture across four dis
82
 
83
  ```
84
  .
85
- β”œβ”€β”€ drone_env/ # Core Package Subdirectory
86
- β”‚ β”œβ”€β”€ core/ # Simulation Logic Layer
87
- β”‚ β”‚ β”œβ”€β”€ drone.py # Movement physics & battery drain
88
- β”‚ β”‚ β”œβ”€β”€ graders.py # Unified scoring logic (0.01 - 0.99)
89
- β”‚ β”‚ β”œβ”€β”€ grid_generator.py # Map generation logic
90
- β”‚ β”‚ β”œβ”€β”€ obstacles.py # Collision & terrain detection
91
- β”‚ β”‚ β”œβ”€β”€ state_manager.py # Episodic state management
92
- β”‚ β”‚ └── tasks.py # Mission difficulty configurations
93
- β”‚ β”œβ”€β”€ rl/ # Intelligence Layer
94
- β”‚ β”‚ β”œβ”€β”€ model.py # Neural network architecture (DQN)
95
- β”‚ β”‚ β”œβ”€β”€ policy.py # Action selection policies
96
- β”‚ β”‚ └── trainer.py # Path analytics & learning engine
97
- β”‚ β”œβ”€β”€ server/ # Interface Layer
98
- β”‚ β”‚ β”œβ”€β”€ app.py # FastAPI server & Grader discovery
99
- β”‚ β”‚ β”œβ”€β”€ grid_world_environment.py # Main simulation environment
100
- β”‚ β”‚ β”œβ”€β”€ map_generator.py # Procedural map generation
101
- β”‚ β”‚ └── static/ # Dashboard Assets
102
- β”‚ β”œβ”€β”€ models.py # Unified Pydantic data models
103
- β”‚ β”œβ”€β”€ client.py # CLI client for testing
104
- β”‚ └── __init__.py # Package initialization
105
  β”œβ”€β”€ data/ # Persistence Layer
106
  β”‚ β”œβ”€β”€ memory.json # Historical episode logs (JSON)
107
  β”‚ └── train.log # Neural training logs
108
  β”œβ”€β”€ tests/ # Validation Layer
109
  β”‚ β”œβ”€β”€ test_api.py # Endpoint integration tests
110
  β”‚ └── test_env.py # Physics & Grading unit tests
111
- β”œβ”€β”€ inference.py # Standardized Inference Entry Point
112
- β”œβ”€β”€ validate-submission.sh # Submission validation script
 
 
 
113
  β”œβ”€β”€ openenv.yaml # Mission Manifest (Tasks & Graders)
114
  β”œβ”€β”€ pyproject.toml # Python project & dependency config
115
  β”œβ”€β”€ Dockerfile # Deployment container manifest
116
- └── README.md # Documentation
117
  ```
118
 
119
  ### Component Interaction Flow
 
82
 
83
  ```
84
  .
85
+ β”œβ”€β”€ core/ # Simulation Logic Layer
86
+ β”‚ β”œβ”€β”€ drone.py # Movement physics & battery drain
87
+ β”‚ β”œβ”€β”€ graders.py # Unified scoring logic (0.01 - 0.99)
88
+ β”‚ β”œβ”€β”€ grid_generator.py # Map generation logic
89
+ β”‚ β”œβ”€β”€ obstacles.py # Collision & terrain detection
90
+ β”‚ β”œβ”€β”€ state_manager.py # Episodic state management
91
+ β”‚ └── tasks.py # Mission difficulty configurations
92
+ β”œβ”€β”€ rl/ # Intelligence Layer
93
+ β”‚ β”œβ”€β”€ model.py # Neural network architecture (DQN)
94
+ β”‚ β”œβ”€β”€ policy.py # Action selection policies
95
+ β”‚ └── trainer.py # Path analytics & learning engine
96
+ β”œβ”€β”€ server/ # Interface Layer
97
+ β”‚ β”œβ”€β”€ app.py # FastAPI server & Grader discovery
98
+ β”‚ β”œβ”€β”€ grid_world_environment.py # Main simulation environment
99
+ β”‚ β”œβ”€β”€ map_generator.py # Procedural map generation
100
+ β”‚ └── static/ # Dashboard Assets
 
 
 
 
101
  β”œβ”€β”€ data/ # Persistence Layer
102
  β”‚ β”œβ”€β”€ memory.json # Historical episode logs (JSON)
103
  β”‚ └── train.log # Neural training logs
104
  β”œβ”€β”€ tests/ # Validation Layer
105
  β”‚ β”œβ”€β”€ test_api.py # Endpoint integration tests
106
  β”‚ └── test_env.py # Physics & Grading unit tests
107
+ β”œβ”€β”€ models.py # Unified Pydantic data models
108
+ β”œβ”€β”€ client.py # CLI client for testing
109
+ β”œβ”€β”€ __init__.py # Package marker (Root as drone_env)
110
+ β”œβ”€β”€ train.py # Neural training entry point
111
+ β”œβ”€β”€ inference.py # LLM-guided inference entry point
112
  β”œβ”€β”€ openenv.yaml # Mission Manifest (Tasks & Graders)
113
  β”œβ”€β”€ pyproject.toml # Python project & dependency config
114
  β”œβ”€β”€ Dockerfile # Deployment container manifest
115
+ └── validate-submission.sh # Submission validation script
116
  ```
117
 
118
  ### Component Interaction Flow
drone_env/__init__.py β†’ __init__.py RENAMED
File without changes
drone_env/client.py β†’ client.py RENAMED
File without changes
{drone_env/core β†’ core}/__init__.py RENAMED
File without changes
{drone_env/core β†’ core}/drone.py RENAMED
File without changes
{drone_env/core β†’ core}/graders.py RENAMED
File without changes
{drone_env/core β†’ core}/grid_generator.py RENAMED
File without changes
{drone_env/core β†’ core}/obstacles.py RENAMED
File without changes
{drone_env/core β†’ core}/state_manager.py RENAMED
File without changes
{drone_env/core β†’ core}/tasks.py RENAMED
File without changes
drone_env/models.py β†’ models.py RENAMED
File without changes
openenv.yaml CHANGED
@@ -2,7 +2,7 @@ spec_version: 1
2
  name: drone_env
3
  type: space
4
  runtime: fastapi
5
- app: drone_env.server.app:app
6
  port: 8000
7
  tasks:
8
  - id: easy_delivery
 
2
  name: drone_env
3
  type: space
4
  runtime: fastapi
5
+ app: server.app:app
6
  port: 8000
7
  tasks:
8
  - id: easy_delivery
pyproject.toml CHANGED
@@ -34,4 +34,5 @@ server = "drone_env.server.app:main"
34
 
35
  [tool.setuptools]
36
  include-package-data = true
37
- packages = ["drone_env", "drone_env.server", "drone_env.core", "drone_env.rl"]
 
 
34
 
35
  [tool.setuptools]
36
  include-package-data = true
37
+ packages = ["drone_env", "drone_env.server", "drone_env.core", "drone_env.rl"]
38
+ package-dir = { "drone_env" = ".", "drone_env.server" = "server", "drone_env.core" = "core", "drone_env.rl" = "rl" }
{drone_env/rl β†’ rl}/__init__.py RENAMED
File without changes
{drone_env/rl β†’ rl}/model.py RENAMED
File without changes
{drone_env/rl β†’ rl}/policy.py RENAMED
File without changes
{drone_env/rl β†’ rl}/trainer.py RENAMED
File without changes
{drone_env/server β†’ server}/Dockerfile RENAMED
File without changes
{drone_env/server β†’ server}/__init__.py RENAMED
File without changes
{drone_env/server β†’ server}/app.py RENAMED
@@ -17,7 +17,7 @@ import time
17
  import json
18
 
19
  # Add root to sys.path for local imports
20
- BASE_DIR = Path(__file__).parent.parent.parent
21
  if str(BASE_DIR) not in sys.path:
22
  sys.path.insert(0, str(BASE_DIR))
23
 
 
17
  import json
18
 
19
  # Add root to sys.path for local imports
20
+ BASE_DIR = Path(__file__).parent.parent
21
  if str(BASE_DIR) not in sys.path:
22
  sys.path.insert(0, str(BASE_DIR))
23
 
{drone_env/server β†’ server}/drone_env_environment.py.bak RENAMED
File without changes
{drone_env/server β†’ server}/grid_world_environment.py RENAMED
File without changes
{drone_env/server β†’ server}/map_generator.py RENAMED
File without changes
{drone_env/server β†’ server}/static/index.html RENAMED
File without changes
{drone_env/server β†’ server}/static/script.js RENAMED
File without changes
{drone_env/server β†’ server}/static/style.css RENAMED
File without changes