Unverified Commit fa6b5e67 authored by narugo1992's avatar narugo1992 Committed by GitHub
Browse files

Merge pull request #146 from deepghs/dev/clip

dev(narugo): add CLIP generic support
parents bb1dc3f4 26e1bdac
Loading
Loading
Loading
Loading
+35 −0
Original line number Diff line number Diff line
imgutils.generic.clip
=======================================

.. currentmodule:: imgutils.generic.clip

.. automodule:: imgutils.generic.clip



CLIPModel
-----------------------------------------

.. autoclass:: CLIPModel
    :members: __init__, image_encode, text_encode, predict, clear, make_ui, launch_demo


clip_image_encode
-----------------------------------------

.. autofunction:: clip_image_encode


clip_text_encode
-----------------------------------------

.. autofunction:: clip_text_encode


clip_predict
-----------------------------------------

.. autofunction:: clip_predict


+1 −0
Original line number Diff line number Diff line
@@ -11,5 +11,6 @@ imgutils.generic

    classify
    enhance
    clip
    siglip
    yolo
+1 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@ Overview:
    Generic utilities for some more features.
"""
from .classify import *
from .clip import *
from .enhance import *
from .siglip import *
from .yolo import *
+619 −0

File added.

Preview size limit exceeded, changes collapsed.

+8 −7

File changed.

Preview size limit exceeded, changes collapsed.

Loading