shubhamagarwal92 / mmd

This repository contains the Pytorch implementation for our SCAI (EMNLP-2018) submission "A Knowledge-Grounded Multimodal Search-Based Conversational Agent"
29 stars 5 forks source link

Global name HRED is not defined in translate.py #13

Closed Shandilya21 closed 5 years ago

Shandilya21 commented 5 years ago

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

shubhamagarwal92 commented 5 years ago

In relation to PR #10.

@githwd2016 could you confirm if this is related to imports

Should it be then:

from mmd.modules.models import *
Shandilya21 commented 5 years ago

Hi, Initially it was commented out. But i uncommented it and run the train_and_translate for 1 epochs, should i need change to

Thanks