MCPcopy Create free account
hub / github.com/10Ring/LAA-Net / get_batch_data

Function get_batch_data

lib/core_function.py:32–46  ·  view source on GitHub ↗
(batch_data)

Source from the content-addressed store, hash-verified

30
31
32def get_batch_data(batch_data):
33 inputs = batch_data['img']
34 labels = batch_data['label']
35 targets = batch_data['target']
36 heatmaps = batch_data['heatmap']
37 cstency_heatmaps = None
38 offsets = None
39
40 if 'cstency_heatmap' in batch_data:
41 cstency_heatmaps = batch_data['cstency_heatmap']
42
43 if 'offset' in batch_data:
44 offsets = batch_data['offset']
45
46 return inputs, labels, targets, heatmaps, cstency_heatmaps, offsets
47
48
49def train(cfg, model, critetion, optimizer, epoch, data_loader, logger, writer, devices, trainIters, metrics_base='combine'):

Callers 2

trainFunction · 0.85
validateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected