Team Ai
Apppublic

GoodWin/Deep-Multi-scale

sourceHugging Faceupdated 5y agoView on Hugging Face
0likes
__init__.cpython-38.pyc8 linesDownload Raw Back to __pycache__
1U

2�B2_��@s0ddlZddlmZdd�Zdd�Zdd�ZdS)	�N)�	BaseModelcCsxd|d}t�|�}d}|�dd�d}|j��D]&\}}|��|��kr4t|t�r4|}q4|dkrttd||f�|S)Nzmodels.Z_model�_��modelz_In %s.py, there should be a subclass of BaseModel with class name that matches %s in lowercase.)	�	importlib�
import_module�replace�__dict__�items�lower�3issubclassr�print)�4model_nameZmodel_filenameZmodellibrZtarget_model_name�name�cls�r�,/home/lxm/ExpCodes/DFDNet/models/__init__.py�find_model_using_names5�rcCst|�}|jS�N)rZmodify_commandline_options)rZmodel_classrrr�get_option_settersrcCst|j�}|�}|�|�|Sr)rr�6initialize)�optr�instancerrr�create_model!s78r)rZmodels.base_modelrrrrrrrr�<module>s