Skip to content

Encoding Issues when trying to run neural-fuzzer.py #6

@icsimlai

Description

@icsimlai

Issue: Generation of XML files
Description: When I used the below instructions I get errors,
Steps:
$ mkdir seeds
$ printf ">" > seeds/input.xml
$ ./neural-fuzzer.py --max-gen-size 64 0-gen-xml.lstm seeds/
Errors:

  1. UnicodeDecodeError: 'utf-8' codec can't decode byte 0x83 in position 0: invalid start byte
  2. ValueError: You are trying to load a weight file containing 16 layers into a model with 0 layers
    ....

Mainly the errors are coming from below code line while loading the file ,
(char_indices, indices_char) = pickle.load(open(file_model,"r"))
Somehow I work around this error and then get Key error from below code line,
for b in range(batch_size):
for t, char in enumerate(sentence[b]):
x[b, t, char_indices[char]] = 1
Do you have update code ? Or could you please provide some pointers so that I can try to fix them?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions