
    #
3j                     6    S SK r S SKrSSKJr   " S S\5      rg)    N   )BiRefNetSessionGeneralc                   8    \ rS rSrSr\S 5       r\S 5       rSrg)BiRefNetSessionCOD   z^
This class represents a BiRefNet-COD session, which is a subclass of BiRefNetSessionGeneral.
c           
         U R                   " U0 UD6 S3n[        R                  " SU R                  " U0 UD6(       a  SOSUU R                  " U0 UD6SS9  [
        R                  R                  U R                  " U0 UD6U5      $ )z
Downloads the BiRefNet-COD model file from a specific URL and saves it.

Parameters:
    *args: Additional positional arguments.
    **kwargs: Additional keyword arguments.

Returns:
    str: The path to the downloaded model file.
z.onnxzYhttps://github.com/danielgatis/rembg/releases/download/v0.0.0/BiRefNet-COD-epoch_125.onnxNz$md5:f6d0d21ca89d287f17e7afe9f5fd3b45T)fnamepathprogressbar)namepoochretrievechecksum_disabled
u2net_homeosr
   join)clsargskwargsr	   s       U/home/wildlama/miniconda3/lib/python3.13/site-packages/rembg/sessions/birefnet_cod.pydownload_models"BiRefNetSessionCOD.download_models   s     88T,V,-U3g (($9&9 ;00
	
 ww||CNND;F;UCC    c                     g)z
Returns the name of the BiRefNet-COD session.

Parameters:
    *args: Additional positional arguments.
    **kwargs: Additional keyword arguments.

Returns:
    str: The name of the session.
zbirefnet-cod )r   r   r   s      r   r   BiRefNetSessionCOD.name(   s     r   r   N)	__name__
__module____qualname____firstlineno____doc__classmethodr   r   __static_attributes__r   r   r   r   r      s1     D D4  r   r   )r   r    r   r   r   r   r   <module>r%      s    	  $,/ ,r   