Spaces:
Running
request for local version
hey rly love this tagger, can it be run locally? since HF gets too fast into daily quota limit
I would like to use this locally too
Sure it can.
Assuming you have git and python up to 3.12 (haven't tested 3.13) already configured, steps are as follows, assuming a linux/WSL2 environment:
git clone https://huggingface.co/spaces/SmilingWolf/wd-tagger
cd wd-tagger
python -m venv env
source env/bin/activate
pip install -r requirements.txt gradio
python app.py
The instructions above setup a virtual env in the tagger directory and use pip, but should work with uv with minimal changes.
The installed onnxruntime
will use the CPU. Making onnxruntime-gpu
run with PyPI CUDA packages required some extra hoops last time I checked.
Sure it can.
Assuming you have git and python up to 3.12 (haven't tested 3.13) already configured, steps are as follows, assuming a linux/WSL2 environment:
git clone https://huggingface.co/spaces/SmilingWolf/wd-tagger cd wd-tagger python -m venv env source env/bin/activate pip install -r requirements.txt gradio python app.py
The instructions above setup a virtual env in the tagger directory and use pip, but should work with uv with minimal changes.
The installedonnxruntime
will use the CPU. Makingonnxruntime-gpu
run with PyPI CUDA packages required some extra hoops last time I checked.
tyvm i rly love this app since it can let me tag imgs on the go unlike local dataset taggers so i can use some prompt ideas and stuff thx again