2021-09-13 16:38:23 -07:00
|
|
|
from .beit import *
|
2021-04-12 09:38:02 -07:00
|
|
|
from .byoanet import *
|
2021-02-09 16:21:47 -08:00
|
|
|
from .byobnet import *
|
2021-05-04 11:19:15 -07:00
|
|
|
from .cait import *
|
2021-04-24 18:22:59 +05:30
|
|
|
from .coat import *
|
2021-05-20 23:17:28 +00:00
|
|
|
from .convit import *
|
2021-10-09 21:09:51 -04:00
|
|
|
from .convmixer import *
|
2022-01-12 23:05:41 -08:00
|
|
|
from .convnext import *
|
2021-09-13 11:49:54 -07:00
|
|
|
from .crossvit import *
|
2020-07-27 11:15:07 -07:00
|
|
|
from .cspnet import *
|
2022-12-06 17:19:25 -08:00
|
|
|
from .davit import *
|
2022-01-26 22:53:57 -08:00
|
|
|
from .deit import *
|
2019-06-23 18:22:16 -07:00
|
|
|
from .densenet import *
|
2020-07-03 00:41:30 -07:00
|
|
|
from .dla import *
|
2019-06-23 18:22:16 -07:00
|
|
|
from .dpn import *
|
2022-07-01 15:16:41 -07:00
|
|
|
from .edgenext import *
|
2022-08-17 14:08:53 -07:00
|
|
|
from .efficientformer import *
|
2023-02-03 14:12:29 -08:00
|
|
|
from .efficientformer_v2 import *
|
2019-11-28 16:55:36 -08:00
|
|
|
from .efficientnet import *
|
2023-08-01 12:42:21 +08:00
|
|
|
from .efficientvit_mit import *
|
2023-08-01 18:51:08 +08:00
|
|
|
from .efficientvit_msra import *
|
2023-03-27 17:14:58 -07:00
|
|
|
from .eva import *
|
2025-05-06 02:59:33 +08:00
|
|
|
from .fasternet import *
|
2023-08-22 14:42:43 -07:00
|
|
|
from .fastvit import *
|
2023-01-09 16:18:19 -08:00
|
|
|
from .focalnet import *
|
2022-08-17 14:29:18 -07:00
|
|
|
from .gcvit import *
|
2021-04-07 22:51:15 +08:00
|
|
|
from .ghostnet import *
|
2021-03-29 11:33:08 -07:00
|
|
|
from .hardcorenas import *
|
2023-10-09 19:04:58 +08:00
|
|
|
from .hgnet import *
|
2024-04-20 09:40:55 -07:00
|
|
|
from .hiera import *
|
2024-08-15 17:58:15 -07:00
|
|
|
from .hieradet_sam2 import *
|
2019-11-25 22:34:04 -08:00
|
|
|
from .hrnet import *
|
2023-08-21 12:28:34 -07:00
|
|
|
from .inception_next import *
|
2020-07-03 00:41:30 -07:00
|
|
|
from .inception_resnet_v2 import *
|
|
|
|
from .inception_v3 import *
|
|
|
|
from .inception_v4 import *
|
2021-05-14 17:10:43 -07:00
|
|
|
from .levit import *
|
2022-08-22 17:42:10 -07:00
|
|
|
from .maxxvit import *
|
2024-08-23 10:14:06 -07:00
|
|
|
from .mambaout import *
|
2023-05-05 11:18:26 -07:00
|
|
|
from .metaformer import *
|
2021-05-05 00:59:45 -07:00
|
|
|
from .mlp_mixer import *
|
2020-07-03 00:41:30 -07:00
|
|
|
from .mobilenetv3 import *
|
2022-01-31 15:38:32 -08:00
|
|
|
from .mobilevit import *
|
2022-08-17 15:12:31 -07:00
|
|
|
from .mvitv2 import *
|
2020-07-03 00:41:30 -07:00
|
|
|
from .nasnet import *
|
2021-06-24 21:02:13 +01:00
|
|
|
from .nest import *
|
2024-02-10 17:05:16 -08:00
|
|
|
from .nextvit import *
|
2021-01-27 22:06:57 -08:00
|
|
|
from .nfnet import *
|
2021-03-31 18:20:14 -07:00
|
|
|
from .pit import *
|
2020-07-03 00:41:30 -07:00
|
|
|
from .pnasnet import *
|
2022-08-17 12:06:05 -07:00
|
|
|
from .pvt_v2 import *
|
2024-08-01 14:49:21 +09:00
|
|
|
from .rdnet import *
|
2020-07-03 00:41:30 -07:00
|
|
|
from .regnet import *
|
2023-08-16 11:54:53 +08:00
|
|
|
from .repghost import *
|
2023-07-19 19:24:33 +08:00
|
|
|
from .repvit import *
|
2020-07-03 00:41:30 -07:00
|
|
|
from .res2net import *
|
|
|
|
from .resnest import *
|
|
|
|
from .resnet import *
|
2020-12-24 12:03:31 -08:00
|
|
|
from .resnetv2 import *
|
2020-07-23 10:28:57 -07:00
|
|
|
from .rexnet import *
|
2020-07-03 00:41:30 -07:00
|
|
|
from .selecsls import *
|
|
|
|
from .senet import *
|
2022-05-05 23:22:40 +09:00
|
|
|
from .sequencer import *
|
2025-04-29 06:24:44 +08:00
|
|
|
from .shvit import *
|
2020-01-26 11:23:39 -08:00
|
|
|
from .sknet import *
|
2025-04-29 05:38:42 +08:00
|
|
|
from .starnet import *
|
2025-04-29 00:58:10 +08:00
|
|
|
from .swiftformer import *
|
2021-04-13 12:17:21 -07:00
|
|
|
from .swin_transformer import *
|
2022-05-12 15:01:23 -07:00
|
|
|
from .swin_transformer_v2 import *
|
2022-02-23 17:28:52 -08:00
|
|
|
from .swin_transformer_v2_cr import *
|
2023-08-30 17:58:38 +08:00
|
|
|
from .tiny_vit import *
|
2021-03-29 11:33:08 -07:00
|
|
|
from .tnt import *
|
2020-04-12 18:44:12 +03:00
|
|
|
from .tresnet import *
|
2021-09-13 11:49:54 -07:00
|
|
|
from .twins import *
|
2021-02-09 16:21:47 -08:00
|
|
|
from .vgg import *
|
2021-05-14 17:10:43 -07:00
|
|
|
from .visformer import *
|
2020-10-13 13:33:44 -07:00
|
|
|
from .vision_transformer import *
|
2021-04-01 12:15:34 -07:00
|
|
|
from .vision_transformer_hybrid import *
|
2022-05-02 15:37:39 -07:00
|
|
|
from .vision_transformer_relpos import *
|
2023-05-17 11:39:29 +08:00
|
|
|
from .vision_transformer_sam import *
|
2024-05-05 02:50:14 -04:00
|
|
|
from .vitamin import *
|
2022-02-28 13:56:23 -08:00
|
|
|
from .volo import *
|
Monster commit, activation refactor, VoVNet, norm_act improvements, more
* refactor activations into basic PyTorch, jit scripted, and memory efficient custom auto
* implement hard-mish, better grad for hard-swish
* add initial VovNet V1/V2 impl, fix #151
* VovNet and DenseNet first models to use NormAct layers (support BatchNormAct2d, EvoNorm, InplaceIABN)
* Wrap IABN for any models that use it
* make more models torchscript compatible (DPN, PNasNet, Res2Net, SelecSLS) and add tests
2020-06-01 16:59:51 -07:00
|
|
|
from .vovnet import *
|
2020-07-03 00:41:30 -07:00
|
|
|
from .xception import *
|
|
|
|
from .xception_aligned import *
|
2021-07-08 21:05:44 +01:00
|
|
|
from .xcit import *
|
2019-06-23 18:22:16 -07:00
|
|
|
|
2025-02-21 19:33:00 +01:00
|
|
|
from ._builder import (
|
|
|
|
build_model_with_cfg as build_model_with_cfg,
|
|
|
|
load_pretrained as load_pretrained,
|
|
|
|
load_custom_pretrained as load_custom_pretrained,
|
|
|
|
resolve_pretrained_cfg as resolve_pretrained_cfg,
|
|
|
|
set_pretrained_download_progress as set_pretrained_download_progress,
|
|
|
|
set_pretrained_check_hash as set_pretrained_check_hash,
|
|
|
|
)
|
|
|
|
from ._factory import (
|
|
|
|
create_model as create_model,
|
|
|
|
parse_model_name as parse_model_name,
|
|
|
|
safe_model_name as safe_model_name,
|
|
|
|
)
|
|
|
|
from ._features import (
|
|
|
|
FeatureInfo as FeatureInfo,
|
|
|
|
FeatureHooks as FeatureHooks,
|
|
|
|
FeatureHookNet as FeatureHookNet,
|
|
|
|
FeatureListNet as FeatureListNet,
|
|
|
|
FeatureDictNet as FeatureDictNet,
|
|
|
|
)
|
|
|
|
from ._features_fx import (
|
|
|
|
FeatureGraphNet as FeatureGraphNet,
|
|
|
|
GraphExtractNet as GraphExtractNet,
|
|
|
|
create_feature_extractor as create_feature_extractor,
|
|
|
|
get_graph_node_names as get_graph_node_names,
|
|
|
|
register_notrace_module as register_notrace_module,
|
|
|
|
is_notrace_module as is_notrace_module,
|
|
|
|
get_notrace_modules as get_notrace_modules,
|
|
|
|
register_notrace_function as register_notrace_function,
|
|
|
|
is_notrace_function as is_notrace_function,
|
|
|
|
get_notrace_functions as get_notrace_functions,
|
|
|
|
)
|
|
|
|
from ._helpers import (
|
|
|
|
clean_state_dict as clean_state_dict,
|
|
|
|
load_state_dict as load_state_dict,
|
|
|
|
load_checkpoint as load_checkpoint,
|
|
|
|
remap_state_dict as remap_state_dict,
|
|
|
|
resume_checkpoint as resume_checkpoint,
|
|
|
|
)
|
|
|
|
from ._hub import (
|
|
|
|
load_model_config_from_hf as load_model_config_from_hf,
|
|
|
|
load_state_dict_from_hf as load_state_dict_from_hf,
|
|
|
|
push_to_hf_hub as push_to_hf_hub,
|
|
|
|
)
|
|
|
|
from ._manipulate import (
|
|
|
|
model_parameters as model_parameters,
|
|
|
|
named_apply as named_apply,
|
|
|
|
named_modules as named_modules,
|
|
|
|
named_modules_with_params as named_modules_with_params,
|
|
|
|
group_modules as group_modules,
|
|
|
|
group_parameters as group_parameters,
|
|
|
|
checkpoint_seq as checkpoint_seq,
|
|
|
|
checkpoint as checkpoint,
|
|
|
|
adapt_input_conv as adapt_input_conv,
|
|
|
|
)
|
|
|
|
from ._pretrained import (
|
|
|
|
PretrainedCfg as PretrainedCfg,
|
|
|
|
DefaultCfg as DefaultCfg,
|
|
|
|
filter_pretrained_cfg as filter_pretrained_cfg,
|
|
|
|
)
|
|
|
|
from ._prune import adapt_model_from_string as adapt_model_from_string
|
|
|
|
from ._registry import (
|
|
|
|
split_model_name_tag as split_model_name_tag,
|
|
|
|
get_arch_name as get_arch_name,
|
|
|
|
generate_default_cfgs as generate_default_cfgs,
|
|
|
|
register_model as register_model,
|
|
|
|
register_model_deprecations as register_model_deprecations,
|
|
|
|
model_entrypoint as model_entrypoint,
|
|
|
|
list_models as list_models,
|
|
|
|
list_pretrained as list_pretrained,
|
|
|
|
get_deprecated_models as get_deprecated_models,
|
|
|
|
is_model as is_model,
|
|
|
|
list_modules as list_modules,
|
|
|
|
is_model_in_modules as is_model_in_modules,
|
|
|
|
is_model_pretrained as is_model_pretrained,
|
|
|
|
get_pretrained_cfg as get_pretrained_cfg,
|
|
|
|
get_pretrained_cfg_value as get_pretrained_cfg_value,
|
|
|
|
get_arch_pretrained_cfgs as get_arch_pretrained_cfgs,
|
|
|
|
)
|