Closed Stinger152 closed 8 months ago
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮ │ F:\Kohya_ss-GUI-LoRA-Portable-main\train_network.py:990 in │ │ │ │ 987 │ args = train_util.read_config_from_file(args, parser) │ │ 988 │ │ │ 989 │ trainer = NetworkTrainer() │ │ ❱ 990 │ trainer.train(args) │ │ 991 │ │ │ │ F:\Kohya_ss-GUI-LoRA-Portable-main\train_network.py:325 in train │ │ │ │ 322 │ │ │ ) │ │ 323 │ │ │ trainable_params = network.prepare_optimizer_params(args.text_encoder_lr, ar │ │ 324 │ │ │ │ ❱ 325 │ │ optimizer_name, optimizer_args, optimizer = train_util.get_optimizer(args, train │ │ 326 │ │ │ │ 327 │ │ # dataloaderを準備する │ │ 328 │ │ # DataLoaderのプロセス数:0はメインプロセスになる │ │ │ │ F:\Kohya_ss-GUI-LoRA-Portable-main\library\train_util.py:3410 in get_optimizer │ │ │ │ 3407 │ │ │ 3408 │ elif optimizer_type.endswith("8bit".lower()): │ │ 3409 │ │ try: │ │ ❱ 3410 │ │ │ import bitsandbytes as bnb │ │ 3411 │ │ except ImportError: │ │ 3412 │ │ │ raise ImportError("No bitsandbytes / bitsandbytesがインストールされていない │ │ 3413 │ │ │ │ F:\Kohya_ss-GUI-LoRA-Portable-main\venv\lib\site-packages\bitsandbytes__init.py:6 in │ │ │ │ 3 # This source code is licensed under the MIT license found in the │ │ 4 # LICENSE file in the root directory of this source tree. │ │ 5 │ │ ❱ 6 from .autograd._functions import ( │ │ 7 │ MatmulLtState, │ │ 8 │ bmm_cublas, │ │ 9 │ matmul, │ │ │ │ F:\Kohya_ss-GUI-LoRA-Portable-main\venv\lib\site-packages\bitsandbytes\autograd_functions.py:5 │ │ in │ │ │ │ 2 import warnings │ │ 3 │ │ 4 import torch │ │ ❱ 5 import bitsandbytes.functional as F │ │ 6 │ │ 7 from dataclasses import dataclass │ │ 8 from functools import reduce # Required in Python 3 │ │ │ │ F:\Kohya_ss-GUI-LoRA-Portable-main\venv\lib\site-packages\bitsandbytes\functional.py:13 in │ │ │ │ │ │ 10 from typing import Tuple │ │ 11 from torch import Tensor │ │ 12 │ │ ❱ 13 from .cextension import COMPILED_WITH_CUDA, lib │ │ 14 from functools import reduce # Required in Python 3 │ │ 15 │ │ 16 # math.prod not compatible with python < 3.8 │ │ │ │ F:\Kohya_ss-GUI-LoRA-Portable-main\venv\lib\site-packages\bitsandbytes\cextension.py:41 in │ │ │ │ │ │ 38 │ │ return cls._instance │ │ 39 │ │ 40 │ │ ❱ 41 lib = CUDALibrary_Singleton.get_instance().lib │ │ 42 try: │ │ 43 │ lib.cadam32bit_g32 │ │ 44 │ lib.get_context.restype = ct.c_void_p │ │ │ │ F:\Kohya_ss-GUI-LoRA-Portable-main\venv\lib\site-packages\bitsandbytes\cextension.py:37 in │ │ get_instance │ │ │ │ 34 │ def get_instance(cls): │ │ 35 │ │ if cls._instance is None: │ │ 36 │ │ │ cls._instance = cls.new(cls) │ │ ❱ 37 │ │ │ cls._instance.initialize() │ │ 38 │ │ return cls._instance │ │ 39 │ │ 40 │ │ │ │ F:\Kohya_ss-GUI-LoRA-Portable-main\venv\lib\site-packages\bitsandbytes\cextension.py:31 in │ │ initialize │ │ │ │ 28 │ │ │ self.lib = ct.cdll.LoadLibrary(binary_path) │ │ 29 │ │ else: │ │ 30 │ │ │ print(f"CUDA SETUP: Loading binary {binary_path}...") │ │ ❱ 31 │ │ │ self.lib = ct.cdll.LoadLibrary(binary_path) │ │ 32 │ │ │ 33 │ @classmethod │ │ 34 │ def get_instance(cls): │ │ │ │ F:\Kohya_ss-GUI-LoRA-Portable-main\python\lib\ctypes__init__.py:452 in LoadLibrary │ │ │ │ 449 │ │ return getattr(self, name) │ │ 450 │ │ │ 451 │ def LoadLibrary(self, name): │ │ ❱ 452 │ │ return self._dlltype(name) │ │ 453 │ │ │ 454 │ class_getitem = classmethod(_types.GenericAlias) │ │ 455 │ │ │ │ F:\Kohya_ss-GUI-LoRA-Portable-main\python\lib\ctypes__init.py:364 in init │ │ │ │ 361 │ │ │ else: │ │ 362 │ │ │ │ import nt │ │ 363 │ │ │ │ mode = nt._LOAD_LIBRARY_SEARCH_DEFAULT_DIRS │ │ ❱ 364 │ │ │ │ if '/' in name or '\' in name: │ │ 365 │ │ │ │ │ self._name = nt._getfullpathname(self._name) │ │ 366 │ │ │ │ │ mode |= nt._LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR │ │ 367 │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ TypeError: argument of type 'WindowsPath' is not iterable ╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮ │ F:\Kohya_ss-GUI-LoRA-Portable-main\python\lib\runpy.py:196 in _run_module_as_main │ │ │ │ 193 │ main_globals = sys.modules["main"].dict__ │ │ 194 │ if alter_argv: │ │ 195 │ │ sys.argv[0] = mod_spec.origin │ │ ❱ 196 │ return _run_code(code, main_globals, None, │ │ 197 │ │ │ │ │ "main", mod_spec) │ │ 198 │ │ 199 def run_module(mod_name, init_globals=None, │ │ │ │ F:\Kohya_ss-GUI-LoRA-Portable-main\python\lib\runpy.py:86 in _run_code │ │ │ │ 83 │ │ │ │ │ loader = loader, │ │ 84 │ │ │ │ │ package = pkg_name, │ │ 85 │ │ │ │ │ spec = mod_spec) │ │ ❱ 86 │ exec(code, run_globals) │ │ 87 │ return run_globals │ │ 88 │ │ 89 def _run_module_code(code, init_globals=None, │ │ │ │ in :7 │ │ │ │ 4 from accelerate.commands.accelerate_cli import main │ │ 5 if name == 'main': │ │ 6 │ sys.argv[0] = re.sub(r'(-script.pyw|.exe)?$', '', sys.argv[0]) │ │ ❱ 7 │ sys.exit(main()) │ │ 8 │ │ │ │ F:\Kohya_ss-GUI-LoRA-Portable-main\venv\lib\site-packages\accelerate\commands\accelerate_cli.py: │ │ 45 in main │ │ │ │ 42 │ │ exit(1) │ │ 43 │ │ │ 44 │ # Run │ │ ❱ 45 │ args.func(args) │ │ 46 │ │ 47 │ │ 48 if name == "main__": │ │ │ │ F:\Kohya_ss-GUI-LoRA-Portable-main\venv\lib\site-packages\accelerate\commands\launch.py:918 in │ │ launch_command │ │ │ │ 915 │ elif defaults is not None and defaults.compute_environment == ComputeEnvironment.AMA │ │ 916 │ │ sagemaker_launcher(defaults, args) │ │ 917 │ else: │ │ ❱ 918 │ │ simple_launcher(args) │ │ 919 │ │ 920 │ │ 921 def main(): │ │ │ │ F:\Kohya_ss-GUI-LoRA-Portable-main\venv\lib\site-packages\accelerate\commands\launch.py:580 in │ │ simple_launcher │ │ │ │ 577 │ process.wait() │ │ 578 │ if process.returncode != 0: │ │ 579 │ │ if not args.quiet: │ │ ❱ 580 │ │ │ raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd) │ │ 581 │ │ else: │ │ 582 │ │ │ sys.exit(1) │ │ 583
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮ │ F:\Kohya_ss-GUI-LoRA-Portable-main\train_network.py:990 in │
│ │
│ 987 │ args = train_util.read_config_from_file(args, parser) │
│ 988 │ │
│ 989 │ trainer = NetworkTrainer() │
│ ❱ 990 │ trainer.train(args) │
│ 991 │
│ │
│ F:\Kohya_ss-GUI-LoRA-Portable-main\train_network.py:325 in train │
│ │
│ 322 │ │ │ ) │
│ 323 │ │ │ trainable_params = network.prepare_optimizer_params(args.text_encoder_lr, ar │
│ 324 │ │ │
│ ❱ 325 │ │ optimizer_name, optimizer_args, optimizer = train_util.get_optimizer(args, train │
│ 326 │ │ │
│ 327 │ │ # dataloaderを準備する │
│ 328 │ │ # DataLoaderのプロセス数:0はメインプロセスになる │
│ │
│ F:\Kohya_ss-GUI-LoRA-Portable-main\library\train_util.py:3410 in get_optimizer │
│ │
│ 3407 │ │
│ 3408 │ elif optimizer_type.endswith("8bit".lower()): │
│ 3409 │ │ try: │
│ ❱ 3410 │ │ │ import bitsandbytes as bnb │
│ 3411 │ │ except ImportError: │
│ 3412 │ │ │ raise ImportError("No bitsandbytes / bitsandbytesがインストールされていない │
│ 3413 │
│ │
│ F:\Kohya_ss-GUI-LoRA-Portable-main\venv\lib\site-packages\bitsandbytes__init.py:6 in │
│ │
│ 3 # This source code is licensed under the MIT license found in the │
│ 4 # LICENSE file in the root directory of this source tree. │
│ 5 │
│ ❱ 6 from .autograd._functions import ( │
│ 7 │ MatmulLtState, │
│ 8 │ bmm_cublas, │
│ 9 │ matmul, │
│ │
│ F:\Kohya_ss-GUI-LoRA-Portable-main\venv\lib\site-packages\bitsandbytes\autograd_functions.py:5 │
│ in │
│ │
│ 2 import warnings │
│ 3 │
│ 4 import torch │
│ ❱ 5 import bitsandbytes.functional as F │
│ 6 │
│ 7 from dataclasses import dataclass │
│ 8 from functools import reduce # Required in Python 3 │
│ │
│ F:\Kohya_ss-GUI-LoRA-Portable-main\venv\lib\site-packages\bitsandbytes\functional.py:13 in │
│ │
│ │
│ 10 from typing import Tuple │
│ 11 from torch import Tensor │
│ 12 │
│ ❱ 13 from .cextension import COMPILED_WITH_CUDA, lib │
│ 14 from functools import reduce # Required in Python 3 │
│ 15 │
│ 16 # math.prod not compatible with python < 3.8 │
│ │
│ F:\Kohya_ss-GUI-LoRA-Portable-main\venv\lib\site-packages\bitsandbytes\cextension.py:41 in │
│ │
│ │
│ 38 │ │ return cls._instance │
│ 39 │
│ 40 │
│ ❱ 41 lib = CUDALibrary_Singleton.get_instance().lib │
│ 42 try: │
│ 43 │ lib.cadam32bit_g32 │
│ 44 │ lib.get_context.restype = ct.c_void_p │
│ │
│ F:\Kohya_ss-GUI-LoRA-Portable-main\venv\lib\site-packages\bitsandbytes\cextension.py:37 in │
│ get_instance │
│ │
│ 34 │ def get_instance(cls): │
│ 35 │ │ if cls._instance is None: │
│ 36 │ │ │ cls._instance = cls. new(cls) │
│ ❱ 37 │ │ │ cls._instance.initialize() │
│ 38 │ │ return cls._instance │
│ 39 │
│ 40 │
│ │
│ F:\Kohya_ss-GUI-LoRA-Portable-main\venv\lib\site-packages\bitsandbytes\cextension.py:31 in │
│ initialize │
│ │
│ 28 │ │ │ self.lib = ct.cdll.LoadLibrary(binary_path) │
│ 29 │ │ else: │
│ 30 │ │ │ print(f"CUDA SETUP: Loading binary {binary_path}...") │
│ ❱ 31 │ │ │ self.lib = ct.cdll.LoadLibrary(binary_path) │
│ 32 │ │
│ 33 │ @classmethod │
│ 34 │ def get_instance(cls): │
│ │
│ F:\Kohya_ss-GUI-LoRA-Portable-main\python\lib\ctypes__init__.py:452 in LoadLibrary │
│ │
│ 449 │ │ return getattr(self, name) │
│ 450 │ │
│ 451 │ def LoadLibrary(self, name): │
│ ❱ 452 │ │ return self._dlltype(name) │
│ 453 │ │
│ 454 │ class_getitem = classmethod(_types.GenericAlias) │
│ 455 │
│ │
│ F:\Kohya_ss-GUI-LoRA-Portable-main\python\lib\ctypes__init.py:364 in init │
│ │
│ 361 │ │ │ else: │
│ 362 │ │ │ │ import nt │
│ 363 │ │ │ │ mode = nt._LOAD_LIBRARY_SEARCH_DEFAULT_DIRS │
│ ❱ 364 │ │ │ │ if '/' in name or '\' in name: │
│ 365 │ │ │ │ │ self._name = nt._getfullpathname(self._name) │
│ 366 │ │ │ │ │ mode |= nt._LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR │
│ 367 │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
TypeError: argument of type 'WindowsPath' is not iterable
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ F:\Kohya_ss-GUI-LoRA-Portable-main\python\lib\runpy.py:196 in _run_module_as_main │
│ │
│ 193 │ main_globals = sys.modules["main"].dict__ │
│ 194 │ if alter_argv: │
│ 195 │ │ sys.argv[0] = mod_spec.origin │
│ ❱ 196 │ return _run_code(code, main_globals, None, │
│ 197 │ │ │ │ │ "main", mod_spec) │
│ 198 │
│ 199 def run_module(mod_name, init_globals=None, │
│ │
│ F:\Kohya_ss-GUI-LoRA-Portable-main\python\lib\runpy.py:86 in _run_code │
│ │
│ 83 │ │ │ │ │ loader = loader, │
│ 84 │ │ │ │ │ package = pkg_name, │
│ 85 │ │ │ │ │ spec = mod_spec) │
│ ❱ 86 │ exec(code, run_globals) │
│ 87 │ return run_globals │
│ 88 │
│ 89 def _run_module_code(code, init_globals=None, │
│ │
│ in :7 │
│ │
│ 4 from accelerate.commands.accelerate_cli import main │
│ 5 if name == 'main': │
│ 6 │ sys.argv[0] = re.sub(r'(-script.pyw|.exe)?$', '', sys.argv[0]) │
│ ❱ 7 │ sys.exit(main()) │
│ 8 │
│ │
│ F:\Kohya_ss-GUI-LoRA-Portable-main\venv\lib\site-packages\accelerate\commands\accelerate_cli.py: │
│ 45 in main │
│ │
│ 42 │ │ exit(1) │
│ 43 │ │
│ 44 │ # Run │
│ ❱ 45 │ args.func(args) │
│ 46 │
│ 47 │
│ 48 if name == "main__": │
│ │
│ F:\Kohya_ss-GUI-LoRA-Portable-main\venv\lib\site-packages\accelerate\commands\launch.py:918 in │
│ launch_command │
│ │
│ 915 │ elif defaults is not None and defaults.compute_environment == ComputeEnvironment.AMA │
│ 916 │ │ sagemaker_launcher(defaults, args) │
│ 917 │ else: │
│ ❱ 918 │ │ simple_launcher(args) │
│ 919 │
│ 920 │
│ 921 def main(): │
│ │
│ F:\Kohya_ss-GUI-LoRA-Portable-main\venv\lib\site-packages\accelerate\commands\launch.py:580 in │
│ simple_launcher │
│ │
│ 577 │ process.wait() │
│ 578 │ if process.returncode != 0: │
│ 579 │ │ if not args.quiet: │
│ ❱ 580 │ │ │ raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd) │
│ 581 │ │ else: │
│ 582 │ │ │ sys.exit(1) │
│ 583