A toolbox for image embedding feature extraction for tracksdata graphs.
pip install git+https://github.com/royerlab/img-embed-td.gittracksdata compatibility through python
import torch
import tracksdata as td
from img_embed_td import ImageEmbeddingConfig, ImageEmbeddingNodeAttrs
graph = ...
config = ImageEmbeddingConfig(
model_name="dinov3-vits16plus",
)
embed_ops = ImageEmbeddingNodeAttrs(config=config)
embed_ops.add_node_attrs(graph, frames=frames)geff CLI compatibility
# in-place addition of embedding attributes to the graph
img-embed-td your_graph.geff directory_with_images/*.tif -m dinov3-vits16plus