MCPcopy Create free account
hub / github.com/Francis-Rings/FlashPortrait / image_preprocess

Function image_preprocess

wan/models/pdf.py:16–18  ·  view source on GitHub ↗
(np_bgr, size, dtype=torch.float32)

Source from the content-addressed store, hash-verified

14
15
16def image_preprocess(np_bgr, size, dtype=torch.float32):
17 img_np = cv2.resize(np_bgr, size)
18 return np_bgr_to_tensor(img_np, dtype)
19
20
21def umeyama(src, dst, estimate_scale):

Calls 1

np_bgr_to_tensorFunction · 0.85

Tested by

no test coverage detected