hwang1996 / sgn Goto Github PK
View Code? Open in Web Editor NEWStructure-Aware Generation Network for Recipe Generation from Images
Structure-Aware Generation Network for Recipe Generation from Images
I tried downloading the pre-trained model but it gave me this error.
User account '' from identity provider '' does not exist in tenant 'Nanyang Technological University' and cannot access the application '08e18876-6177-487e-b8b5-cf950c1e598c'.
Can you please let me know if I can get the pre-trained model from somewhere else?
Hi, thank you for providing the source code of your paper. I am very interested in your paper.
I'd like to ask you a question about initializing hidden states in ON-LSTM.
From line 126 to 146 at train.py
, the code initialize hidden states when starting a batch (L125~L127).
Then, the sentence-level ON-LSTM hidden state, namely hidden
, is used for training (L146).
However, at next iteration, this hidden
is used again after detaching, although it is not related to the next iteration.
I think that this hidden
should be again initialized as zero vectors.
Could you tell me why you used the previous hidden state is used during training?
Thanks
hidden = model.init_hidden(args.batch_size)
hidd = model.init_hidden(args.batch_size*19)
hidd_cand = model.init_hidden(args.batch_size*4)
batch = 0
acc_list = []
total_var = 0
it = tqdm(range(len(train_dataloader)), desc="Epoch {}/{}".format(epoch, args.epochs), ncols=0)
data_iter = iter(train_dataloader)
for niter in it:
input_ids, cand_ids, target = data_iter.next()
if args.cuda:
input_ids = input_ids.cuda()
cand_ids = cand_ids.cuda()
targets = target.cuda()
hidden = repackage_hidden(hidden)
hidd = repackage_hidden(hidd)
hidd_cand = repackage_hidden(hidd_cand)
optimizer.zero_grad()
output, result_prob, hidden, rnn_hs, dropped_rnn_hs, cand_emb = model(input_ids, cand_ids, hidden, hidd, hidd_cand)
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.