Instructions to use FoamoftheSea/pvt_v2_b2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FoamoftheSea/pvt_v2_b2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="FoamoftheSea/pvt_v2_b2") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("FoamoftheSea/pvt_v2_b2") model = AutoModelForImageClassification.from_pretrained("FoamoftheSea/pvt_v2_b2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Fixed "out_indices" and "out_features" fields in config.
Verified signaturefa234c9
-
Updated model for changed module name
Verified signature5370dee -
Delete preprocessor_config.json
Verified signatureaf714d3 -
Delete model.safetensors
Verified signature19d6c4b -
Delete config.json
Verified signaturee48f3b0
-
Update config.json
Switched from "attn_reduce" to "linear_attention" paramcac2a9d
-
Update preprocessor_config.json
b1c474c
-
Remove deprecated architecture
848e489 -
Update model architecture
098789f
-
Uploaded converted model
c4a6f4e -
Upload config.json
fa78447 -
initial commit
a261974