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

Error in training and password generation #30

Open
surabhidwivedi opened this issue Jun 19, 2024 · 0 comments
Open

Error in training and password generation #30

surabhidwivedi opened this issue Jun 19, 2024 · 0 comments

Comments

@surabhidwivedi
Copy link

surabhidwivedi commented Jun 19, 2024

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.

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