Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sayakpaul committed Jan 15, 2025
1 parent d3d8ef2 commit 8b13c1e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/diffusers/utils/loading_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ def get_submodule_by_name(root_module, module_path: str):
current = root_module
parts = module_path.split(".")
for part in parts:
# If part is integer-like and the current module supports indexing, convert to int
if part.isdigit():
idx = int(part)
current = current[idx] # e.g., for nn.ModuleList or nn.Sequential
Expand Down

0 comments on commit 8b13c1e

Please sign in to comment.