Visualize object detections
Draw bounding boxes on images to visualize object detection results.
Updated Open in Colab
Understand when to use bounding boxes versus pixel-level masks for image analysis.
Images · Notebook · Updated
Colab runs it in your browser. If it calls a model provider, it asks for that provider's API key in a cell.
pip install pixeltable torch transformers timm
huggingface.()vision.bboxes_draw()vision.overlay_segmentation()pxt.create_table()insert()add_computed_column()images.add_computed_column(detections=detr_for_object_detection(images.image, model_id='facebook/detr-resnet-50', threshold=0.8))
One cell of the notebook, copied as it is. Open it in Colab for the rest.
Draw bounding boxes on images to visualize object detection results.
Segment every object matching a concept (a short text phrase or a bounding box) using Meta's Segment Anything Model 3.
Automatically create descriptive captions for images using AI vision models.
You have a batch of images that need AI-powered transformations—like turning photos into paintings, adding stylistic effects, or modifying content based on text prompts.