Skip to content

buildCustomSample leads to a IndexError #6

@vsarunhah

Description

@vsarunhah

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions