Update #2
Reference in New Issue
Block a user
No description provided.
Delete Branch "update_"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary by CodeRabbit
New Features
Bug Fixes
Chores
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID:
b82d6f30-7e72-48f5-90bc-7c702dfb29e0📥 Commits
Reviewing files that changed from the base of the PR and between
43f5c0f7daand8de0c5e844.⛔ Files ignored due to path filters (17)
workspace/sprint_1_2/CODEBASE/infra/tests/test_images/other_angle/med-lat_1.pngis excluded by!**/*.pngworkspace/sprint_1_2/CODEBASE/infra/tests/test_images/other_angle/med_lat_2.pngis excluded by!**/*.pngworkspace/sprint_1_2/CODEBASE/infra/tests/test_images/other_angle/trans_flex.pngis excluded by!**/*.pngworkspace/sprint_1_2/CODEBASE/infra/tests/test_images/post_trans_negative/72bb1476-f020-11ed-b527-0a580a5f736a_17.pngis excluded by!**/*.pngworkspace/sprint_1_2/CODEBASE/infra/tests/test_images/post_trans_negative/72bb322d-f020-11ed-b527-0a580a5f736a_17.pngis excluded by!**/*.pngworkspace/sprint_1_2/CODEBASE/infra/tests/test_images/post_trans_positive/72bb41ed-f020-11ed-b527-0a580a5f736a_17.pngis excluded by!**/*.pngworkspace/sprint_1_2/CODEBASE/infra/tests/test_images/post_trans_positive/72bb4c47-f020-11ed-b527-0a580a5f736a_17.pngis excluded by!**/*.pngworkspace/sprint_1_2/CODEBASE/infra/tests/test_images/sup-up-long_negative/53a31572-4380-11ee-9e9a-0a580a5f5f0e_11.pngis excluded by!**/*.pngworkspace/sprint_1_2/CODEBASE/infra/tests/test_images/sup-up-long_negative/58e7a90f-de3e-11ee-97e2-0a580a5f5b60_11.pngis excluded by!**/*.pngworkspace/sprint_1_2/CODEBASE/infra/tests/test_images/sup-up-long_negative/72bb0a8a-f020-11ed-b527-0a580a5f736a_11.pngis excluded by!**/*.pngworkspace/sprint_1_2/CODEBASE/infra/tests/test_images/sup-up-long_positive/58e7a7ef-de3e-11ee-97e2-0a580a5f5b60_11.pngis excluded by!**/*.pngworkspace/sprint_1_2/CODEBASE/infra/tests/test_images/sup-up-long_positive/58e7aa6d-de3e-11ee-97e2-0a580a5f5b60_11.pngis excluded by!**/*.pngworkspace/sprint_1_2/CODEBASE/infra/tests/test_images/sup-up-long_positive/72bb0b3a-f020-11ed-b527-0a580a5f736a_21.pngis excluded by!**/*.pngworkspace/sprint_1_2/CODEBASE/infra/tests/test_images/sup-up-long_positive/72bb1aaf-f020-11ed-b527-0a580a5f736a_11.pngis excluded by!**/*.pngworkspace/sprint_1_2/CODEBASE/infra/tests/test_images/sup-up-long_positive/72bb1ac0-f020-11ed-b527-0a580a5f736a_11.pngis excluded by!**/*.pngworkspace/sprint_1_2/CODEBASE/infra/tests/test_images/sup-up-long_positive/72bb1c1e-f020-11ed-b527-0a580a5f736a_21.pngis excluded by!**/*.pngworkspace/sprint_1_2/CODEBASE/infra/tests/test_images/sup-up-long_positive/NGUYEN THI DO_raw_0_1.jpgis excluded by!**/*.jpg📒 Files selected for processing (5)
workspace/LEGACY/VKIST_ML/codebase-vkist-ultrasound-legacy/ML/app.pyworkspace/sprint_1_2/CODEBASE/infra/implementation/triton_run/run.shworkspace/sprint_1_2/CODEBASE/infra/tests/test.pyworkspace/sprint_1_2/CODEBASE/infra/tests/test_1_model.pyworkspace/sprint_1_2/CODEBASE/infra/tests/test_config.py📝 Walkthrough
Walkthrough
A
cdcommand is prepended torun.shto fix the working directory formodal deploy. New test files are added:test_config.pywith shared Triton URL and model name constants;test_1_model.pyfor single sub-model KServe v2 binary inference; andtest.pyfor full ensemble inference with angle/inflammation decoding and batch result output toresult.json.Changes
Triton Inference Test Infrastructure
workspace/sprint_1_2/CODEBASE/infra/tests/test_config.py,workspace/sprint_1_2/CODEBASE/infra/implementation/triton_run/run.shTRITON_URLandMODEL_NAMEmodule-level constants totest_config.py; prepends acdtorun.shsomodal deployexecutes from the correct directory.workspace/sprint_1_2/CODEBASE/infra/tests/test.pyload_imagefor RGB conversion,preprocess_224andpreprocess_512for NCHW FP32 tensor preparation at both resolutions.workspace/sprint_1_2/CODEBASE/infra/tests/test.py,workspace/sprint_1_2/CODEBASE/infra/tests/test_1_model.pybuild_ensemble_requestserializes JSON metadata joined with dual-resolution tensor bytes;parse_kserve_v2_responsereadsInference-Header-Content-Length, decodes the JSON header, and slices the binary payload into named NumPy arrays with a fallback for absentbinary_data_size.test_1_model.pyis a self-contained demonstration of the same KServe v2 binary protocol for a single sub-model.workspace/sprint_1_2/CODEBASE/infra/tests/test.pysoftmax,decode_angle_from_ensemble(averaged multi-head logits),decode_inflammation(0.5 threshold),infer_ensemble(end-to-end POST to Triton),analyze_image_flow(conditional inflammation based on angle class), andmain(folder scan, per-image inference, error capture,result.jsonoutput).Estimated code review effort
🎯 3 (Moderate) | ⏱️ ~20 minutes
Poem
✨ Finishing Touches
📝 Generate docstrings
🧪 Generate unit tests (beta)
update_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.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.