Instructions to use microsoft/OmniParser-v2.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/OmniParser-v2.0 with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("microsoft/OmniParser-v2.0", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Error in Attention mask of florence
#12
by Vishwanathan00786 - opened
Attention mask should be of size (24, 1, 582, 582), but is torch.Size([24, 1, 5, 5])
modeling_florence2.py", line 861, in forward
raise ValueError(
ValueError: Attention mask should be of size (25, 1, 10, 10), but is torch.Size([25, 1, 5, 5])
use transformers-4.45.0