Skip to content

Feat/abdul/yolo#27

Open
AbdelrahmanKatkat wants to merge 67 commits into
masterfrom
feat/abdul/yolo
Open

Feat/abdul/yolo#27
AbdelrahmanKatkat wants to merge 67 commits into
masterfrom
feat/abdul/yolo

Conversation

@AbdelrahmanKatkat
Copy link
Copy Markdown
Contributor

@AbdelrahmanKatkat AbdelrahmanKatkat commented Apr 9, 2026

What does this PR do?

  • Adds the yolo_v8_segmentation model pack with STAC metadata, Docker setup, README, and ZenML training/inference pipeline.
  • Adds pytest-based pipeline tests and aligns the model structure with the repository conventions used by other models.

AbdelrahmanKatkat and others added 14 commits March 2, 2026 00:03
…files, and tests

- Introduced YOLOv8-v1 and YOLOv8-v2 for building footprint segmentation.
- Added ZenML pipelines for training and inference.
- Created Dockerfiles for isolated runtime environments.
- Implemented comprehensive smoke tests to validate functionality.
- Updated .gitignore to include new sample data directories.
…from STAC

- Added functions to load model weights and hyperparameters from STAC Item JSON files.
- Updated preprocess and training_pipeline functions to utilize loaded hyperparameters.
- Enhanced stac-item.json files for both YOLOv8-v1 and YOLOv8-v2 with additional metadata and structure.
- Improved documentation for clarity on model configuration and usage.
- Deleted YOLOv8-v1 Dockerfile, pipeline, README, STAC item, and tests to streamline the model repository.
- Updated .gitignore to exclude new directories for runs and weights.
- Consolidated focus on YOLOv8-v2 for building footprint segmentation.
…artifact tracking

- Modified the run_preprocessing function to return a list of tuples containing image data and corresponding label data.
- Enhanced error handling in train_model to raise an error if the data loader is empty.
- Updated training_pipeline to accommodate the new data loader structure.
- Removed unnecessary line breaks and consolidated code for better clarity.
- Updated error message formatting for consistency.
- Minor adjustments in the test file for improved readability.
refactor(pipeline): streamline code formatting and improve readability
- Introduced a new step to split an existing YOLO dataset into train and validation sets.
- Implemented shuffling and validation fraction control via hyperparameters.
- Ensured proper directory structure and error handling for dataset integrity.
- Updated the training pipeline to include the dataset splitting step.
- Updated the `run_preprocessing` function to return a list of tuples containing image data and corresponding label data for ZenML artifact tracking.
- Added error handling to ensure the data loader is not empty before proceeding with model training.
- Adjusted the training pipeline to utilize the new data loader structure.
- Added a new function to resolve input directories for local and remote datasets.
- Updated the `preprocess` function to return the preprocessed directory path.
- Refactored the `split_dataset` function to generate YOLO train/val splits and return split metadata.
- Adjusted the smoke test to validate the new preprocessing and dataset splitting workflow.
- Added `split_seed` parameter to the configuration for reproducibility.
- Added a missing comma in the metadata dictionary returned by the split_dataset function for improved syntax correctness.
Comment thread models/yolo_v8_v2/tests/inside_container_smoke_test.py Outdated
Comment thread models/yolo_v8_v2/Dockerfile Outdated
Comment thread models/yolo_v8_v2/README.md Outdated
Copy link
Copy Markdown
Member

@kshitijrajsharma kshitijrajsharma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread models/yolo_v8_v2/pipeline.py Outdated
Comment thread models/yolo_v8_v2/pipeline.py Outdated
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 20, 2026

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

Comment thread models/yolo_v8_segmentation/pipeline.py Outdated
kshitijrajsharma and others added 17 commits May 16, 2026 21:34
…eoJSON/JSON files and improved error handling
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.

2 participants