Skip to content

Error in training and password generation #30

@surabhidwivedi

Description

@surabhidwivedi

1- I am getting the following error during training the model

python train.py --output-dir output --training-data data/rockyou-train.txt

File "train.py", line 97, in
real_inputs_discrete = tf.placeholder(tf.int32, shape=[args.batch_size, args.seq_length])
AttributeError: module 'tensorflow' has no attribute 'placeholder'

2- I am getting following error , while generating the password using the following command

python sample.py
--input-dir pretrained
--checkpoint pretrained/checkpoints/195000.ckpt
--output gen_passwords.txt
--batch-size 1024
--num-samples 1000000

Traceback (most recent call last):
File "sample.py", line 74, in
charmap = pickle.load(f)
UnicodeDecodeError: 'ascii' codec can't decode byte 0x83 in position 0: ordinal not in range(128)

Kindly help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions