BASE

RelateAnything

RelateAnything

ML model for object relationships · Free

Identifies relationships between specified objects in an image: for example, a person riding a horse or one item behind another. The relationship list can be changed without retraining.

Also known as: Maelic/RelateAnything; https://github.com/Maelic/RelateAnything

Resource illustration: RelateAnything

Open resource ↗

What you can use for free

AGPL code with additional attribution; AGPL obligations and weight licenses still apply.

Paid features and costs

A license without AGPL obligations can be discussed with the author; compute is at your own expense.

Access and limitations

Code is free under AGPL with additional attribution; a license without AGPL obligations can be discussed separately with the author. DINOv3 weight and data licenses are separate; compute is at your own expense.

Use cases

  • Scene graphs and image analysis
  • Spatial understanding for robotics
  • Finding object interactions in video

Example workflow

A possible workflow; this is not a report of hands-on testing.

Example workflow with RelateAnything: Scene graphs and image analysis.

Before you start

  • An image, regions containing the objects of interest, and a list of relationships to check.
  • One example where the spatial or semantic relationship is known in advance.

Steps

  1. Prepare the object regions separately: the model itself does not detect them.
  2. Provide the image, regions, and relationship names to the selected processing method.
  3. Compare the answers with the image, then adjust the relationship list for your task.

Check your result

  • The correct regions are selected; the relationship does not refer to a different object in the image.
  • Compare the model's estimate with the source; check additional detector licenses separately.

Choosing RelateAnything

Scene graphs and image analysis

Choose this when

  • Scene graphs and image analysis
  • Spatial understanding for robotics
  • Finding object interactions in video

Requirements

  • Provide an image, object regions, and a list of relationship phrases; the Python approach requires Python 3.12+ and PyTorch.

Things to consider

  • Costs and limits of free use: A license without AGPL obligations can be discussed with the author; compute is at your own expense.
  • Terms of use: AGPL-3.0-only + NOTICE; weights: DINOv3 terms
  • The model does not detect objects itself.
  • CPU/CUDA support and a browser WebGPU/WASM demo are available; demo detectors have separate licenses.
  • The relationship model does not detect objects itself. ONNX/TensorRT export evaluates boxes; masks belong to the native PyTorch approach.

Frequently asked questions

What can you use for free in RelateAnything?

AGPL code with additional attribution; AGPL obligations and weight licenses still apply.

What additional costs might arise with RelateAnything?

A license without AGPL obligations can be discussed with the author; compute is at your own expense.

What terms of use matter for RelateAnything?

AGPL-3.0-only + NOTICE; weights: DINOv3 terms

How do you get started with RelateAnything?

Prepare the object regions separately: the model itself does not detect them. Provide the image, regions, and relationship names to the selected processing method. Compare the answers with the image, then adjust the relationship list for your task.

What should you consider when choosing RelateAnything?

Inputs are an image, object regions such as bounding boxes, and relationship names.

Is an LLM needed for every video frame?

Relationship phrases are encoded in advance, and the model assesses pairs of specified regions. The README does not require an LLM call for every frame. Add an object detector separately.

Can you treat the weights as AGPL-licensed?

No. NOTICE assigns AGPL-3.0-only with additional attribution to the code, while THIRD_PARTY_NOTICES assigns DINOv3 terms to released weights. RA-4M annotations and demo detectors have additional terms.

License

AGPL-3.0-only + NOTICE; weights: DINOv3 terms

AGPL 3.0 — copyleft with a network-service condition

RelateAnything code: AGPL-3.0-only + additional NOTICE terms; separate demo detector components also use AGPL.

Use, modification, and commercial use cases are permitted. GPL obligations apply to distribution. If you modify an AGPL-covered program and let users interact with it over a network, you must offer them the corresponding source code for that version. This applies to the covered program, not automatically to all your data or independent applications.

License terms

Custom license — this product's terms apply

Released relation/text model checkpoints: DINOv3 terms according to THIRD_PARTY_NOTICES; the AGPL code license does not apply to these weights.

The license name does not imply standard MIT or GPL rights. Its own text determines permission to modify, work commercially, distribute, and use outputs. Follow the use case stated for the product above and the primary source for its terms.

Each asset has its own rights

RA-4M annotations/Gemma notices, demo assets, and separate pretrained/demo weights retain their component terms.

A catalog or gallery does not grant one license for all its content. Check code, fonts, images, models, and templates under the specific resource's license. Studying an idea and creating your own implementation is a different use case from copying source code or assets.

Usage details

Inputs are an image, object regions such as bounding boxes, and relationship names. The model does not detect objects itself. CPU/CUDA support and a browser WebGPU/WASM demo are available; demo detectors have separate licenses.

Technologies and topics

  • Computer vision
  • Object relations

Sources

Other resources