CryptoKnight icon indicating copy to clipboard operation
CryptoKnight copied to clipboard

buildCustomSample leads to a IndexError

Open vsarunhah opened this issue 5 years ago • 0 comments

While trying to run CryptoKnight, I'm able to draw the distribution and get the model trained. However, when I try to use knight.py to predict an executable, I get this:

File "./src/Model/dcnn.py", line 481, in <module>
   main(sys.argv)
 File "./src/Model/dcnn.py", line 446, in main
   if args.predict: predict()
 File "./src/Model/dcnn.py", line 339, in predict
   x_val = buildCustomSample(args.predict)
 File "./src/Model/dcnn.py", line 122, in buildCustomSample
   return torch.Tensor([[features[0]]])
IndexError: list index out of range

While trying to get to the error, it seems like the './data/sample' file is just always empty.

vsarunhah avatar Aug 06 '20 20:08 vsarunhah