Official model: https://ai.gitcode.com/hf_mirrors/infinity1096/UFM-Refine, fixed revision 89cc70107b483170ebfc908630e6f40ca1b77315.
Use fresh sibling directories for an independent installation:
git clone https://gitcode.com/hf_mirrors/infinity1096/UFM-Refine.git model
git -C model checkout --detach 89cc70107b483170ebfc908630e6f40ca1b77315
git -C model lfs pull
git clone --recurse-submodules https://github.com/infinity1096/UFM.git third_party/UFM
git -C third_party/UFM checkout --detach ff78d6c3db807c91578acccb58ee67d4394d5e5f
git -C third_party/UFM submodule update --init --recursive
git clone https://github.com/facebookresearch/dinov2.git third_party/dinov2
git -C third_party/dinov2 checkout --detach 7764ea0f912e53c92e82eb78a2a1631e92725fc8
git clone https://gitcode.com/2301_78565107/UFM-Refine.git repo
cd repo
python3 -m pip install --no-deps --target ../pydeps -r requirements.txtsource /usr/local/Ascend/cann-9.0/set_env.sh
export PYTHONNOUSERSITE=1
export PYTHONPATH="$(pwd)/../pydeps:$(pwd)/../third_party/UFM${PYTHONPATH:+:$PYTHONPATH}"
python3 inference.py --model_path ../model --dinov2_path ../third_party/dinov2 \
--device npu:0 --output_json result.jsonThe entry redirects the upstream torch-hub architecture request to the local DINOv2 source with pretrained=False; it never downloads at runtime. It loads the supplied checkpoint strictly and requires the complete six-field refinement output.
The NPU path is local-only and fail-closed. Model, both inputs, and all output tensors must remain on the selected NPU. The entry uses an explicit float32 scaled-dot-product-attention decomposition and exact-erf GELU for the transformer stack while keeping HF32 disabled.
The run uses eight 56×56 paired tensors. It records all native flow, regression, residual, log-softmax and feature-map values along with device, shape, finite, count and exit status.
Server baseline: Python 3.11, PyTorch 2.10.0+cpu, torch_npu 2.10.0, CANN 9.0.0 and Ascend 910B3. The checkpoint card states CC BY-NC 4.0 and the UFM code is BSD-3-Clause; users must review both. Synthetic inputs validate execution, not optical-flow benchmark quality.
本仓为 2301_76761127 队伍交付件(与备份账号合并提交)。