rohithreddy024 / vae-text-generation Goto Github PK
View Code? Open in Web Editor NEWText generation using Variational Auto Encoders based on IMDB review dataset
Text generation using Variational Auto Encoders based on IMDB review dataset
Please could tell me how to include code for calculating perplexity in this code? #help
Hi, I want use this code to generate titles for Wikipedia articles. Please could I know what changes I need to make. The train dataset has both the articles and the title for each article. Please help. Thanks
I am using a google collab VM with an Nvidia K80 GPU and Intel Xeon CPU. On running python3 main.py, training is occurring but seems to be very slow. It has been 1 hour and 1 epoch doesn't seem to have been completed. Is that normal?
Also, on running nvidia-smi on CLI, it says that my GPU is not being utilised at al (0% utilization). This means the GPU isn't being used at all. I suspected that this was because the default gpu_device is set to 1 in main.py, but my gpu has an id of 0. After changing this parameter, I am getting an error during training.
I did not copy the error, but in essence, it is saying that all of the vectors are not present in the same device. I am assuming that this is because there is a bug in the code that did not send the vector to gpu with id = 0. I will paste this error as soon as I run in it again to replicate this problem.
So finally I have 2 questions, 1. is training on CPU meant to be this slow? 2. How do I change the gpu id to 0 without causing an error. Thanks in advance.
May I ask if the input size of hidden_to_logvar
should be 2 * opt.n_hidden_E
?
self.hidden_to_mu = nn.Linear(2 * opt.n_hidden_E, opt.n_z)
self.hidden_to_logvar = nn.Linear(2 * opt.n_hidden_G, opt.n_z) => should be nn.Linear(2 * opt.n_hidden_E, opt.n_z)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.