专属
文档
插件
助手
邀请
顶部
快速返回页面顶部
收起
收起工具栏
轩辕镜像 官方专业版
轩辕镜像
专业版
轩辕镜像 官方专业版
轩辕镜像
专业版
首页个人中心搜索镜像

交易
充值流量我的订单

文档

工具

功能
提交工单页面收录

帮助
轩辕镜像免费版

其他
关于我们网站地图
热门搜索:
mussel

mskmind/mussel

mskmind

Mussel - Computational pathology toolkit for whole-slide images

下载次数: 0状态:社区镜像维护者:mskmind仓库类型:镜像最近更新:13 天前
让 AI 帮你使用轩辕镜像? · 展开查看说明

如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。

只需在 AI 对话中先发送下面这句话即可:

请先完整阅读并严格遵守以下文档中的全部规则与要求:

https://xuanyuan.cloud/agents.md

在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。

查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。

轩辕镜像,让镜像更快,让人生更轻。点击查看
镜像简介
标签下载
镜像标签列表与下载命令
轩辕镜像,让镜像更快,让人生更轻。点击查看

Mussel

This is a fork of Faisal Mahmood's https://github.com/mahmoodlab/CLAM (GPL v3 license), with a handful of modifications:

  • Added additional foundation models for generating embeddings
  • Added zero-shot tissue-type annotation of tiles
  • Added caching of images for inference right on the tiles (rather than on embeddings)
  • Added microns per pixel (mpp) as parameter for tiling, supported regardless of native slide resolution
  • Made usable for job submission (one script run, one slide)
  • Removed modeling
  • Updated the tiling algorithm

Installation

System requirements

Supported systems:

  • Mac OS (x86 and ARM) (cpu only)
  • Linux (x86) (cpu and gpu)

Supported slide formats

Mussel reads whole-slide images via https://github.com/Bayer-Group/tiffslide (backed by https://github.com/cgohlke/tifffile). The following formats are supported:

ExtensionFormatScanner / VendorTiffslide support
.svsAperio SVSLeica (Aperio)✅ Full
.scnLeica SCNLeica✅ Full
.tif / .tiffTIFF, BigTIFF, OME-TIFFGeneric / various✅ Full
.ndpiHamamatsu NDPIHamamatsu⚠️ Partial — see notes
.bifVentana BIFRoche (Ventana)⚠️ Partial — see notes
.mrxsMIRAX3DHISTECH⚠️ Generic TIFF — see notes
.vms / .vmuHamamatsu VMS / VMUHamamatsu⚠️ Generic TIFF — see notes
.qptiffPerkinElmer / Akoya QPTIFFPerkinElmer / Akoya⚠️ Generic TIFF — see notes
.cziCarl Zeiss CZIZeiss⚠️ Generic TIFF — see notes

Format support notes:

  • SVS, SCN, TIFF/BigTIFF/OME-TIFF — fully supported; tiffslide parses vendor metadata and reliably populates tiffslide.mpp-x.
  • NDPI — tiffslide's Hamamatsu parser is marked "only partially implemented"; MPP is read from standard TIFF resolution tags (tiff.XResolution / tiff.ResolutionUnit). Most Hamamatsu scanners embed resolution in TIFF tags, so this works in practice. If MPP is wrong or missing, use seg_config.slide_mpp_override.
  • BIF — tiffslide has no special Ventana parser; falls back to generic TIFF tag reading. Use seg_config.slide_mpp_override if MPP is not found automatically.
  • MRXS — tiffslide uses generic TIFF parsing. MRXS is a multi-file format: the .mrxs file must be accompanied by its sidecar directory (same name, no extension) in the same location; moving only the .mrxs file will cause a read error.
  • VMS / VMU — older Hamamatsu pyramid formats; treated as generic TIFF. These formats are uncommon on modern scanners; test before relying on them in production.
  • QPTIFF — PerkinElmer/Akoya format; treated as generic TIFF. Multiplex (multi-channel) QPTIFF files are supported for tiling but feature extraction uses the first channel only.
  • CZI — Zeiss format; tifffile provides CZI support. Multi-series CZI files (multiple acquisitions in one file) are supported but only the first series (index 0) is used.

MPP (microns per pixel) retrieval — Mussel reads MPP from slide metadata using the following fallback chain:

  1. slide_mpp_override CLI parameter — if provided, used directly; all metadata reading is skipped
  2. tiffslide.mpp-x — standard property populated by tiffslide for all supported formats
  3. aperio.MPP / openslide.mpp-x — legacy vendor property names
  4. tiff.XResolution + tiff.ResolutionUnit — raw TIFF resolution tags converted to µm/px; tiffslide exposes these for partially-supported formats (NDPI, BIF, MRXS, QPTIFF, CZI) even when it cannot normalize them to tiffslide.mpp-x
  5. Magnification-based estimate: scans aperio.AppMag, openslide.objective-power, and tiffslide.objective-power; computes MPP as 10.0 / magnification
  6. Configurable default (0.5 µm/px, typical for 20× TCGA slides) with a warning log

When slides lack MPP metadata and the default 0.5 µm/px doesn't match the actual scanner resolution, pass the known value explicitly:

bash
tessellate slide_path=slide.svs seg_config.slide_mpp_override=1.0 ...
tessellate_extract_features slide_path=slide.svs seg_config.slide_mpp_override=0.25 ...
export_tiles slide_path=slide.svs slide_mpp_override=0.5 ...

Pre-requisites

  • uv
    bash
    curl -LsSf https://astral.sh/uv/install.sh | sh
    

Create virtual environment and install packages

Model inference may require either PyTorch or TensorFlow, depending on which foundation models you wish to use. Because it can be challenging to satisfy the dependencies for both of those at the same time, you need to choose whether to install the module for PyTorch or for TensorFlow.

In addition, you can choose to install Mussel with or without GPU support. GPUs are necessary to run model inference for feature extraction or for generating class embeddings, but other operations can just run on cpus. (Technically, model inference can just run on cpus, as well, but it's very slow.)

PyTorch

Install PyTorch support first, then models are downloaded automatically on first use:

bash
uv sync --extra torch-gpu   # GPU (CUDA) — recommended
uv sync --extra torch-cpu   # CPU only (Mac or CPU-only Linux)

PyTorch is required for the following patch encoders:

Modelmodel_typeAccessHuggingFace
ResNet-50RESNET50publicbuilt-in (torchvision)
TransPathCTRANSPATHpublichttps://github.com/Xiyue-Wang/TransPath
OpenCLIPCLIPpublicwisdomik/QuiltNet-B-16-PMB
PhikonPHIKONpublicowkin/phikon
Phikon-v2PHIKON_V2publicowkin/phikon-v2
Midnight-12kMIDNIGHT12Kpublickaiko-ai/midnight
Prov-GigaPathGIGAPATH🔒 gatedprov-gigapath/prov-gigapath
VirchowVIRCHOW🔒 gatedpaige-ai/Virchow
Virchow2VIRCHOW2🔒 gatedpaige-ai/Virchow2
H-Optimus-0OPTIMUS🔒 gatedbioptimus/H-optimus-0
H-Optimus-1H_OPTIMUS_1🔒 gatedbioptimus/H-optimus-1
H0-miniH0_MINI🔒 gatedbioptimus/H0-mini
UNIUNI🔒 gatedMahmoodLab/UNI
UNI2UNI2🔒 gatedMahmoodLab/UNI2-h
CONCH v1.5CONCH1_5🔒 gatedMahmoodLab/TITAN
GPFMGPFMpublicmajiabo/GPFM
Hibou-LHIBOU_L🔒 gatedhistai/hibou-L
CONCH v1.0CONCH_V1🔒 gatedMahmoodLab/CONCH
Kaiko ViT-S/8KAIKO_VITS8public1aurent/vit_small_patch8_224.kaiko_ai_towards_large_pathology_fms
Kaiko ViT-S/16KAIKO_VITS16public1aurent/vit_small_patch16_224.kaiko_ai_towards_large_pathology_fms
Kaiko ViT-B/8KAIKO_VITB8public1aurent/vit_base_patch8_224.kaiko_ai_towards_large_pathology_fms
Kaiko ViT-B/16KAIKO_VITB16public1aurent/vit_base_patch16_224.kaiko_ai_towards_large_pathology_fms
Kaiko ViT-L/14KAIKO_VITL14public1aurent/vit_large_patch14_reg4_224.kaiko_ai_towards_large_pathology_fms
Lunit DINO ViT-S/8LUNIT_VITS8public1aurent/vit_small_patch8_224.lunit_dino
Lunit DINO ViT-S/16LUNIT_VITS16public1aurent/vit_small_patch16_224.lunit_dino
OpenMidnightOPENMIDNIGHT🔒 gatedSophontAI/OpenMidnight
GenBio-PathFMGENBIO_PATHFM🔒 gatedgenbio-ai/genbio-pathfm

And the following slide encoders (aggregate patch features into a single slide embedding):

Modelmodel_typePatch encoderAccessHuggingFace
Prov-GigaPathGIGAPATH_SLIDEGIGAPATH🔒 gatedprov-gigapath/prov-gigapath
TITANTITAN_SLIDECONCH1_5🔒 gatedMahmoodLab/TITAN
PRISMPRISM_SLIDEVIRCHOW🔒 gatedpaige-ai/Prism
FEATHERFEATHER_SLIDECONCH1_5🔒 gatedMahmoodLab/abmil.base.conch_v15.pc108-24k
MADELEINEMADELEINE_SLIDECLIP🔒 gatedMahmoodLab/madeleine
CHIEFCHIEF_SLIDECTRANSPATH⬇ access req.https://github.com/hms-dbmi/CHIEF

🔒 Gated models require signing an access agreement on the HuggingFace model page and setting your token:

bash
export HF_TOKEN=hf_...

⬇ Models requiring access request are downloaded automatically once access is granted:

ModelRequest accessNotes
CHIEF (CHIEF_SLIDE)Google Drive folderRequest via https://github.com/hms-dbmi/CHIEF; gdown downloads automatically on first use

TransPath (CTRANSPATH) and CHIEF (CHIEF_SLIDE) are downloaded automatically via gdown on first use (cached in the HuggingFace hub cache directory).

GenBio-PathFM (GENBIO_PATHFM) downloads its model architecture code from GitHub on first use and caches it at ~/.cache/mussel/genbio_pathfm/. The model weights are downloaded from HuggingFace (requires a token with access to genbio-ai/genbio-pathfm).

OpenMidnight (OPENMIDNIGHT) uses the DINOv2 ViT-G/14 architecture from the facebookresearch/dinov2 torch.hub repository. On first use, Mussel downloads the repository code and caches it at ~/.cache/torch/hub/facebookresearch_dinov2_main/. The model weights are downloaded from HuggingFace (requires a token with access to SophontAI/OpenMidnight).

TensorFlow

TensorFlow is required for GooglePath only:

Modelmodel_typeAccessHuggingFace
GooglePathGOOGLEPATH🔒 gatedgoogle/path-foundation
bash
uv sync --extra tensorflow-gpu   # GPU (CUDA)
uv sync --extra tensorflow-cpu   # CPU only (e.g. Mac)

Neural segmentation (seg_model="neural")

Mussel includes built-in neural tissue segmentation using a DeepLabV3-ResNet50 model (2-class: tissue vs background) trained on histopathology slides as part of the https://github.com/mahmoodlab/HEST project at the Mahmood Lab, Harvard Medical School.

Pre-trained weights are hosted at MahmoodLab/hest-tissue-seg on HuggingFace and are downloaded automatically on first use (no account or token required). The model operates at 1 µm/px; Mussel handles resampling automatically.

Reference: Chan et al., "A Pathology Foundation Model for Cancer Diagnosis and Prognosis Prediction", Nature 2025. [[paper]]([] https://github.com/mahmoodlab/HEST [[HuggingFace model card]]([]

No extra packages are required — it works with any torch-gpu or torch-cpu install:

bash
uv sync --extra torch-gpu

Then pass seg_config.seg_model=neural to tessellate or tessellate_extract_features. A CUDA GPU is recommended for practical performance but CPU inference is supported.

Development Notes

  • Any commands executed using uv run <command...> are automatically executed in the project environment.
  • You can also explicitly activate the virtual environment created by uv by executing
bash
source .venv/bin/activate
  • To install Mussel into an existing environment, activate that environment and use uv pip or conda to install one of Mussel[torch-gpu], Mussel[tensorflow-gpu], Mussel[torch-cpu], or Mussel[tensorflow-cpu] into that environment. (Here, Mussel would be replaced with the path to the Mussel repo you've checked out.)

(The example commands in README-commands.md all expect you to have a activated python environment, so that uv run isn't necessary.)

Modifying package requirements

  • Use uv sync --extra <extra-deps> to install this project and its dependencies into the project's virtual environment, where is one of torch-gpu, tensorflow-gpu, torch-cpu, or tensorflow-cpu
  • Execute uv sync --extra <extra-deps> after making any changes to the requirements.
bash
uv sync --extra torch-gpu

Cloud/Remote slide processing

Mussel can process slides stored on the cloud or remote object stores via the tiffslide and fsspec packages. In order to properly configure mussel for this use case ensure that you:

  • Install additional packages via uv sync --extra remote
  • Have a valid cloud profile set up on your machine (e.g. you have an access key and secret key for your profile stored in your ~/.aws/credentials)
  • Have a valid configuration for fsspec defined in your configuration in ~/.config/fsspec/ directory (e.g. you have a ~/.config/fsspec/s3.json file with the profile set to the profile defined in ~/.aws/credentials and all required client_kwargs are specified)

Run unit tests

Make sure that the dev dependencies are installed. (They should be installed by default.)

bash
uv run pytest tests

Create conda environment

To install this module into an existing Python environment, activate that environment and install mussel and its extra dependencies with the command, (for example)

bash
uv pip install .[torch-gpu]

Command-line interface

Mussel provides a set of CLI tools for tiling whole-slide images, working with tiled slides, and generating feature embeddings with pathology foundation models. The tools currently available from Mussel are,

  • tessellate - tiling and foreground detection of whole-slide images
  • tessellate_extract_features - combined tiling + feature extraction pipeline; supports batch processing from a directory
  • extract_features - extract features from whole slide images (WSI) using a foundation model.
  • create_class_embeddings - generate tissue-type embeddings for classifying tiles
  • annotate - annotate tiles with tissue-types
  • cache_tiles - save tile information in an efficient form for training
  • export_tiles - export tiles as individual .png files using an HDF5 tile-coordinate manifest.
  • filter_features - filter features using a classifier model
  • merge_annotation_features - merge tile features with annotations from a BMP file.
  • linear_probe_benchmark - benchmark a linear probe classifier on features extracted from a slide
  • save_model - download and save a foundation model locally
  • convert - convert whole-slide images to pyramidal TIFF format (single file or batch)

These are described, with examples, in the accompanying document, README-commands.md

License

This code is made available under the GPLv3 License and is available for non-commercial academic purposes. Forked from CLAM, © Mahmood Lab.

Reference

Please cite the original CLAM paper:

Lu, M.Y., Williamson, D.F.K., Chen, T.Y. et al. Data-efficient and weakly supervised computational pathology on whole-slide images. Nat Biomed Eng 5, 555–570 (2021). [***]

@article{lu2021data,
  title={Data-efficient and weakly supervised computational pathology on whole-slide images},
  author={Lu, Ming Y and Williamson, Drew FK and Chen, Tiffany Y and Chen, Richard J and Barbieri, Matteo and Mahmood, Faisal},
  journal={Nature Biomedical Engineering},
  volume={5},
  number={6},
  pages={555--570},
  year={2021},
  publisher={Nature Publishing Group}
}

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 mussel 镜像标签

docker pull docker.xuanyuan.run/mskmind/mussel:<标签>

使用方法:

  • 登录认证方式
  • 免认证方式

DockerHub 原生拉取命令

docker pull mskmind/mussel:<标签>

更多 mussel 镜像推荐

himmussel/odontomaster logo

himmussel/odontomaster

himmussel
暂无描述
1万+ 次下载
3 年前更新
kmussel/postgresql logo

kmussel/postgresql

kmussel
暂无描述
2.3千+ 次下载
10 年前更新

查看更多 mussel 相关镜像

轩辕镜像配置手册

按平台快速找到配置文档

Docker

登录仓库拉取

登录认证 · 私有仓库

专属域名拉取

免登录 · 高速拉取

Linux

Docker 镜像配置

Windows / Mac

Docker Desktop 配置

MacOS OrbStack

OrbStack 容器

Docker Compose

Compose 项目配置

NAS

群晖

Synology 配置

飞牛

fnOS 镜像配置

绿联

绿联 NAS

威联通

QNAP 配置

极空间

极空间 NAS

企业仓库

其他仓库

ghcr · Quay · nvcr

Harbor 镜像源

Proxy Repository 对接

Portainer 镜像源

Registries 配置

Nexus 镜像源

Docker Proxy 缓存

开发工具

Dev Containers

VS Code 开发容器

Podman

Podman 配置指南

Singularity / Apptainer

HPC 科学计算容器

Kubernetes

K8s Containerd

Kubernetes · Containerd

K3s

轻量级集群

面板 / 网络

爱快路由

iKuai 镜像加速

宝塔面板

一键配置镜像源

AI

用 AI 使用轩辕镜像

agents.md · AI 对话 · 提示词

一键安装

一键安装 Docker

Linux Docker 一键安装

需要其他帮助?请查看我们的 常见问题 Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

功能

免费版与专业版区别

功能对比 · 版本选择

支持的镜像仓库

Docker Hub · GCR · GHCR

新手拉取配置

登录 · 专属域名 · 配置

docker search 限制

专属域名 · Hub 搜索

不支持 push

仅支持 pull · 不支持

拉取速度原因

带宽 · 缓存 · 冷热镜像

错误码

402 与流量用尽

402 · 流量包 · 充值

401 认证失败

401 · docker login

manifest unknown

标签错误 · 镜像不存在

410 Gone 排查

410 · Docker 升级

429 限流

免费版 · 请求频率

其他报错

DNS 超时

DNS 解析 · 网络超时

TLS 证书失败

no matching manifest(架构)

账号

失败是否计费

manifest · blob · 计费

申请开发票(企业 / 个人)

企业 · 个人 · 工单

修改登录密码

网站 · 仓库 · 重置

注销账户

工单 · 数据 · 注销

原理

mirrors 不生效

daemon.json · 重启

去掉域名前缀

docker tag · 重命名

指定架构拉取

ARM64 · AMD64 · 多架构

latest 与「最新」

digest · 版本号 · 标签

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
mskmind/mussel
教程轩辕镜像功能与使用教程
价格查看流量套餐与价格
热门查看热门 Docker 镜像推荐
博客Docker 镜像公告与技术博客
官方公众号:源码跳动|官方技术交流群:13763429
官方公众号:源码跳动|官方技术交流群:|问题咨询请:提交工单
商务合作:点击复制邮箱
©2024-2026 源码跳动
商务合作:点击复制邮箱Copyright © 2024-2026 杭州源码跳动科技有限公司. All rights reserved.