Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WD-1.4 Caption/Tagging returns error "No module named 'library'" #1739

Closed
yo1nkers opened this issue Dec 6, 2023 · 0 comments
Closed

WD-1.4 Caption/Tagging returns error "No module named 'library'" #1739

yo1nkers opened this issue Dec 6, 2023 · 0 comments

Comments

@yo1nkers
Copy link

yo1nkers commented Dec 6, 2023

After much research around this repository for people matching my issue, it appears there's only been one other person and they fixed it with the method which removes all py packages (here), and I'm not looking to do this.

I have already removed and installed venv to be met with the same issue here.

Following is the error recieved

Traceback (most recent call last):
  File "X:\OtherAi\kohya_ss\finetune\tag_images_by_wd14_tagger.py", line 13, in <module>
    import library.train_util as train_util
ModuleNotFoundError: No module named 'library'
Traceback (most recent call last):
  File "C:\Program Files\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Program Files\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "X:\OtherAi\kohya_ss\venv\Scripts\accelerate.exe\__main__.py", line 7, in <module>
  File "X:\OtherAi\kohya_ss\venv\lib\site-packages\accelerate\commands\accelerate_cli.py", line 47, in main
    args.func(args)
  File "X:\OtherAi\kohya_ss\venv\lib\site-packages\accelerate\commands\launch.py", line 986, in launch_command
    simple_launcher(args)
  File "X:\OtherAi\kohya_ss\venv\lib\site-packages\accelerate\commands\launch.py", line 628, in simple_launcher
    raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)
subprocess.CalledProcessError: Command '['X:\\OtherAi\\kohya_ss\\venv\\Scripts\\python.exe', './finetune/tag_images_by_wd14_tagger.py', '--batch_size=8', '--general_threshold=0.35', '--character_threshold=0.35', '--caption_extension=.txt', '--model=SmilingWolf/wd-v1-4-convnextv2-tagger-v2', '--max_data_loader_n_workers=2', '--debug', '--undesired_tags=1girl', 'U:\\. Lora-Lyco Training pics\\Me\\img\\40_Me person']' returned non-zero exit status 1.
@yo1nkers yo1nkers changed the title WD-14 Caption/Tagging returns error "No module named 'library'" WD-1.4 Caption/Tagging returns error "No module named 'library'" Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants