
pardesline
io.github.pardesline由 GitHub 账号 pardesline 发布v0.3.1更新于 Nov 4, 2026
3D vision and medical imaging: 43 datasets with licences, 73 algorithms on clouds, meshes, CT/MRI
概览
本地 MCP 服务器,提供 43 个公开三维与医学影像数据集和 73 种算法,让助手加载样本、运行流程并导出文件。
- 可以做什么
- 浏览并查看数据集目录,列出样本并加载单个样本
- 扫描本地文件夹,或起草并确认数据集清单
- 列出、说明并运行点云、网格与 CT/MRI 体数据上的算法
- 将对象转换为网格并导出标准文件
- 在使用某方法前读取对应的专家技能指南
- 适用场景
- 适合需要让助手处理三维视觉或医学影像数据的场景:获取公开的 CT/MRI 或点云样本,运行配准、分割或重建,并导出结果,而无需手写 Python 代码。
- 运行要求
- 以 pardesline PyPI 包通过 stdio 在本地运行(uvx 或带 mcp 附加项的 pip 安装),需要 Python 3.10-3.13;本地与医学附加项提供原生库。下载数据集需要网络访问。仅当使用已接受条款的门控 Hugging Face 数据集时才需要 HF_TOKEN。
安装
在 SourceWeft 中
- 打开 控制台中的 pardesline,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
[pardesline logo: wordmark with a point-cloud glyph]
pardesline: 3D computer vision and medical imaging datasets, algorithms and models for Python
Load 43 public 3D and medical datasets in one line, run 73 algorithms on point clouds, meshes and CT/MRI volumes with defaults that hold on real scans, hand the result to Open3D, PyVista or SimpleITK, or to an AI agent through MCP.
[PyPI version] [Python versions] [PyPI downloads per month] [CI status] [Test coverage] [Docs build] [OpenSSF Scorecard] [Documentation] [License Apache-2.0] [Citation file] [GitHub Discussions]
[Animated carousel of ten 3D vision and medical imaging pipelines built with pardesline: JEPA, DINOv3, ultrasound atlas transfer, Gaussian splats, 3D representations, atlas segmentation, PointNet, VAE anomaly detection, CT/MR registration, RANSAC + ICP]
Ten pipelines, one package: the showcase has the snippet, the expert skill and the MCP tool for each.
30-second demo: dataset in, registration out
Measured cold on a laptop: 7.6 s download, 8.8 s registration, 21.5 s total. The script is examples/register_ct_mr_rire/run.py.
Why this exists
- Datasets are scattered and incompatible. The Decathlon is a tar on S3, TCIA is a REST API that returns zips of DICOM, KiTS is on Hugging Face, KITTI is a zip of headerless binaries. pardesline describes each one in a manifest (files, roles, labels, frame, units, licence, citation) and fetches lazily, by HTTP Range inside archives when it can, so one sample costs one sample.
- Nothing carries its meaning. A
.binis numbers until someone says(N, 4) float32, x y z reflectance, metres. A NIfTI label map is integers until someone says1 = anterior. Manifests carry that; your own folders get it throughpl.scan, which asks what it cannot know instead of guessing. - Open3D, PyVista and SimpleITK do not talk to each other. One typed object (
PointCloud,Mesh,Volume,LabelMap) converts between them, keeps frame, units, labels, licence and provenance, and exposesto_open3d(),to_pyvista(),to_sitk()when you want the library itself. - Textbook defaults break on real scans. The ICP that converges on the tutorial fragments ends 32 degrees off on a noisy partial scan while reporting a 0.98 fitness. Every algorithm here runs behind one call with defaults tied to the data (voxel size from the bounding box, correspondence distances as multiples of it) and the sidecar records what was used. See Defaults that work on real data.
- Models do not plug into datasets. The expert skills and reference scripts (PointNet, DINOv3 features, JEPA, VAE, nnU-Net preparation) read any pardesline dataset. One-line access to pretrained models through the same manifest pattern is the next step on the roadmap.
Install
[local] needs Open3D wheels: 0.20 covers Python 3.10 – 3.13, 0.19 covers 3.10 – 3.12. pardesline 0.2.0 on PyPI pins Open3D below 0.20, so on Python 3.13 use 3.12 or install from main until 0.3.0 ships. Conda users: conda create -n pl python=3.12 && pip install "pardesline[all]" (Open3D and SimpleITK come from PyPI). Troubleshooting: docs/running-modes.md.
📦 Datasets
One loader for every source. Files are fetched on access and verified; the licence and the citation travel with the data; ds.describe() says what each role is, in which frame and units, and what the labels mean.
Medical (35)
General 3D (8)
"Size" is the whole source; one sample costs its own size. "See source" means the data owner states terms outside a standard licence; ds.describe() prints them and the loader warns. Not bundled, and why: BraTS (Synapse data-use agreement), ModelNet, ShapeNet and ScanNet (registration-gated downloads); they are on the Datasets wanted list.
What standardization and the manifest give you: every role is typed (volume, labels, mesh, points, splat, image, transform), with frame (LPS, sensor, Y-up), units (mm, m), label names, raw-array layouts, licence, citation and provenance; label maps become exact surfaces in world coordinates, DICOM series become one volume, .npy/.bin become point clouds; ds.export(folder) writes standard PLY / MetaImage files with sidecars; ds.split(by="patient") never leaks a patient across splits. Add a dataset: CONTRIBUTING.md and docs/datasets.md.
🧠 Algorithms & models
Every row is a public capability of the package today. "Works on" names the object types from the table above. "Validated on" names the bundled data an example or test exercised; a blank cell means the method is covered by generated-data tests only.
Classical algorithms (73 methods in 19 catalog modules; pl.describe("module.method") prints every parameter with its range)
Deep-learning models (reference implementations and expert guides; no weights are shipped and there is no inference API yet. The direction: one-line pretrained model access through the same manifest and loader pattern as datasets, see the model registry tracking issue.)
Metrics & evaluation
Defaults that work on real data
Same task, same two clouds: the Stanford bunny sampled to 20 000 points, and a second "scan" rotated by 35°, trimmed to 70 % overlap and jittered with 0.5 % noise of the bounding-box diagonal. Left, Open3D's registration_icp the way the tutorial calls it; right, target.align(moving).
What the one call sets, and why:
voxel_size = 0→ 1.3 % of the bounding-box diagonal: the feature scale follows the object, not a hard-coded 0.05 m that is wrong for a 15 cm bunny and for a 15 m facade alike.distance_threshold_factor = 1.5 × voxel: RANSAC accepts a correspondence within one and a half cells; tighter rejects true matches on noisy scans, looser lets outliers in.- RANSAC on FPFH first, ICP second: ICP alone is a local optimiser and needs a start within a few degrees; a 35° offset is outside its basin, which is why the textbook call stops where it started.
icp_estimation_method = point_to_plane,icp_threshold_factor = 1.5 × voxelthenrefine_threshold_factor = 0.4 × voxel: coarse to fine, so the last iterations are not pulled by the 30 % of points that have no counterpart.- Every value is in the sidecar
aligned.provenance[-1]["params"], andpl.describe("registration.ransac_icp_pipeline")prints the ranges to override them.
Numbers come from examples/icp_registration_bunny/run.py (result.json is committed next to the images). The written proof for every algorithm family, failure mode by failure mode, is the docs page Why our defaults work.
Validated on real cases
These run on public data that stands in for the industrial and medical scans the defaults were tuned on. Real cases from users are collected in examples/real_cases/: a template and a tracking issue, so that every claim on this page stays reproducible.
How it compares
pardesline is the dataset layer and the domain-level API on top of these libraries, not a replacement: it calls Open3D, PyVista, VTK and SimpleITK and hands you their objects. Each cell is checked against the project's own documentation; corrections are welcome as issues.
Full page with the sources of each cell: docs comparison.
Examples gallery
Each folder is one self-contained script that downloads what it needs, runs, and writes its images next to itself. Titles follow <algorithm or model> on <dataset>. Run any of them with python examples/<folder>/run.py.
Also: Dice / HD95 between three radiologists on the liver tumour CT (0.82 to 0.85 Dice, 2.5 mm HD95: the inter-observer ceiling). The PyTorch examples need pip install torch (CPU is enough); DINOv3 weights need the licence accepted on the Hub, DINOv2 does not. Index and expected runtimes: examples/README.md.
🤖 MCP: give it to an AI agent
The server exposes the datasets, the algorithms, the object model and the twenty skills as tools: list_datasets, describe_dataset, list_samples, load_sample, scan_dataset, confirm_dataset, export_dataset, list_methods, describe_method, run_method, describe_object, to_mesh, list_skills, get_skill. An agent can browse the catalog, fetch one sample, run a pipeline, read the expert guide for the method it is about to use, and export standard files. Questions the package will not guess (licence, units, array layout) come back as JSON for the agent to relay to the human. No account, nothing leaves the machine. Client configurations and the full contract: docs/mcp.md.
Roadmap
Vote with 👍 on the tracking issue; comment with your dataset, model or use case.
- Model registry: one-line access to pretrained 3D and medical models (DINOv3, SAM-3D-style segmenters, JEPA encoders, PointNet, segmentation nets) through a model manifest (source, weights URI, licence, input type, task, memory needs, provenance) and
pl.load_model(...)/pl.run(model, dataset), the same pattern as datasets. Tracking issue - Gaussian splats as a first-class kind (
Splat: load, render, convert to points, metrics). Tracking issue - More datasets: BraTS (behind the user's Synapse credentials), VerSe 2020, the remaining public TCIA collections, ModelNet / ShapeNet / ScanNet once their gating can be honoured. Datasets wanted
- Models wanted: model manifests contributors can write before the runner exists. Models wanted
- Benchmarks: package defaults vs upstream defaults on the bundled data, numbers regenerated by CI. Tracking issue
- A pardesline organisation on Hugging Face mirroring the permissive datasets with
pip install pardeslineas the documented loader. Tracking issue - Deformable registration and TotalSegmentator-class segmentation behind the same calls (
align(mode="deformable"),segment(model=...)). Tracking issue
Community and contributing
- Questions and show-and-tell: GitHub Discussions.
- Bugs and requests: issues, with templates for bugs, features, dataset requests and algorithm or model requests.
- First contribution: good first issues, most of them "add dataset X" or "add algorithm Y" with a template to copy.
- How to set up, test, add a dataset, an algorithm or a model: CONTRIBUTING.md. Code of conduct: CODE_OF_CONDUCT.md. Security: SECURITY.md.
Citation
If pardesline helps your research, cite it (CITATION.cff, also behind the "Cite this repository" button):
Cite the datasets you use as well: ds.citation returns the reference the data owner asks for.
Acknowledgements and licence
pardesline stands on Open3D, PyVista and VTK, SimpleITK, NumPy, SciPy, scikit-image, pycpd, httpx, pydantic, loguru, huggingface_hub and the MCP Python SDK. The datasets belong to their authors and institutions; every manifest carries the citation they ask for and the licence they state.
Apache License 2.0 for the package; see LICENSE and NOTICE. Datasets keep their own licences: ds.describe() prints them.
来源:README.md,提交 bbce739
工具
0版本历史
1- v0.3.1最新Nov 4, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分