凤
weixin_44093752/controlnet-inpaint-endpoint-ascend-npu
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

controlnet-inpaint-endpoint Ascend NPU smoke adaptation

This delivery adapts the official OrderAndChaos/controlnet-inpaint-endpoint ControlNet inpaint checkpoint for a real Ascend NPU compatibility smoke. The official source pages are:

  • https://huggingface.co/OrderAndChaos/controlnet-inpaint-endpoint
  • https://github.com/lllyasviel/ControlNet

The Hugging Face revision was checked live on 2026-08-23: f687f36ddb6403221e37e06a5ddc0ce66f89a906. The fp16 safetensors file is 722,598,642 bytes with SHA-256 bd6fa262ac0820cb24572a5f133249f867a5264307d693ecff23b1eaa4cccf7e.

ControlNetModel was strictly loaded on real Ascend910 npu:0. A fixed half-precision smoke input with sample shape [1,4,64,64], conditioning shape [1,3,512,512], and encoder hidden shape [1,77,768] produced finite down block and mid block residuals. The measured NPU forward time was 0.0130059784 seconds and the model has 361,279,120 parameters.

This is an execution compatibility gate only. It does not claim the full Stable Diffusion inpainting pipeline or image quality precision. Download the official weight into the model directory before running:

ln -s diffusion_pytorch_model.fp16.safetensors diffusion_pytorch_model.safetensors
python inference.py --model-dir /tmp/model-agent/controlnet --device npu --output validation/npu-runtime.json

The checkpoint is excluded from Git. The verified source revision, size, and hash are recorded in model-lock.json.

Evidence

Agent workflow

NPU device call

Model result