You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何获取Transformers中各支持Backbone模型的配置字符串映射?

问题:寻找Transformers中各Backbone模型对应的配置字符串参数

我运行了以下示例代码:

from transformers import TimmBackboneConfig, TimmBackbone

# Initializing a timm backbone
configuration = TimmBackboneConfig("resnet50")

# Initializing a model from the configuration
model = TimmBackbone(configuration)

# Accessing the model configuration
configuration = model.config

该示例来自Hugging Face Transformers官方文档的Backbones章节。

现在我希望使用该章节中列出的其他支持的Backbone模型:

  • BEiT
  • BiT
  • ConvNet
  • ConvNextV2
  • DiNAT
  • DINOV2
  • FocalNet
  • MaskFormer
  • NAT
  • ResNet
  • Swin Transformer
  • Swin Transformer v2
  • ViTDet

我想知道哪里可以找到这些模型对应的配置字符串映射关系,即每个模型应该使用的字符串参数是什么?例如:

  • "ResNet" -> 'resnet50'
  • "BEiT" -> ???

我已尝试在该章节的相关链接及谷歌中搜索,但未找到相关信息。

内容的提问来源于stack exchange,提问作者ChaosPredictor

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.29 11:21:12