Instructions to use zac/Bad_hands with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zac/Bad_hands with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="zac/Bad_hands") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("zac/Bad_hands") model = AutoModelForImageClassification.from_pretrained("zac/Bad_hands") - Notebooks
- Google Colab
- Kaggle
OSError: zac/Bad_hands does not appear to have a file named pytorch_model.bin, tf_model.h5, model.ckpt or flax_model.msgpack
#1
by leon-liuchang - opened
'''
from transformers import pipeline
pipe = pipeline("image-classification", model="zac/Bad_hands")
pipe("test/test.jpg")
'''
When I use it like this, I get an error. How can I adjust it?