Instructions to use DBD-research-group/AudioProtoPNet-5-BirdSet-XCL with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DBD-research-group/AudioProtoPNet-5-BirdSet-XCL with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("audio-classification", model="DBD-research-group/AudioProtoPNet-5-BirdSet-XCL", trust_remote_code=True)# Load model directly from transformers import AutoModelForSequenceClassification model = AutoModelForSequenceClassification.from_pretrained("DBD-research-group/AudioProtoPNet-5-BirdSet-XCL", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
issue with ConvNext
#1
by gagannarula - opened
Hi i tried to use the AudioProtoPNet model following the code snippet in the README, and got this error:
TypeError: ConvNextModel.forward() takes from 1 to 3 positional arguments but 4 were given
It looks like return_dict shouldn't be passed to the self.backbone which is ConvNextModel. The issue maybe that I am using the latest version of transformers. I solved the problem locally by removing return_dict argument on line 888:
return self.backbone(input_values, output_hidden_states) # , return_dict)