Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ numpy==1.26.4
# WD Tagger
huggingface-hub==0.26.2
onnxruntime==1.19.2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you considered swapping this to onnxruntime-gpu? Maybe for platform_system == "Linux" only?

onnxruntime-directml==1.19.2; platform_system == "Windows"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you have onnxruntime and onnxruntime-directml installed at the same time? I've found that onnxruntime and onnxruntime-gpu seem to be mutually exclusive; the CPU version took precedent over the GPU version when performing Onnx tasks.


# FlashAttention (Florence-2, Phi-3-Vision)
flash-attn==2.6.3; platform_system == "Linux"
Expand Down
2 changes: 1 addition & 1 deletion taggui/auto_captioning/models/wd_tagger.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self, model_id: str):
if not tags_path.is_file():
tags_path = huggingface_hub.hf_hub_download(
model_id, filename='selected_tags.csv')
self.inference_session = InferenceSession(model_path)
self.inference_session = InferenceSession(model_path, providers=['DmlExecutionProvider', 'CUDAExecutionProvider', 'CPUExecutionProvider'])
self.tags = []
self.rating_tags_indices = []
self.general_tags_indices = []
Expand Down