MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / copy

Method copy

lightx2v/utils/lockable_dict.py:77–82  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

75 self._locked = prev
76
77 def copy(self) -> "LockableDict":
78 new = LockableDict(auto_wrap=self._auto_wrap)
79 for k, v in self.items():
80 dict.__setitem__(new, k, v)
81 new._locked = self._locked
82 return new
83
84 # ========== In-place modification interception ==========
85 def __setitem__(self, key, value) -> None:

Callers 15

merge_lora_weightsFunction · 0.80
mainFunction · 0.80
__call__Method · 0.80
__call__Method · 0.80
get_face_bboxesFunction · 0.80
split_pose2d_kps_to_aaFunction · 0.80
draw_MFunction · 0.80
draw_noseFunction · 0.80
draw_aaposeFunction · 0.80
draw_aapose_newFunction · 0.80

Calls 3

LockableDictClass · 0.85
itemsMethod · 0.45
__setitem__Method · 0.45

Tested by

no test coverage detected