anhnv125 commited on
Commit
5f5e024
1 Parent(s): 0740cf3

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -113,7 +113,7 @@ if __name__ == '__main__':
113
  prob = CONFIG.DATA.EVAL.transition_probs[0]
114
  loss_percent = (1 - prob[0]) / (2 - prob[0] - prob[1]) * 100
115
  print('Evaluate with real trace' if masking == 'real' else
116
- 'Evaluate with generated trace with {:.2f}% packet loss'.format(prob))
117
  elif args.mode == 'test':
118
  model.cuda(device=0)
119
  testset = BlindTestLoader(test_dir=CONFIG.TEST.in_dir)
 
113
  prob = CONFIG.DATA.EVAL.transition_probs[0]
114
  loss_percent = (1 - prob[0]) / (2 - prob[0] - prob[1]) * 100
115
  print('Evaluate with real trace' if masking == 'real' else
116
+ 'Evaluate with generated trace with {:.2f}% packet loss'.format(loss_percent))
117
  elif args.mode == 'test':
118
  model.cuda(device=0)
119
  testset = BlindTestLoader(test_dir=CONFIG.TEST.in_dir)