Skip to content

Commit 8b13c1e

Browse files
committed
update
1 parent d3d8ef2 commit 8b13c1e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/diffusers/utils/loading_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ def get_submodule_by_name(root_module, module_path: str):
154154
current = root_module
155155
parts = module_path.split(".")
156156
for part in parts:
157-
# If part is integer-like and the current module supports indexing, convert to int
158157
if part.isdigit():
159158
idx = int(part)
160159
current = current[idx] # e.g., for nn.ModuleList or nn.Sequential

0 commit comments

Comments
 (0)