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

How to train model with LinkedIn leak ? #16

Open
semeniak1997 opened this issue Mar 1, 2021 · 1 comment
Open

How to train model with LinkedIn leak ? #16

semeniak1997 opened this issue Mar 1, 2021 · 1 comment

Comments

@semeniak1997
Copy link

semeniak1997 commented Mar 1, 2021

I unpacked the "LinkedIn leak" archive into the "/data" directory and renamed it to train.txt. Launched with the following command:
python2 train.py --output-dir output --training-data data/train.txt
And throws the following error:

loaded 0 lines in dataset
Traceback (most recent call last):
File "train.py", line 99, in
fake_inputs = models.Generator(args.batch_size, args.seq_length, args.layer_dim, len(charmap))
File "/share/home/nikita/rd/PassGAN/models.py", line 24, in Generator
output = tf.transpose(output, [0, 2, 1])
File "/home/nikita/.local/lib/python2.7/site-packages/tensorflow/python/ops/array_ops.py", line 1336, in transpose
ret = gen_array_ops.transpose(a, perm, name=name)
File "/home/nikita/.local/lib/python2.7/site-packages/tensorflow/python/ops/gen_array_ops.py", line 5694, in transpose
"Transpose", x=x, perm=perm, name=name)
File "/home/nikita/.local/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 787, in _apply_op_helper
op_def=op_def)
File "/home/nikita/.local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2958, in create_op
set_shapes_for_outputs(ret)
File "/home/nikita/.local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2209, in set_shapes_for_outputs
shapes = shape_func(op)
File "/home/nikita/.local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2159, in call_with_requiring
return call_cpp_shape_fn(op, require_shape_fn=True)
File "/home/nikita/.local/lib/python2.7/site-packages/tensorflow/python/framework/common_shapes.py", line 627, in call_cpp_shape_fn
require_shape_fn)
File "/home/nikita/.local/lib/python2.7/site-packages/tensorflow/python/framework/common_shapes.py", line 691, in _call_cpp_shape_fn_impl
raise ValueError(err.message)
ValueError: Dimension must be 2 but is 3 for 'transpose' (op: 'Transpose') with input shapes: [64,10], [3].

P.S. sample rockyou traind successful

@Broimlookingforcode
Copy link

I thing there might be another txt called train, call it smth else and change train in command to watever u called it

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

2 participants