MCPcopy Index your code
hub / github.com/amdegroot/ssd.pytorch / update_vis_plot

Function update_vis_plot

train.py:236–251  ·  view source on GitHub ↗
(iteration, loc, conf, window1, window2, update_type,
                    epoch_size=1)

Source from the content-addressed store, hash-verified

234
235
236def update_vis_plot(iteration, loc, conf, window1, window2, update_type,
237 epoch_size=1):
238 viz.line(
239 X=torch.ones((1, 3)).cpu() * iteration,
240 Y=torch.Tensor([loc, conf, loc + conf]).unsqueeze(0).cpu() / epoch_size,
241 win=window1,
242 update=update_type
243 )
244 # initialize epoch plot on first iteration
245 if iteration == 0:
246 viz.line(
247 X=torch.zeros((1, 3)).cpu(),
248 Y=torch.Tensor([loc, conf, loc + conf]).unsqueeze(0).cpu(),
249 win=window2,
250 update=True
251 )
252
253
254if __name__ == '__main__':

Callers 1

trainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected