Two-Stage and CLIP Inference
Chain two models, run OCR on detections, and compare images with CLIP.
Two-stage detection + classification
import roboflow
rf = roboflow.Roboflow(api_key="YOUR_API_KEY")
ws = rf.workspace()
results = ws.two_stage(
image="photo.jpg",
first_stage_model_name="cars-or-trucks",
first_stage_model_version=2,
second_stage_model_name="vehicle-make",
second_stage_model_version=4,
)
for r in results:
print(r)Two-stage detection + OCR
CLIP image comparison
Parameters
When to graduate to Workflows
Last updated
Was this helpful?