MCPcopy Create free account
hub / github.com/Yang-Li-2000/Touch-Line-Transformer / forward

Method forward

models/mdetr.py:173–357  ·  view source on GitHub ↗

The forward expects a NestedTensor, which consists of: - samples.tensor: batched images, of shape [batch_size x 3 x H x W] - samples.mask: a binary mask of shape [batch_size x H x W], containing 1 on padded pixels It returns a dict with the following elements:

(self, samples: NestedTensor, captions, encode_and_save=True,
                memory_cache=None, paf_samples=None, arm_query=None,
                img_names=None, encodings_of_tokenized=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

from_tensor_listMethod · 0.80
decomposeMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected