request for local version

#1
by MakotoYuki - opened

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 installed onnxruntime will use the CPU. Making onnxruntime-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

i need help, I enter the token, it correctly shows my profile, but it still keeps giving me this error

Screenshot_1.png

Sign up or log in to comment