Instructions to use timm/lambda_resnet50ts.a1h_in1k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- timm
How to use timm/lambda_resnet50ts.a1h_in1k with timm:
import timm model = timm.create_model("hf-hub:timm/lambda_resnet50ts.a1h_in1k", pretrained=True) - Transformers
How to use timm/lambda_resnet50ts.a1h_in1k with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="timm/lambda_resnet50ts.a1h_in1k") 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("timm/lambda_resnet50ts.a1h_in1k") model = AutoModelForImageClassification.from_pretrained("timm/lambda_resnet50ts.a1h_in1k", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 133 Bytes
d1104e0 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:aa21c2821d9d6fa9c5af9629e78b54dab1b47a4f61497ed728fc7759e4a0fbc1
size 86506541
|