You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository does not receive automatic reviews because it has fewer than 10 stars.
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: f0ca64c2-9033-46e9-8bf3-7137d95438bc
No actionable comments were generated in the recent review.
Walkthrough
The pull request adds and exports HuggingFaceImageDataset for paired image data. It adds validation, metadata and image access, mask retrieval, and subset operations. It also updates dependency constraints and image-generation calls in test fixtures.
Changes: Hugging Face image dataset adapter
Layer / File(s)
Summary
Add and expose the adapter contract pyproject.toml, tests/conftest.py, tests/datasets/conftest.py, tests/datasets/ds_engine/test_crop_manifest.py, src/virtual_stain_flow/datasets/__init__.py, src/virtual_stain_flow/datasets/hf_dataset.py, tests/datasets/test_hf_dataset.py
The project adds or constrains pyarrow, pillow, mlflow, and datasets. The package exports HuggingFaceImageDataset, which validates its source dataset, columns, and channel keys. Tests add Hugging Face dataset fixtures and construction checks. Existing image fixtures no longer pass an explicit mode to Image.fromarray.
Implement dataset access and reads src/virtual_stain_flow/datasets/hf_dataset.py, tests/datasets/test_hf_dataset.py
The adapter adds indexing, metadata access, raw image and mask reads, and subset creation. Tests cover channel ordering, raw values, index state, returned arrays, and transform behavior.
This change adds a Hugging Face image dataset adapter, with tests and dependency updates. No concrete merge-blocking issue was found.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title "Hf dataset support" names the main change: the new HuggingFaceImageDataset adapter and its tests. It is short and specific enough for a teammate scanning history. It omits the Pillow and py…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "Hf dataset support" names the main change: the new HuggingFaceImageDataset adapter and its tests. It is short and specific enough for a teammate scanning history. It omits the Pillow and pyarrow dependency updates, which is acceptable because the title need not cover every detail. The title is brief and uses a common abbreviation (HF) without expansion, which is a minor clarity point.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: defaults
Review profile: CHILL
Plan: Advanced
Run ID: 6166fad5-7e87-4aff-b421-e3a1b7c9264c
Commits
Reviewing files that changed from the base of the PR and between 8c8eaab and b89cc91.
Files selected for processing: 7
pyproject.toml
src/virtual_stain_flow/datasets/__init__.py
src/virtual_stain_flow/datasets/hf_dataset.py
tests/conftest.py
tests/datasets/conftest.py
tests/datasets/ds_engine/test_crop_manifest.py
tests/datasets/test_hf_dataset.py
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary by CodeRabbit