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

Captioning not working #2214

Closed
elen07zz opened this issue Apr 5, 2024 · 0 comments
Closed

Captioning not working #2214

elen07zz opened this issue Apr 5, 2024 · 0 comments

Comments

@elen07zz
Copy link

elen07zz commented Apr 5, 2024

10:20:20-678964 INFO Captioning files in C:/Users/xfarw/Downloads/maryy...
10:20:20-679964 INFO accelerate launch "D:\kohya_ss/sd-scripts/finetune/tag_images_by_wd14_tagger.py" --batch_size=8
--caption_extension=".txt" --caption_separator="," --character_threshold=0.35 --debug
--frequency_tags --general_threshold=0.35 --max_data_loader_n_workers="2" --remove_underscore
--repo_id="SmilingWolf/wd-v1-4-convnextv2-tagger-v2"
--undesired_tags="score_9,score_8_up,score_7_up," "C:/Users/xfarw/Downloads/maryElizabethPony"
2024-04-05 10:20:27.155454: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0.
2024-04-05 10:20:28.104629: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable TF_ENABLE_ONEDNN_OPTS=0.
A matching Triton is not available, some optimizations will not be enabled.
Error caught was: No module named 'triton'
2024-04-05 10:20:31 INFO using existing wd14 tagger model tag_images_by_wd14_tagger.py:111
Traceback (most recent call last):
File "D:\kohya_ss\sd-scripts\finetune\tag_images_by_wd14_tagger.py", line 514, in
main(args)
File "D:\kohya_ss\sd-scripts\finetune\tag_images_by_wd14_tagger.py", line 165, in main
model = load_model(f"{model_location}")
File "D:\kohya_ss\venv\lib\site-packages\keras\src\saving\saving_api.py", line 191, in load_model
raise ValueError(
ValueError: File format not supported: filepath=wd14_tagger_model\SmilingWolf_wd-v1-4-convnextv2-tagger-v2. Keras 3 only supports V3 .keras files and legacy H5 format files (.h5 extension). Note that the legacy SavedModel format is not supported by load_model() in Keras 3. In order to reload a TensorFlow SavedModel as an inference-only layer in Keras 3, use keras.layers.TFSMLayer(wd14_tagger_model\SmilingWolf_wd-v1-4-convnextv2-tagger-v2, call_endpoint='serving_default') (note that your call_endpoint might have a different name).
Traceback (most recent call last):
File "C:\Users\xfarw\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\xfarw\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "D:\kohya_ss\venv\Scripts\accelerate.exe_main
.py", line 7, in
File "D:\kohya_ss\venv\lib\site-packages\accelerate\commands\accelerate_cli.py", line 47, in main
args.func(args)
File "D:\kohya_ss\venv\lib\site-packages\accelerate\commands\launch.py", line 1017, in launch_command
simple_launcher(args)
File "D:\kohya_ss\venv\lib\site-packages\accelerate\commands\launch.py", line 637, in simple_launcher
raise subprocess.CalledProcessError(returncode=process.returncode, cmd=cmd)
subprocess.CalledProcessError: Command '['D:\kohya_ss\venv\Scripts\python.exe', 'D:\kohya_ss/sd-scripts/finetune/tag_images_by_wd14_tagger.py', '--batch_size=8', '--caption_extension=.txt', '--caption_separator=,', '--character_threshold=0.35', '--debug', '--frequency_tags', '--general_threshold=0.35', '--max_data_loader_n_workers=2', '--remove_underscore', '--repo_id=SmilingWolf/wd-v1-4-convnextv2-tagger-v2', '--undesired_tags=score_9,score_8_up,score_7_up,', 'C:/Users/xfarw/Downloads/maryy']' returned non-zero exit status 1.

@elen07zz elen07zz closed this as completed Apr 5, 2024
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

1 participant