{"id":16296237,"url":"https://github.com/jannchie/wdtagger","last_synced_at":"2025-04-09T13:39:20.057Z","repository":{"id":243717009,"uuid":"811415733","full_name":"Jannchie/wdtagger","owner":"Jannchie","description":"A simple and easy-to-use wrapper for the wd-tagger","archived":false,"fork":false,"pushed_at":"2025-02-24T13:26:26.000Z","size":1180,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T19:42:41.525Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jannchie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-06T14:55:18.000Z","updated_at":"2025-02-24T13:26:24.000Z","dependencies_parsed_at":"2024-08-24T11:27:52.366Z","dependency_job_id":"babdc0cf-3adc-4f92-bd66-69948670d5eb","html_url":"https://github.com/Jannchie/wdtagger","commit_stats":null,"previous_names":["jannchie/wdtagger"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jannchie%2Fwdtagger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jannchie%2Fwdtagger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jannchie%2Fwdtagger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jannchie%2Fwdtagger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jannchie","download_url":"https://codeload.github.com/Jannchie/wdtagger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248050669,"owners_count":21039431,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T20:21:48.314Z","updated_at":"2025-04-09T13:39:20.023Z","avatar_url":"https://github.com/Jannchie.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wdtagger\n\n[![CodeTime Badge](https://img.shields.io/endpoint?style=social\u0026color=222\u0026url=https%3A%2F%2Fapi.codetime.dev%2Fshield%3Fid%3D2%26project%3Dwdtagger%26in=0)](https://codetime.dev)\n\n`wdtagger` is a simple and easy-to-use wrapper for the tagger model created by [SmilingWolf](https://github.com/SmilingWolf) which is specifically designed for tagging anime illustrations.\n\n## Installation\n\nYou can install `wdtagger` via pip:\n\n```bash\npip install wdtagger\n```\n\n## Usage\n\nBelow is a basic example of how to use wdtagger in your project:\n\n```python\nfrom PIL import Image\nfrom wdtagger import Tagger\n\ntagger = Tagger() # You can provide the model_repo, the default is \"SmilingWolf/wd-swinv2-tagger-v3\"\nimage = Image.open(\"image.jpg\")\nresult = tagger.tag(image)\nprint(result)\n```\n\nYou can input a image list to the tagger to use batch processing, it is faster than single image processing (test on RTX 3090):\n\n```log\n---------------------------------------------------------------------------------- benchmark 'tagger': 5 tests -----------------------------------------------------------------------------------\nName (time in ms)                  Min                 Max                Mean             StdDev              Median                IQR            Outliers     OPS            Rounds  Iterations\n--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\ntest_tagger_benchmark[16]     540.8711 (1.0)      598.5156 (1.04)     558.2777 (1.0)      22.2954 (4.10)     549.9650 (1.0)      21.7318 (2.51)          2;2  1.7912 (1.0)          10           1\ntest_tagger_benchmark[8]      558.9445 (1.03)     576.7220 (1.0)      567.9235 (1.02)      5.4381 (1.0)      568.7336 (1.03)      8.6569 (1.0)           2;0  1.7608 (0.98)         10           1\ntest_tagger_benchmark[4]      590.6479 (1.09)     626.7126 (1.09)     597.9712 (1.07)     11.0124 (2.03)     594.5067 (1.08)     10.7656 (1.24)          1;1  1.6723 (0.93)         10           1\ntest_tagger_benchmark[2]      622.8689 (1.15)     643.5122 (1.12)     630.1096 (1.13)      7.2365 (1.33)     627.1716 (1.14)      9.5823 (1.11)          3;0  1.5870 (0.89)         10           1\ntest_tagger_benchmark[1]      700.6986 (1.30)     816.3089 (1.42)     721.7431 (1.29)     33.9031 (6.23)     712.6850 (1.30)     12.8756 (1.49)          1;1  1.3855 (0.77)         10           1\n--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjannchie%2Fwdtagger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjannchie%2Fwdtagger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjannchie%2Fwdtagger/lists"}