CBT_project/pixi.toml
Xiao Furen 332226f843 Add pixi.toml configuration for project dependencies and tasks
- Created a new pixi.toml file to manage project dependencies and tasks.
- Defined workspace metadata including authors, channels, name, platforms, and version.
- Specified tasks for preprocessing, PSO, DE, and other scripts.
- Listed dependencies for Python and various libraries with specific versions.
- Configured additional PyPI options for PyTorch installation from a custom index.
2026-10-19 20:34:28 +08:00

39 lines
No EOL
1.2 KiB
TOML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[workspace]
authors = ["Xiao Furen <xfr@dr.com>"]
channels = ["conda-forge"]
name = "CBT_project"
platforms = ["linux-64"]
version = "0.1.0"
# 管線入口腳本(從 repo 根目錄執行;追加參數用 `pixi run <task> -- <args>`)
[tasks]
preprocess = "python xfr_preprocess.py"
pso = "python xfr_pso.py"
de = "python xfr_de.py"
check-spinous = "python xfr_check_spinous.py"
rerender-spinous = "python xfr_rerender_spinous.py"
cbt-native = "python xfr_cbt_native.py"
record-planes = "python xfr_record_planes.py"
plot-level = "python xfr_plot_level.py"
# conda 端只裝 python(與原 conda env cbt 的 3.14.3 同代),
# 其餘全部走 pypi,版本對齊原 env。
[dependencies]
python = "3.14.*"
# torch 從 pytorch cu126 index 取(2.11.0+cu126);其餘走 PyPI。
# 專案未使用 torchvision / torchaudio,原 env 有裝但管線未 import;
# 需要時在此加回並沿用同一 index 即可。
[pypi-dependencies]
numpy = "==2.4.4"
scipy = "==1.17.1"
scikit-learn = "==1.8.0"
matplotlib = "==3.10.8"
nibabel = "==5.4.2"
simpleitk = "==2.5.3"
tinydb = "==4.9.0"
pyswarm = "==0.6"
torch = "==2.11.0"
[pypi-options]
extra-index-urls = ["https://download.pytorch.org/whl/cu126"]