|
Algorithm 1 Fine-tuning-free inference process of SLAID |
-
Require:
Frozen AnyDoor model , DDIM sampler, reference image , reference mask , target image , target mask
-
Ensure:
Synthetic elongated fabric defect image
-
1:
Estimate defect geometry from .
-
2:
Build shape-aware reference representations using SSRM.
-
3:
Extract adaptive high-frequency guidance H using AHFG.
-
4:
Compose target control hint from , , and H.
-
5:
Encode reference representations into conditions .
-
6:
Encode target crop into latent and construct anchor mask .
-
7:
Initialize DDIM latent with target-domain anchoring.
-
8:
for to 1 do
-
9:
Predict noise with the frozen AnyDoor model.
-
10:
Apply shape-aware detail guidance from .
-
11:
Perform one DDIM denoising step to obtain .
-
12:
Anchor non-edited regions in latent space using TLA.
-
13:
end for
-
14:
Decode and blend the generated patch back into .
-
15:
return .
|