-
Notifications
You must be signed in to change notification settings - Fork 37
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
Comments
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? Looking forword your reply. |
It seems that you made a mistake when you restore the parameters of the discriminator? Have you pre-trained a discriminator? |
I trained the generator first, then generated the negative data, and then the following error occurred when training the discriminator.
…------------------ 原始邮件 ------------------
发件人: "zhyang"<[email protected]>;
发送时间: 2019年4月24日(星期三) 下午4:02
收件人: "ZhenYangIACAS/NMT_GAN"<[email protected]>;
抄送: "普罗旺斯的约定"<[email protected]>; "Author"<[email protected]>;
主题: Re: [ZhenYangIACAS/NMT_GAN] dis_saveto (#26)
It seems that you made a mistake when you restore the parameters of the discriminator? Have you pre-trained a discriminator?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Maybe you need to set reload=False, whchi ensure that you re-train the discriminator, other than reloads the pre-train discriminator. |
Thank you very much. Should I set reload =False when pre-training the discriminator, and then set reload=reload when gan training. |
I am sorry to bother you again. How should I generate a .pkl file for the dictionary ? |
After changing the reload, I pre-train the discriminator and I got the following error.
Traceback (most recent call last):
File "discriminator_pretrain.py", line 82, in <module>
gan_train(config)
File "discriminator_pretrain.py", line 63, in gan_train
discriminator.train()
File "/home/sxq/Zhen/cnn_discriminator.py", line 669, in train
x, y, xs, epoch = next(train_it)
File "/home/sxq/Zhen/cnn_discriminator.py", line 632, in train_iter
n_words_source = self.vocab_size_s)
File "/home/sxq/Zhen/data_iterator.py", line 18, in __init__
self.dic_target = pkl.load(f_trg)
cPickle.UnpicklingError: invalid load key, '<'.
In the discriminator, I set the dictionary to be the same as in the generator. The dictionary of the discriminator of the discriminator in your project is a .pkl file. I think it is because the format is incorrect, but I don't kown what to do next.
Looking forword your reply.
…------------------ 原始邮件 ------------------
发件人: "zhyang"<[email protected]>;
发送时间: 2019年4月24日(星期三) 下午4:02
收件人: "ZhenYangIACAS/NMT_GAN"<[email protected]>;
抄送: "普罗旺斯的约定"<[email protected]>; "Author"<[email protected]>;
主题: Re: [ZhenYangIACAS/NMT_GAN] dis_saveto (#26)
It seems that you made a mistake when you restore the parameters of the discriminator? Have you pre-trained a discriminator?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Getting the .pkl file is easy. You just need to dump the vocabs used by the generator to .pkl file. |
Thank You very much. The pre-training of the discriminator is running normally. |
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 |
Hi, What file corresponds to dis_saveto?
Looking forword to your reply.
The text was updated successfully, but these errors were encountered: