(batch)
| 222 | } |
| 223 | |
| 224 | def 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 | |
| 238 | def vgg_collate_fn(batch): |
| 239 | num_frames = 83 |
nothing calls this directly
no test coverage detected