File size: 1,491 Bytes
0c6b8b5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
[build-system]
requires = ["setuptools>=77"]
build-backend = "setuptools.build_meta"

[project]
name = "clipdinosam"
dynamic = ["version"]
description = "BruNet: prompt-free bruise segmentation transferred from skin-lesion masks. Model code, weight loader and trainer."
requires-python = ">=3.10"
license = "Apache-2.0"
license-files = ["LICENSE"]
keywords = ["bruise segmentation", "medical imaging", "domain transfer"]
# Everything needed to load and run the released weights (DINOv3 variant).
dependencies = [
    "torch>=2.1",
    "torchvision",
    "transformers>=4.56",   # first release with DINOv3ViTModel
    "segment-anything>=1.0",
    "safetensors",
    "huggingface_hub",
    "pyyaml",
    "numpy",
    "opencv-python-headless",
]

[project.optional-dependencies]
# BruNet-LingBot: the official LingBot-Vision code, pinned to the commit used for the paper.
lingbot = [
    "lingbot-vision @ git+https://github.com/Robbyant/lingbot-vision.git@151e46321bae4399f8568829f190c7bdec216b49",
]
# Training, evaluation utilities and the optional CLIP / DINOv2 / Swin components.
train = [
    "timm",
    "open-clip-torch",
    "pandas",
    "tqdm",
    "matplotlib",
    "scikit-learn",
    "pillow",
    "hydra-core",
    "omegaconf",
]

[project.urls]
Weights = "https://huggingface.co/chandlerWang/BruNet"
Paper = "https://arxiv.org/abs/2609.11463"

[tool.setuptools.dynamic]
version = { attr = "clipdinosam.__version__" }

[tool.setuptools.packages.find]
include = ["clipdinosam*"]