Download code/work/graphvla_stack_v1_20261104/contracts.py from yuuu94/GraphVLA-StackBowls-V7-4k: direct link, hf CLI and curl.
- Browser
- Download file 753 Bytes
-
https://huggingface.co/yuuu94/GraphVLA-StackBowls-V7-4k/resolve/main/code/work/graphvla_stack_v1_20261104/contracts.py
- Command line
-
hf download hf://yuuu94/GraphVLA-StackBowls-V7-4k/code/work/graphvla_stack_v1_20261104/contracts.py
-
curl -L -o contracts.py https://huggingface.co/yuuu94/GraphVLA-StackBowls-V7-4k/resolve/main/code/work/graphvla_stack_v1_20261104/contracts.py
753 Bytes
| import hashlib | |
| from pathlib import Path | |
| from work.graphvla_tcp_20261020.contracts import array_digest, validate_masks | |
| from work.graphvla_tcp_20261020.contracts import check_graph_config as check_base | |
| from .visual_patch import MODE | |
| def pooling_contract(): | |
| root=Path(__file__).parent | |
| return hashlib.sha256(b''.join((root/n).read_bytes() for n in ('visual_patch.py','masks.py','framework.py','geometry.py','runtime.py'))).hexdigest() | |
| def check_graph_config(config,recipe): | |
| check_base(config,recipe) | |
| if config.get('visual_pooling')!=MODE or config.get('visual_pooling_contract')!=pooling_contract(): | |
| raise ValueError('Requires matching V7 coverage-weighted config and source contract; V5 center/V6 uniform checkpoints are not V7') | |