MCPcopy Create free account
hub / github.com/Francis-Rings/StableAnimator / transfer

Function transfer

DWPose/dwpose_utils/util.py:61–65  ·  view source on GitHub ↗
(model, model_weights)

Source from the content-addressed store, hash-verified

59
60
61def transfer(model, model_weights):
62 transfered_model_weights = {}
63 for weights_name in model.state_dict().keys():
64 transfered_model_weights[weights_name] = model_weights['.'.join(weights_name.split('.')[1:])]
65 return transfered_model_weights
66
67
68def draw_bodypose(canvas, candidate, subset):

Callers

nothing calls this directly

Calls 1

splitMethod · 0.80

Tested by

no test coverage detected