MCPcopy Index your code
hub / github.com/huggingface/diffusers / renew_temp_conv_paths

Function renew_temp_conv_paths

scripts/convert_i2vgen_to_diffusers.py:101–109  ·  view source on GitHub ↗

Updates paths inside resnets to the new naming scheme (local renaming)

(old_list, n_shave_prefix_segments=0)

Source from the content-addressed store, hash-verified

99
100
101def renew_temp_conv_paths(old_list, n_shave_prefix_segments=0):
102 """
103 Updates paths inside resnets to the new naming scheme (local renaming)
104 """
105 mapping = []
106 for old_item in old_list:
107 mapping.append({"old": old_item, "new": old_item})
108
109 return mapping
110
111
112def renew_resnet_paths(old_list, n_shave_prefix_segments=0):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…