No description
Find a file
Xiao Furen 0274e954be refactor(core): improve cylinder parameter snapping and optimization logic
Refactor the cylinder parameter selection and optimization process to
improve accuracy and robustness.

- Implement `snap_to_discrete_values_xfr` using a KDTree for efficient
  mapping of continuous diameter and length values to a predefined
  set of discrete points.
- Update `objective_function_xfr` to use the new snapping mechanism
  and introduce a weighted loss component for diameter and length.
- Adjust PSO optimization bounds and search ranges in `run_pso_torch_xfr`
  to better align with image dimensions and anatomical constraints.
- Refine scoring logic in `cl_score_torch_xfr` with updated penalty
  weights for overlaps and out-of-bone voxels.
- Update `config/constant.py` with new allowed diameter and length
  ranges.
- Improve `imaging/preprocessing.py` by making `PROGRESS_FILE` a
  parameter to allow per-output-directory progress tracking.
- Update `xfr_debug.py` with improved error handling and directory
  paths for batch processing.
2026-08-26 22:36:07 +08:00
.kilo/agents refactor(core): improve cylinder parameter snapping and optimization logic 2026-08-26 22:36:07 +08:00
.vscode refactor(core): improve cylinder parameter snapping and optimization logic 2026-08-26 22:36:07 +08:00
config refactor(core): improve cylinder parameter snapping and optimization logic 2026-08-26 22:36:07 +08:00
core refactor(core): improve cylinder parameter snapping and optimization logic 2026-08-26 22:36:07 +08:00
imaging refactor(core): improve cylinder parameter snapping and optimization logic 2026-08-26 22:36:07 +08:00
results first commit 2026-04-10 13:25:27 +08:00
utils first commit 2026-04-10 13:25:27 +08:00
visualization 1. correct the bounding box and cortical mask 2026-04-17 00:03:10 +08:00
.gitignore refactor(core): improve cylinder parameter snapping and optimization logic 2026-08-26 22:36:07 +08:00
__init__.py first commit 2026-04-10 13:25:27 +08:00
experiment.ipynb first commit 2026-04-10 13:25:27 +08:00
optimization_benchmark_results_DE.csv first commit 2026-04-10 13:25:27 +08:00
optimization_benchmark_results_NM.csv first commit 2026-04-10 13:25:27 +08:00
optimization_benchmark_results_PSO.csv first commit 2026-04-10 13:25:27 +08:00
progress.json refactor(core): improve cylinder parameter snapping and optimization logic 2026-08-26 22:36:07 +08:00
run_all_cases.py first commit 2026-04-10 13:25:27 +08:00
run_benchmark.py first commit 2026-04-10 13:25:27 +08:00
run_de.py first commit 2026-04-10 13:25:27 +08:00
run_pso.py first commit 2026-04-10 13:25:27 +08:00
structure.txt first commit 2026-04-10 13:25:27 +08:00
xfr_debug.py refactor(core): improve cylinder parameter snapping and optimization logic 2026-08-26 22:36:07 +08:00
xfr_preprocess.py refactor(core): improve cylinder parameter snapping and optimization logic 2026-08-26 22:36:07 +08:00