Skip to content

feat: implement check-data subcommand for fast dataset validation#19

Open
revaarathore11 wants to merge 1 commit into
humanai-foundation:mainfrom
revaarathore11:feature/check-data
Open

feat: implement check-data subcommand for fast dataset validation#19
revaarathore11 wants to merge 1 commit into
humanai-foundation:mainfrom
revaarathore11:feature/check-data

Conversation

@revaarathore11

Copy link
Copy Markdown

Summary

This PR introduces a new check-data subcommand to both the main reconstruction pipeline and the batch processing tool. The command allows contributors to quickly verify that their dataset (directories and .ply files) is correctly structured and accessible before running expensive preprocessing or reconstruction steps.

Key Changes

🧩 Centralized Validation Logic
• Introduced cli_utils.py to host shared dataset validation and reporting logic
• Ensures consistent behavior across main_pipeline.py and batch_processor.py
• Eliminates duplicated validation code

🔒 Strictly Side-Effect Free
• Validation is fully read-only
• Uses path traversal and permission checks (os.access)
• Never creates directories, files, or temporary artifacts

✅ Improved UX
• Clear, standardized output with explicit PASS / FAIL status
• Actionable error messages to help users fix dataset issues quickly

⚡ Lightweight & Fast
• Avoids heavy dependencies (e.g. open3d, numpy)
• Near-instant execution, suitable for early dataset verification

📚 Documentation Updates
• Updated README_ONBOARDING.md with:
• Usage instructions
• Examples
• Guidance on when to use check-data vs the full validate workflow

🧹 Repository Hygiene
• Updated .gitignore to prevent tracking of:
pycache/
• Compiled Python artifacts (*.pyc)

Usage Examples
python main_pipeline.py check-data <dataset_path>
python batch_processor.py check-data <dataset_path>

@revaarathore11

Copy link
Copy Markdown
Author

@Marmotia1 please review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant