Update README.md
Browse files
README.md
CHANGED
|
@@ -1,44 +1,216 @@
|
|
| 1 |
---
|
| 2 |
-
license:
|
| 3 |
library_name: pytorch
|
|
|
|
|
|
|
| 4 |
tags:
|
| 5 |
- digital-twins
|
| 6 |
- scene-graphs
|
|
|
|
| 7 |
- robotics
|
| 8 |
-
-
|
| 9 |
-
- graph-
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
# CF-SupportNet
|
| 13 |
|
| 14 |
-
CF-SupportNet is the learned edge-scoring component of **MedPhyGraph**
|
| 15 |
-
(TwinWorld: Visual Intelligence for Built Environment Digital Twins, ECCV 2026 Workshop).
|
| 16 |
-
framework by itself: MedPhyGraph also applies deterministic State
|
| 17 |
-
Consistency and Union-Based Transition-Aware Consistency (non-learned,
|
| 18 |
-
code-only) on top of these scores to produce the final maintained
|
| 19 |
-
support graph. See the paper and code at
|
| 20 |
-
https://medphygraph.github.io/ for the complete pipeline.
|
| 21 |
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
## Architecture
|
| 31 |
|
| 32 |
-
|
| 33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
## Citation
|
| 36 |
|
|
|
|
|
|
|
|
|
|
| 37 |
```bibtex
|
| 38 |
@inproceedings{gholizadeh2026medphygraph,
|
| 39 |
-
title={MedPhyGraph: Counterfactual Support-Graph Maintenance for Dynamic Built-Environment Digital Twins},
|
| 40 |
-
author={Gholizadeh HamlAbadi, Kamran and Vahdati, Monica and El Saddik, Abdulmotaleb},
|
| 41 |
-
booktitle={TwinWorld: Visual Intelligence for Built Environment Digital Twins, ECCV 2026 Workshop},
|
| 42 |
-
year={2026}
|
| 43 |
}
|
| 44 |
-
```
|
|
|
|
| 1 |
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
library_name: pytorch
|
| 4 |
+
datasets:
|
| 5 |
+
- MedPhyGraph/support-graph-data
|
| 6 |
tags:
|
| 7 |
- digital-twins
|
| 8 |
- scene-graphs
|
| 9 |
+
- dynamic-scene-graphs
|
| 10 |
- robotics
|
| 11 |
+
- support-relations
|
| 12 |
+
- graph-maintenance
|
| 13 |
+
- counterfactual-evidence
|
| 14 |
+
- pytorch
|
| 15 |
---
|
| 16 |
|
| 17 |
# CF-SupportNet
|
| 18 |
|
| 19 |
+
CF-SupportNet is the learned edge-scoring component of **MedPhyGraph**
|
| 20 |
+
(*TwinWorld: Visual Intelligence for Built Environment Digital Twins, ECCV 2026 Workshop*).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
+
It is **not** the full MedPhyGraph framework by itself. MedPhyGraph also applies
|
| 23 |
+
deterministic **State Consistency** and **Union-Based Transition-Aware
|
| 24 |
+
Consistency** on top of CF-SupportNet scores to maintain support relations
|
| 25 |
+
across adjacent digital-twin states.
|
| 26 |
|
| 27 |
+
| Resource | Link |
|
| 28 |
+
|---|---|
|
| 29 |
+
| Model | **You are here** |
|
| 30 |
+
| Dataset | [MedPhyGraph/support-graph-data](https://huggingface.co/datasets/MedPhyGraph/support-graph-data) |
|
| 31 |
+
| Project | [medphygraph.github.io](https://medphygraph.github.io/) |
|
| 32 |
+
|
| 33 |
+
## Overview
|
| 34 |
+
|
| 35 |
+
CF-SupportNet scores candidate `SupportedBy` edges from structured scene
|
| 36 |
+
information.
|
| 37 |
+
|
| 38 |
+
The scorer combines:
|
| 39 |
+
|
| 40 |
+
- static geometric features
|
| 41 |
+
- candidate support-edge features
|
| 42 |
+
- analytic host-removal counterfactual evidence
|
| 43 |
+
|
| 44 |
+
The counterfactual signal is computed using an **analytic AABB-based geometric
|
| 45 |
+
proxy**. It should not be interpreted as a full rigid-body physics simulation.
|
| 46 |
+
|
| 47 |
+
CF-SupportNet operates downstream of scene perception. Rendered RGB images are
|
| 48 |
+
**not** model inputs and are **not** used as label sources.
|
| 49 |
|
| 50 |
## Architecture
|
| 51 |
|
| 52 |
+
The released CF-SupportNet checkpoints use the paper-frozen configuration:
|
| 53 |
+
|
| 54 |
+
| Property | Value |
|
| 55 |
+
|---|---|
|
| 56 |
+
| Framework | PyTorch |
|
| 57 |
+
| Architecture | GRU + MLP |
|
| 58 |
+
| Hidden size | 64 |
|
| 59 |
+
| Trainable parameters | 25,409 |
|
| 60 |
+
| Counterfactual weight `rho` | 1.0 |
|
| 61 |
+
|
| 62 |
+
## Paper-frozen checkpoints
|
| 63 |
+
|
| 64 |
+
This repository contains five released checkpoints:
|
| 65 |
+
|
| 66 |
+
| Checkpoint | Role |
|
| 67 |
+
|---|---|
|
| 68 |
+
| `health_dyphygraph_r1.0_seed0.pt` | Primary paper checkpoint |
|
| 69 |
+
| `health_dyphygraph_r1.0_seed1.pt` | Multi-seed checkpoint |
|
| 70 |
+
| `health_dyphygraph_r1.0_seed2.pt` | Multi-seed checkpoint |
|
| 71 |
+
| `health_dyphygraph_r1.0_seed3.pt` | Multi-seed checkpoint |
|
| 72 |
+
| `health_dyphygraph_r1.0_seed4.pt` | Multi-seed checkpoint |
|
| 73 |
+
|
| 74 |
+
**Seed 0** is the primary paper checkpoint.
|
| 75 |
+
**Seeds 1–4** are provided for the paper's multi-seed evaluation.
|
| 76 |
+
|
| 77 |
+
The checkpoint files are paper-frozen artifacts and should not be modified when
|
| 78 |
+
reproducing the released results.
|
| 79 |
+
|
| 80 |
+
## Download
|
| 81 |
+
|
| 82 |
+
Download the complete model release with the Hugging Face CLI:
|
| 83 |
+
|
| 84 |
+
```bash
|
| 85 |
+
hf download MedPhyGraph/CF-SupportNet \
|
| 86 |
+
--local-dir ./CF-SupportNet
|
| 87 |
+
```
|
| 88 |
+
|
| 89 |
+
Or with Python:
|
| 90 |
+
|
| 91 |
+
```python
|
| 92 |
+
from huggingface_hub import snapshot_download
|
| 93 |
+
|
| 94 |
+
snapshot_download(
|
| 95 |
+
repo_id="MedPhyGraph/CF-SupportNet",
|
| 96 |
+
local_dir="./CF-SupportNet",
|
| 97 |
+
)
|
| 98 |
+
```
|
| 99 |
+
|
| 100 |
+
To download only the primary checkpoint:
|
| 101 |
+
|
| 102 |
+
```python
|
| 103 |
+
from huggingface_hub import hf_hub_download
|
| 104 |
+
|
| 105 |
+
checkpoint_path = hf_hub_download(
|
| 106 |
+
repo_id="MedPhyGraph/CF-SupportNet",
|
| 107 |
+
filename="health_dyphygraph_r1.0_seed0.pt",
|
| 108 |
+
)
|
| 109 |
+
|
| 110 |
+
print(checkpoint_path)
|
| 111 |
+
```
|
| 112 |
+
|
| 113 |
+
## Relationship to MedPhyGraph
|
| 114 |
+
|
| 115 |
+
CF-SupportNet provides learned scores for candidate support edges.
|
| 116 |
+
|
| 117 |
+
MedPhyGraph then applies deterministic graph-maintenance components, including:
|
| 118 |
+
|
| 119 |
+
1. **State Consistency**
|
| 120 |
+
2. **Union-Based Transition-Aware Consistency**
|
| 121 |
+
|
| 122 |
+
These components are non-learned inference operations and are not encoded as
|
| 123 |
+
separate model checkpoints.
|
| 124 |
+
|
| 125 |
+
In other words:
|
| 126 |
+
|
| 127 |
+
```text
|
| 128 |
+
structured scene state
|
| 129 |
+
│
|
| 130 |
+
â–¼
|
| 131 |
+
candidate support edges
|
| 132 |
+
│
|
| 133 |
+
â–¼
|
| 134 |
+
CF-SupportNet
|
| 135 |
+
(learned edge scores)
|
| 136 |
+
│
|
| 137 |
+
â–¼
|
| 138 |
+
State Consistency
|
| 139 |
+
│
|
| 140 |
+
â–¼
|
| 141 |
+
Union-Based Transition-Aware Consistency
|
| 142 |
+
│
|
| 143 |
+
â–¼
|
| 144 |
+
maintained SupportedBy graph
|
| 145 |
+
```
|
| 146 |
+
|
| 147 |
+
## Dataset
|
| 148 |
+
|
| 149 |
+
The corresponding public procedural training and evaluation data are available
|
| 150 |
+
at:
|
| 151 |
+
|
| 152 |
+
[**MedPhyGraph/support-graph-data**](https://huggingface.co/datasets/MedPhyGraph/support-graph-data)
|
| 153 |
+
|
| 154 |
+
The dataset release contains:
|
| 155 |
+
|
| 156 |
+
- the frozen candidate-edge dataset and split
|
| 157 |
+
- structured Procedural scene states
|
| 158 |
+
- the 136-case Procedural subset of the expanded transfer evaluation
|
| 159 |
+
|
| 160 |
+
NVIDIA Isaac for Healthcare assets and Isaac-derived structured scene states
|
| 161 |
+
are not redistributed in that repository.
|
| 162 |
+
|
| 163 |
+
## Scope
|
| 164 |
+
|
| 165 |
+
CF-SupportNet is intended to reproduce and study the learned scoring component
|
| 166 |
+
used in MedPhyGraph.
|
| 167 |
+
|
| 168 |
+
The model does not directly provide:
|
| 169 |
+
|
| 170 |
+
- scene perception
|
| 171 |
+
- RGB/image understanding
|
| 172 |
+
- object detection
|
| 173 |
+
- complete physical simulation
|
| 174 |
+
- the deterministic MedPhyGraph consistency modules
|
| 175 |
+
- NVIDIA Isaac for Healthcare assets or scenes
|
| 176 |
+
|
| 177 |
+
The complete MedPhyGraph method combines the learned scorer with deterministic
|
| 178 |
+
graph-maintenance logic.
|
| 179 |
+
|
| 180 |
+
## Integrity
|
| 181 |
+
|
| 182 |
+
The repository includes:
|
| 183 |
+
|
| 184 |
+
- **`checkpoint_manifest.json`** — metadata for the released checkpoints
|
| 185 |
+
- **`SHA256SUMS.txt`** — SHA256 hashes for checkpoint integrity verification
|
| 186 |
+
|
| 187 |
+
The primary seed-0 checkpoint has SHA256:
|
| 188 |
+
|
| 189 |
+
```text
|
| 190 |
+
e0b34529745399ecc5da5341ed7a162173611e12c8bd50dec121b0c575c5b789
|
| 191 |
+
```
|
| 192 |
+
|
| 193 |
+
## License
|
| 194 |
+
|
| 195 |
+
The released CF-SupportNet model weights are provided under the
|
| 196 |
+
**Creative Commons Attribution 4.0 International License (CC BY 4.0)**.
|
| 197 |
+
|
| 198 |
+
Please provide appropriate attribution when using or redistributing these
|
| 199 |
+
weights.
|
| 200 |
+
|
| 201 |
+
The license for the MedPhyGraph source code is separate from the model-weight
|
| 202 |
+
license.
|
| 203 |
|
| 204 |
## Citation
|
| 205 |
|
| 206 |
+
If you use CF-SupportNet, MedPhyGraph, or these released checkpoints, please
|
| 207 |
+
cite:
|
| 208 |
+
|
| 209 |
```bibtex
|
| 210 |
@inproceedings{gholizadeh2026medphygraph,
|
| 211 |
+
title = {MedPhyGraph: Counterfactual Support-Graph Maintenance for Dynamic Built-Environment Digital Twins},
|
| 212 |
+
author = {Gholizadeh HamlAbadi, Kamran and Vahdati, Monica and El Saddik, Abdulmotaleb},
|
| 213 |
+
booktitle = {TwinWorld: Visual Intelligence for Built Environment Digital Twins, ECCV 2026 Workshop},
|
| 214 |
+
year = {2026}
|
| 215 |
}
|
| 216 |
+
```
|