fireicewolf / wd-llm-caption-cli

A Python base cli tool for caption images with WD series, Joy-caption-pre-alpha,meta Llama 3.2 Vision Instruct and Qwen2 VL Instruct models.
Apache License 2.0
25 stars 6 forks source link

Invalid patch models paths #5

Closed specblades closed 1 month ago

specblades commented 1 month ago

How to fix this error? Got it with command python caption.py D:\DATASETS\equals --model_site modelscope --download_method URL --wd_force_use_cpu --wd_remove_underscore --llm_patch. All the files are downloaded and in place.

2024-10-06 16:07:34,573 - inference.py[line:115] - ERROR: Invalid models paths: (WindowsPath('models/Llama-3.2-11B-Vision-Instruct/llm'), WindowsPath('models/Llama-3.2-11B-Vision-Instruct/patch'))!!!
2024-10-06 16:07:34,573 - inference.py[line:115] - ERROR: None
Traceback (most recent call last):
  File "S:\wd-llm-caption-cli\caption.py", line 649, in <module>
    my_caption.load_models(get_args)
  File "S:\wd-llm-caption-cli\caption.py", line 181, in load_models
    self.my_llm = LLM(
  File "S:\wd-llm-caption-cli\utils\inference.py", line 116, in __init__
    raise ValueError
ValueError
fireicewolf commented 1 month ago

Fixed with commit 9038222