Repository navigation
feat(inference): load Stage-2 training components - #46
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe change adds training-checkpoint loading for the U-Net and optional VAE. Both ChangesTraining checkpoint support
Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant CLI as infer.py or run.py
participant Loader as load_training_components
participant Pipeline as ApDepthPipeline
CLI->>Loader: Load components from --training_checkpoint
Loader-->>CLI: Return U-Net and optional VAE
CLI->>Pipeline: Pass component overrides to from_pretrained
Merge Risk: ⚪ Minimal · up to Training checkpoints load into both inference paths as intended, with native-resolution processing retained where applicable. The change is ready to merge. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
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. Comment |
Summary
--training_checkpointto folder and dataset inference without changing legacy checkpoint behaviorRelated Issue
N/A
Type of Change
Test Results
D:\Anaconda\envs\roll\python.exe -m pytest tests -q- 3 passedD:\Anaconda\Scripts\ruff.exe check apdepth\util\checkpoint.py infer.py run.py tests- passedgit diff --check- passedpython run.py --help- passedpython infer.py --help- passedSummary by CodeRabbit
New Features
--training_checkpointsupport to inference and execution commands.Bug Fixes