-
Notifications
You must be signed in to change notification settings - Fork 2
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
what's your dataset? and how does it works? #1
Comments
Hi,
change the "big_cou.txt" to your X domain data path. Before training the main cycleGAN model, you need to pretrain the generator and reconstructor (in same model): Transformer_CycleGAN_Text_Style_Transfer-pytorch/v2_cyclegan.py Lines 333 to 334 in 3ed7af3
and pretrain the discriminator: Transformer_CycleGAN_Text_Style_Transfer-pytorch/v2_cyclegan.py Lines 341 to 345 in 3ed7af3
and then you can run the main cycleGAN section, which load the pretrain model as initialization: Transformer_CycleGAN_Text_Style_Transfer-pytorch/v2_cyclegan.py Lines 335 to 340 in 3ed7af3
see v2_cyclegan.py for more information. |
Hey, |
@sheetalsh456 Sorry that I forgot it because I have put this file in my |
Sure, I included that file, thanks! :) |
@sheetalsh456 This file is the word embedding layer weights. This is a numpy array with shape=(vocab_size, embedding_dim). The order of the word vectors in this array should follow the way that you convert the words into indices. |
Okay, and is this the vocabulary for X_data or Y_data or both? |
@sheetalsh456 Both! |
So if I understand correctly, there are 2 npy files.
|
@sheetalsh456 Yes, it is a numpy array of strings, and the order of words is according to the indices of words. |
Oh okay, makes sense! |
@sheetalsh456 I did not leave the results. It was too long ago. In my experiments, I put formal text like news corpus in I think if you are doing easier tasks like sentiment style transfer from positive sentences to negative sentences, the performance may be better. |
Hey @voidism thanks a lot! :) |
@sheetalsh456 You're welcome! |
Thanks, @viodism, for the detailed explanation. I've set up the code, but when I try to pretrain the model, my notebook crashes. How do you manage it? |
No description provided.
The text was updated successfully, but these errors were encountered: