Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

buildCustomSample leads to a IndexError #6

Open
vsarunhah opened this issue Aug 6, 2020 · 0 comments
Open

buildCustomSample leads to a IndexError #6

vsarunhah opened this issue Aug 6, 2020 · 0 comments

Comments

@vsarunhah
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant