Skip to content

Commit 5fcb3d9

Browse files
committed
fix missing files variable
1 parent 4d7289b commit 5fcb3d9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ldm/invoke/config/invokeai_configure.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
from shutil import get_terminal_size
2222

2323
import npyscreen
24-
import torch
2524
import transformers
2625
from diffusers import AutoencoderKL
2726
from huggingface_hub import HfFolder
@@ -672,7 +671,7 @@ def initialize_rootdir(root: str, yes_to_all: bool = False):
672671
# Fix up directory permissions so that they are writable
673672
# This can happen when running under Nix environment which
674673
# makes the runtime directory template immutable.
675-
for root,dirs,_ in os.walk(os.path.join(root,name)):
674+
for root,dirs,files in os.walk(os.path.join(root,name)):
676675
for d in dirs:
677676
Path(root,d).chmod(0o775)
678677
for f in files:

0 commit comments

Comments
 (0)