
    Ng                     p    d dl Z d dlZd dlZd dlmZ d dlmZ 	 d dlmZ n# e	$ r	 d dl
mZ Y nw xY wddZdS )	    N)OrderedDict)load_checkpoint)load_state_dict_from_url)load_urlTc                     |st          j        d           d S t          |dd          }| ||          }|                     ||           d S )NzoPretrained model URL is empty, using random initialization. Did you intend to use a `tf_` variant of the model?Fcpu)progressmap_location)strict)loggingwarningr   load_state_dict)modelurl	filter_fnr   
state_dicts        J/var/www/html/ai-engine/env/lib/python3.11/site-packages/effdet/helpers.pyload_pretrainedr      st      N 	O 	O 	O)#ERRRJYz**
	*V44444    )NT)torchosr   collectionsr   timm.modelsr   	torch.hubr   ImportErrortorch.utils.model_zoor   r    r   r   <module>r      s     				  # # # # # # ' ' ' ' ' 'K2222222 K K KJJJJJJJJK5 5 5 5 5 5s   ! //