MCPcopy Create free account
hub / github.com/ICTMCG/FakeSV / c3d_collate_fn

Function c3d_collate_fn

code/run.py:224–236  ·  view source on GitHub ↗
(batch)

Source from the content-addressed store, hash-verified

222 }
223
224def c3d_collate_fn(batch):
225 num_frames = 83
226
227 c3d = [item['c3d'] for item in batch]
228 c3d, c3d_masks = pad_frame_sequence(num_frames, c3d)
229
230 label = [item['label'] for item in batch]
231
232 return {
233 'label': torch.stack(label),
234 'c3d': c3d,
235 'c3d_masks': c3d_masks,
236 }
237
238def vgg_collate_fn(batch):
239 num_frames = 83

Callers

nothing calls this directly

Calls 1

pad_frame_sequenceFunction · 0.85

Tested by

no test coverage detected