Adaptive icon indicating copy to clipboard operation
Adaptive copied to clipboard

Pytorch Implementation of Knowing When to Look: Adaptive Attention via A Visual Sentinel for Image Captioning

Results 14 Adaptive issues
Sort by recently updated
recently updated
newest added

import argparse from PIL import Image import torch import matplotlib.pyplot as plt import numpy as np import cv2 import pickle from utils import CocoEvalLoader, to_var, show_images from adaptive import Encoder2Decoder...

Could you please upload a example script?

could you tell me how to test ?

please help me how to find accuracy for each epochs ? Is their any code ? Its showing Cross Entropy Loss value and Perplexity value in the training !!

Could please tell me how to solve this runtime error ? Tensor flow dimension ![Capturek](https://user-images.githubusercontent.com/61927056/111271999-0390d700-8658-11eb-91a6-3f1465577b0a.JPG)

Thanks for your work on this pytorch version of 'knowing when to look'. Can you public the pre-trained model?

Traceback (most recent call last): File "train.py", line 9, in from utils import coco_eval, to_var File "/data/DATA_DIR/utils.py", line 12, in from coco.pycocoevalcap.eval import COCOEvalCap File "/data/DATA_DIR/coco/pycocoevalcap/eval.py", line 3, in from...

Hi, this is the best project, but when i use the train.py the error occurs. Here is the error RuntimeError: matrix and matrix expected at /opt/conda/conda-bld/pytorch_1501971235237/work/pytorch-0.1.12/torch/lib/THC/generic/THCTensorMathBlas.cu:237 My pytorch version is...

Hi, first of all thank you for the great repo! I noticed that you are using different tokenizers for the training data - `nltk.tokenize.word_tokenize` in `build_vocab.py` - and the validation...

Hi, I am training your model with MSCOCO dataset, and validating with Flickr validation data. After 2nd epoch, I started to have results like; "A yellow train", "A small bus",...