object_detection_gradio / detect_pipeline.py
Clement Vachet
Add detection python files
ffdfdcd
raw
history blame contribute delete
257 Bytes
from transformers import pipeline
detector = pipeline(model="facebook/detr-resnet-50", revision="no_timm")
result = detector("http://images.cocodataset.org/val2017/000000039769.jpg")
print(result)
# x, y are expressed relative to the top left hand corner.