shubhamagarwal92 / mmd Goto Github PK
View Code? Open in Web Editor NEWThis repository contains the Pytorch implementation for our SCAI (EMNLP-2018) submission "A Knowledge-Grounded Multimodal Search-Based Conversational Agent"
This repository contains the Pytorch implementation for our SCAI (EMNLP-2018) submission "A Knowledge-Grounded Multimodal Search-Based Conversational Agent"
When will you publish source code?
Thanks in advance.
@githwd2016 @shubhamagarwal92
I have trained the model and save the checkpoint. whereas I am trying to run again bash train_and _translate.sh with IS TRAIN to 'No', which means for translation, I got following error: can anybody help me to rectify this:
File "translate.py", line 212, in
main(args)
File "translate.py", line 139, in main
model.load_state_dict(torch.load(args.checkpoint_path))
File "/home/mauajamapcs16/anaconda2/envs/mmd/lib/python2.7/site-packages/torch/nn/modules/module.py", line 721, in load_state_dict
self.class.name, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for MultimodalHRED:
While copying the parameter named "context_encoder.contextRNN.weight_ih_l0", whose dimensions in the model are torch.Size([1536, 768]) and whose dimensions in the checkpoint are torch.Size([1536, 1024]).
Thanks in advance ..
Hi,
@shubhamagarwal92 @githwd2016
Can you help me for solving this issues, i have checked the line of error and model_type for opt.model_type, it takes all the parameters but after complete training, the following error raise:
Traceback (most recent call last):
File "translate.py", line 207, in
main(args)
File "translate.py", line 105, in main
model = HRED(src_vocab_size=vocab_size,
NameError: global name 'HRED' is not defined
Thanks for help in advance
Sir I have installed zomatopy using the command :
pip install zomatopy
and after that when I try executing the following commands:
import zomatopy
config={
"user_key":"ZOMATO_API_KEY"
}
zomato = zomatopy.initialize_app(config)
it gives me import error
Traceback (most recent call last):
File "zomato.py", line 1, in
import zomatopy
ImportError: No module named zomatopy
In dialogue_data.py, I find this sentence: "if 'search_criteria' in utterance['utterance']:"(line 161).
However, in the data provided by Amrita Saha, utterance['utterance'] doesn't contain the key 'search_criteria' or 'compulsory_fields'. Moreover, I have run the script and find there is nothing in "train_search_criteria.txt".
Thank you in advance.
There are some issues in data processing:
mmd/data
├── dataset
├── v1
│ ├── test
│ ├── train
│ └── valid
└── v2
├── test
├── train
└── valid
But when I run dialogue_data.sh
, it didn't work. I looked at your code. I think we should fix at line 31.
export DATA_DIR=$PARENT_DIR/data/
--> export DATA_DIR=$PARENT_DIR/data/dataset/$DATA_VERSION
train_and_translate.sh
, at line 54, the default config is _v4
, but in your code, you wrote _v5
.Anw, thank you so much for pytorch version of MMD.
Thank you for sharing the code.
Can you tell me how much time training takes?
File "translate.py", line 105, in main
model = HRED(src_vocab_size=vocab_size,.....
NameError: global name 'HRED' is not defined
Did anyone else face the HRED issue?
What exactly does the annoy.ann file hold since it's almost 60GB on unzipping? Is it images or some text?
What exactly is the variable 'MAX_LEN'?
In train.py
method evaluate
, I find you use model.eval()
to disable dropout
. However, after evaluate
, I didn't find model.train()
to enable dropout
. It seems that once evaluate
called, dropout
will be disabled. Does this influence final performance?
Can you tell me what is a performance difference between config version 4 and config version 8 ?
Thanks in advance
I want to change image feature extractor from VGG-16 to Resnet 50 or something.
Thanks in advance.
I have downloaded the DATA Link, while training the model.
I have checked the directory, the directory contains only FileNameMapToIndex.pkl which is used as annoy_pkl_path. the file annoy.ann file is missing for which I got following error:
File "train.py", line 157, in main
annoyIndex.load(args.annoy_file_path)
IOError: [Errno 2] No such file or directory
I even checked the train_and_translate.sh in which file path is correct but there is no annoy.ann\
ANNOY_PATH = ${PWD}/data
ANNOY_FILE_PATH = $ANNOY_PATH/annoy.ann
Thanks for help in advance
Dear @shubhamagarwal92,
There are some compile errors:
I think you should re-run your code with all configurations to guarantee that your code works well.
Thank you so much for your supporting.
Traceback (most recent call last):
File "train.py", line 327, in
main(args)
File "train.py", line 154, in main
vocab = pkl.load(open(args.vocab_path,'rb'))[1]
IOError: [Errno 2] No such file or directory: '/home1/mauzama/Arunav/mmd_courteous_final/data/v2/dialogue_data//context_2__20//vocab.pkl'
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.