Instructions to use TeraflopAI/compression-detection-b1-256 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- timm
How to use TeraflopAI/compression-detection-b1-256 with timm:
import timm model = timm.create_model("hf_hub:TeraflopAI/compression-detection-b1-256", pretrained=True) - Transformers
How to use TeraflopAI/compression-detection-b1-256 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="TeraflopAI/compression-detection-b1-256") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, timm/efficientvit_b1.r256_in1k processor = AutoImageProcessor.from_pretrained("TeraflopAI/compression-detection-b1-256") model = timm/efficientvit_b1.r256_in1k.from_pretrained("TeraflopAI/compression-detection-b1-256") - Notebooks
- Google Colab
- Kaggle
- Downloads last month
- -