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

dis_saveto #26

Open
SunXiaoqian1 opened this issue Apr 24, 2019 · 10 comments
Open

dis_saveto #26

SunXiaoqian1 opened this issue Apr 24, 2019 · 10 comments

Comments

@SunXiaoqian1
Copy link

Hi, What file corresponds to dis_saveto?
Looking forword to your reply.

@SunXiaoqian1
Copy link
Author

I encountered the following error when i trained the discriminator.

DataLossError (see above for traceback): Unable to open table file ./model/discriminator: Failed precondition: model/discriminator: perhaps your file is in a different file format and you need to use a different restore operator?
[[Node: save/RestoreV2_6 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_arg_save/Const_0_0, save/RestoreV2_6/tensor_names, save/RestoreV2_6/shape_and_slices)]]
[[Node: save/RestoreV2_34/_247 = _Recvclient_terminated=false, recv_device="/job:localhost/replica:0/task:0/gpu:0", send_device="/job:localhost/replica:0/task:0/cpu:0", send_device_incarnation=1, tensor_name="edge_930_save/RestoreV2_34", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/gpu:0"]]

Looking forword your reply.

@ZhenYangIACAS
Copy link
Owner

It seems that you made a mistake when you restore the parameters of the discriminator? Have you pre-trained a discriminator?

@SunXiaoqian1
Copy link
Author

SunXiaoqian1 commented Apr 24, 2019 via email

@ZhenYangIACAS
Copy link
Owner

Maybe you need to set reload=False, whchi ensure that you re-train the discriminator, other than reloads the pre-train discriminator.

@SunXiaoqian1
Copy link
Author

Thank you very much. Should I set reload =False when pre-training the discriminator, and then set reload=reload when gan training.
Best wishes for you.

@SunXiaoqian1
Copy link
Author

I am sorry to bother you again. How should I generate a .pkl file for the dictionary ?
Looking forword your reply.

@SunXiaoqian1
Copy link
Author

SunXiaoqian1 commented Apr 25, 2019 via email

@ZhenYangIACAS
Copy link
Owner

Getting the .pkl file is easy. You just need to dump the vocabs used by the generator to .pkl file.

@SunXiaoqian1
Copy link
Author

Thank You very much. The pre-training of the discriminator is running normally.
Best wishes for you.

@SunXiaoqian1
Copy link
Author

Hello, I have been training the discriminator when the accuracy rate has been: 0.25, 0.5, 0.75, 1 these four numbers, I don't know why? In addition, the paper compares the effects of different accuracy rate discriminators on confrontation training. How is this accuracy tested? I look forward to your reply.

epoch 0, samples 20668, loss 3.634067, accuracy 0.500000 BatchTime 0.372959, for discriminator pretraining
epoch 0, samples 20672, loss 3.883449, accuracy 0.500000 BatchTime 0.419294, for discriminator pretraining
epoch 0, samples 20676, loss 2.348865, accuracy 0.500000 BatchTime 0.420956, for discriminator pretraining
epoch 0, samples 20680, loss 2.402224, accuracy 0.250000 BatchTime 0.405261, for discriminator pretraining
epoch 0, samples 20684, loss 1.328440, accuracy 0.500000 BatchTime 0.467977, for discriminator pretraining
epoch 0, samples 20688, loss 1.028025, accuracy 0.750000 BatchTime 1.012261, for discriminator pretraining
epoch 0, samples 20692, loss 1.549341, accuracy 0.500000 BatchTime 0.634697, for discriminator pretraining
epoch 0, samples 20696, loss 6.031885, accuracy 0.500000 BatchTime 0.405600, for discriminator pretraining
epoch 0, samples 20700, loss 1.932773, accuracy 0.500000 BatchTime 0.455647, for discriminator pretraining
epoch 0, samples 20704, loss 1.371862, accuracy 0.500000 BatchTime 1.361365, for discriminator pretraining
epoch 0, samples 20708, loss 0.425249, accuracy 0.750000 BatchTime 0.371475, for discriminator pretraining
epoch 0, samples 20712, loss 1.613419, accuracy 0.250000 BatchTime 0.744851, for discriminator pretraining
epoch 0, samples 20716, loss 1.059414, accuracy 0.500000 BatchTime 0.959003, for discriminator pretraining
epoch 0, samples 20720, loss 2.398868, accuracy 0.500000 BatchTime 0.575805, for discriminator pretraining
epoch 0, samples 20724, loss 1.453211, accuracy 0.500000 BatchTime 0.410487, for discriminator pretraining
epoch 0, samples 20728, loss 2.586250, accuracy 0.500000 BatchTime 0.915709, for discriminator pretraining
epoch 0, samples 20732, loss 2.207909, accuracy 0.500000 BatchTime 0.688516, for discriminator pretraining
epoch 0, samples 20736, loss 0.855769, accuracy 0.500000 BatchTime 0.499345, for discriminator pretraining
epoch 0, samples 20740, loss 3.027243, accuracy 0.500000 BatchTime 0.410718, for discriminator pretraining
epoch 0, samples 20744, loss 1.883792, accuracy 0.500000 BatchTime 0.696694, for discriminator pretraining
epoch 0, samples 20748, loss 0.590286, accuracy 0.750000 BatchTime 0.330475, for discriminator pretraining
epoch 0, samples 20752, loss 1.134261, accuracy 0.750000 BatchTime 0.478576, for discriminator pretraining
epoch 0, samples 20756, loss 1.763076, accuracy 0.500000 BatchTime 0.424916, for discriminator pretraining

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