cooelf / UVR-NMT

Neural Machine Translation with universal Visual Representation (ICLR 2020)
https://openreview.net/forum?id=Byl8hhNYPS
87 stars 21 forks source link

unrecognized arguments when running 'python train.py' #4

Closed zhangliang-04 closed 3 years ago

zhangliang-04 commented 4 years ago

train.py: error: unrecognized arguments: --cap2image_file data/cap2image_en2de.pickle --image_embedding_file features_resnet50/train-resnet50-avgpool.npy

PengboLiu commented 4 years ago

你后来解决了嘛?遇到了同样的问题。

cooelf commented 4 years ago

Have you installed the repo?

pip install --editable ./

Poeroz commented 4 years ago

Have you installed the repo?

pip install --editable ./

Hi. I have tried this command but it doesn't seem to work. Could you give me some other advices?

Poeroz commented 4 years ago

I checked the UVR-NMT/fairseq/options.py, but did not find --cap2image_file and --image_embedding_file defined. Maybe there exist some bugs?

mrzhang11 commented 3 years ago

I solved this issue by:

In "fairseq/models/transformer.py", uncomment the two lines: parser.add_argument('--cap2image_file', type=str, metavar='STR', help='cap2image_file')
parser.add_argument('--image_embedding_file', type=str, metavar='STR', help='image_embedding_file')