MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / hash_state_dict_keys

Function hash_state_dict_keys

diffsynth/models/utils.py:179–182  ·  view source on GitHub ↗
(state_dict, with_shape=True)

Source from the content-addressed store, hash-verified

177
178
179def hash_state_dict_keys(state_dict, with_shape=True):
180 keys_str = convert_state_dict_keys_to_single_str(state_dict, with_shape=with_shape)
181 keys_str = keys_str.encode(encoding="UTF-8")
182 return hashlib.md5(keys_str).hexdigest()

Callers 8

matchMethod · 0.85
loadMethod · 0.85
matchMethod · 0.85
loadMethod · 0.85
from_civitaiMethod · 0.85
from_diffusersMethod · 0.85
from_diffusersMethod · 0.85
from_civitaiMethod · 0.85

Calls 2

encodeMethod · 0.45

Tested by

no test coverage detected