|
81 | 81 | from .xception_aligned import *
|
82 | 82 | from .xcit import *
|
83 | 83 |
|
84 |
| -from ._builder import build_model_with_cfg, load_pretrained, load_custom_pretrained, resolve_pretrained_cfg, \ |
85 |
| - set_pretrained_download_progress, set_pretrained_check_hash |
86 |
| -from ._factory import create_model, parse_model_name, safe_model_name |
87 |
| -from ._features import FeatureInfo, FeatureHooks, FeatureHookNet, FeatureListNet, FeatureDictNet |
88 |
| -from ._features_fx import FeatureGraphNet, GraphExtractNet, create_feature_extractor, get_graph_node_names, \ |
89 |
| - register_notrace_module, is_notrace_module, get_notrace_modules, \ |
90 |
| - register_notrace_function, is_notrace_function, get_notrace_functions |
91 |
| -from ._helpers import clean_state_dict, load_state_dict, load_checkpoint, remap_state_dict, resume_checkpoint |
92 |
| -from ._hub import load_model_config_from_hf, load_state_dict_from_hf, push_to_hf_hub |
93 |
| -from ._manipulate import model_parameters, named_apply, named_modules, named_modules_with_params, \ |
94 |
| - group_modules, group_parameters, checkpoint_seq, checkpoint, adapt_input_conv |
95 |
| -from ._pretrained import PretrainedCfg, DefaultCfg, filter_pretrained_cfg |
96 |
| -from ._prune import adapt_model_from_string |
97 |
| -from ._registry import split_model_name_tag, get_arch_name, generate_default_cfgs, register_model, \ |
98 |
| - register_model_deprecations, model_entrypoint, list_models, list_pretrained, get_deprecated_models, \ |
99 |
| - is_model, list_modules, is_model_in_modules, is_model_pretrained, get_pretrained_cfg, get_pretrained_cfg_value, \ |
100 |
| - get_arch_pretrained_cfgs |
| 84 | +from ._builder import ( |
| 85 | + build_model_with_cfg as build_model_with_cfg, |
| 86 | + load_pretrained as load_pretrained, |
| 87 | + load_custom_pretrained as load_custom_pretrained, |
| 88 | + resolve_pretrained_cfg as resolve_pretrained_cfg, |
| 89 | + set_pretrained_download_progress as set_pretrained_download_progress, |
| 90 | + set_pretrained_check_hash as set_pretrained_check_hash, |
| 91 | +) |
| 92 | +from ._factory import ( |
| 93 | + create_model as create_model, |
| 94 | + parse_model_name as parse_model_name, |
| 95 | + safe_model_name as safe_model_name, |
| 96 | +) |
| 97 | +from ._features import ( |
| 98 | + FeatureInfo as FeatureInfo, |
| 99 | + FeatureHooks as FeatureHooks, |
| 100 | + FeatureHookNet as FeatureHookNet, |
| 101 | + FeatureListNet as FeatureListNet, |
| 102 | + FeatureDictNet as FeatureDictNet, |
| 103 | +) |
| 104 | +from ._features_fx import ( |
| 105 | + FeatureGraphNet as FeatureGraphNet, |
| 106 | + GraphExtractNet as GraphExtractNet, |
| 107 | + create_feature_extractor as create_feature_extractor, |
| 108 | + get_graph_node_names as get_graph_node_names, |
| 109 | + register_notrace_module as register_notrace_module, |
| 110 | + is_notrace_module as is_notrace_module, |
| 111 | + get_notrace_modules as get_notrace_modules, |
| 112 | + register_notrace_function as register_notrace_function, |
| 113 | + is_notrace_function as is_notrace_function, |
| 114 | + get_notrace_functions as get_notrace_functions, |
| 115 | +) |
| 116 | +from ._helpers import ( |
| 117 | + clean_state_dict as clean_state_dict, |
| 118 | + load_state_dict as load_state_dict, |
| 119 | + load_checkpoint as load_checkpoint, |
| 120 | + remap_state_dict as remap_state_dict, |
| 121 | + resume_checkpoint as resume_checkpoint, |
| 122 | +) |
| 123 | +from ._hub import ( |
| 124 | + load_model_config_from_hf as load_model_config_from_hf, |
| 125 | + load_state_dict_from_hf as load_state_dict_from_hf, |
| 126 | + push_to_hf_hub as push_to_hf_hub, |
| 127 | +) |
| 128 | +from ._manipulate import ( |
| 129 | + model_parameters as model_parameters, |
| 130 | + named_apply as named_apply, |
| 131 | + named_modules as named_modules, |
| 132 | + named_modules_with_params as named_modules_with_params, |
| 133 | + group_modules as group_modules, |
| 134 | + group_parameters as group_parameters, |
| 135 | + checkpoint_seq as checkpoint_seq, |
| 136 | + checkpoint as checkpoint, |
| 137 | + adapt_input_conv as adapt_input_conv, |
| 138 | +) |
| 139 | +from ._pretrained import ( |
| 140 | + PretrainedCfg as PretrainedCfg, |
| 141 | + DefaultCfg as DefaultCfg, |
| 142 | + filter_pretrained_cfg as filter_pretrained_cfg, |
| 143 | +) |
| 144 | +from ._prune import adapt_model_from_string as adapt_model_from_string |
| 145 | +from ._registry import ( |
| 146 | + split_model_name_tag as split_model_name_tag, |
| 147 | + get_arch_name as get_arch_name, |
| 148 | + generate_default_cfgs as generate_default_cfgs, |
| 149 | + register_model as register_model, |
| 150 | + register_model_deprecations as register_model_deprecations, |
| 151 | + model_entrypoint as model_entrypoint, |
| 152 | + list_models as list_models, |
| 153 | + list_pretrained as list_pretrained, |
| 154 | + get_deprecated_models as get_deprecated_models, |
| 155 | + is_model as is_model, |
| 156 | + list_modules as list_modules, |
| 157 | + is_model_in_modules as is_model_in_modules, |
| 158 | + is_model_pretrained as is_model_pretrained, |
| 159 | + get_pretrained_cfg as get_pretrained_cfg, |
| 160 | + get_pretrained_cfg_value as get_pretrained_cfg_value, |
| 161 | + get_arch_pretrained_cfgs as get_arch_pretrained_cfgs, |
| 162 | +) |
0 commit comments