Skip to content

Commit

Permalink
Merge pull request #123 from deepghs/dev/tconv
Browse files Browse the repository at this point in the history
dev(narugo): add convert function from embeddings to understandable result of taggers
  • Loading branch information
narugo1992 authored Nov 8, 2024
2 parents 0627839 + 555b541 commit c1bca12
Show file tree
Hide file tree
Showing 10 changed files with 343 additions and 51 deletions.
8 changes: 8 additions & 0 deletions docs/source/api_doc/tagging/wd14.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,11 @@ get_wd14_tags
.. autofunction:: get_wd14_tags



convert_wd14_emb_to_prediction
----------------------------------------------

.. autofunction:: convert_wd14_emb_to_prediction



14 changes: 14 additions & 0 deletions docs/source/api_doc/utils/func.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
imgutils.utils.func
====================================

.. currentmodule:: imgutils.utils.func

.. automodule:: imgutils.utils.func


sigmoid
-------------------------

.. autofunction:: sigmoid


1 change: 1 addition & 0 deletions docs/source/api_doc/utils/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ imgutils.utils
.. toctree::
:maxdepth: 3

func
onnxruntime
2 changes: 1 addition & 1 deletion imgutils/tagging/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
from .mldanbooru import get_mldanbooru_tags
from .order import sort_tags
from .overlap import drop_overlap_tags
from .wd14 import get_wd14_tags
from .wd14 import get_wd14_tags, convert_wd14_emb_to_prediction
Loading

0 comments on commit c1bca12

Please sign in to comment.