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

Function find_replacement

infer.py:342–347  ·  view source on GitHub ↗
(a)

Source from the content-addressed store, hash-verified

340 pipeline = merge_lora(pipeline, lora_path, lora_weight, device=device)
341
342def find_replacement(a):
343 while a > 0:
344 if (a - 1) % 4 == 0:
345 return a
346 a -= 1
347 return 0
348
349def get_emo_feature(video_path, face_aligner, pd_fpg_motion, device=torch.device("cuda")):
350 pd_fpg_motion = pd_fpg_motion.to(device)

Callers 1

get_emo_featureFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected