Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] removed MaskFormerSwin and TimmBackbone from the table on index.md #26347

Merged
merged 1 commit into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions docs/source/en/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,6 @@ Flax), PyTorch, and/or TensorFlow.
| MarkupLM | ✅ | ❌ | ❌ |
| Mask2Former | ✅ | ❌ | ❌ |
| MaskFormer | ✅ | ❌ | ❌ |
| MaskFormerSwin | ❌ | ❌ | ❌ |
| mBART | ✅ | ✅ | ✅ |
| MEGA | ✅ | ❌ | ❌ |
| Megatron-BERT | ✅ | ❌ | ❌ |
Expand Down Expand Up @@ -462,7 +461,6 @@ Flax), PyTorch, and/or TensorFlow.
| TAPAS | ✅ | ✅ | ❌ |
| Time Series Transformer | ✅ | ❌ | ❌ |
| TimeSformer | ✅ | ❌ | ❌ |
| TimmBackbone | ❌ | ❌ | ❌ |
| Trajectory Transformer | ✅ | ❌ | ❌ |
| Transformer-XL | ✅ | ✅ | ❌ |
| TrOCR | ✅ | ❌ | ❌ |
Expand Down
5 changes: 5 additions & 0 deletions utils/check_table.py

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what backbones means?

Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,12 @@ def get_model_table_from_auto_modules() -> str:

# Let's build that table!
model_names = list(model_name_to_config.keys())

# MaskFormerSwin and TimmBackbone are backbones and so not meant to be loaded and used on their own. Instead, they define architectures which can be loaded using the AutoBackbone API.
names_to_exclude = ["MaskFormerSwin", "TimmBackbone"]
model_names = [name for name in model_names if name not in names_to_exclude]
model_names.sort(key=str.lower)

columns = ["Model", "PyTorch support", "TensorFlow support", "Flax Support"]
# We'll need widths to properly display everything in the center (+2 is to leave one extra space on each side).
widths = [len(c) + 2 for c in columns]
Expand Down