# Load model directly
from transformers import AutoImageProcessor, AutoModelForImageClassification
processor = AutoImageProcessor.from_pretrained("apjanco/candy-first")
model = AutoModelForImageClassification.from_pretrained("apjanco/candy-first")Quick Links
candy-first
An initial attempt to identify candy in images.
Example Images
airheads
candy corn
caramel
chips
chocolate
fruit
gum
haribo
jelly beans
lollipop
m&ms
marshmallow
mentos
mint
nerds
peeps
pez
popcorn
pretzel
reeses
seeds
skittles
snickers
soda
sour
swedish fish
taffy
tootsie
twix
twizzlers
warheads
whoppers
- Downloads last month
- 10
Evaluation results
- Accuracyself-reported0.744
































# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="apjanco/candy-first") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")