Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About the performance #28

Open
summer1030 opened this issue Apr 24, 2019 · 6 comments
Open

About the performance #28

summer1030 opened this issue Apr 24, 2019 · 6 comments

Comments

@summer1030
Copy link

No description provided.

@summer1030
Copy link
Author

I cannot get good performance on msr-vtt dataset. So i want to know the Bleu_4 you got on this dataset (vgg16 features without c3d features). I have tried different learning rate, dim_hidden, optimizer.... however, not i only get 31.13% . Thank you .

@GauravKrRoy
Copy link

Hi @summer1030 I got ValueError: not enough values to unpack (expected 3, got 2) while running train.py.
Details are:

Traceback (most recent call last):
File "train.py", line 133, in
main(opt)
File "train.py", line 120, in main
train(dataloader, model, crit, optimizer, exp_lr_scheduler, opt, rl_crit)
File "train.py", line 40, in train
seq_probs, _ = model(fc_feats, labels, 'train')
File "/home/pg2018/cse/18071003/.conda/envs/env_name/lib/python3.7/site-packages/torch/nn/modules/module.py", line 493, in call
result = self.forward(*input, **kwargs)
File "/home/pg2018/cse/18071003/video-captioning/models/S2VTModel.py", line 34, in forward
batch_size, n_frames, _ = vid_feats.shape
ValueError: not enough values to unpack (expected 3, got 2)
(env_name) [18071003@master video-captioning]$ ValueError: n

@piperino11
Copy link

Msr vtt dataset have 10000 videos and 20 captions for each video but in this implementation only a video-caption pair for each example in train phase is considered. Therefore in total <= 10000 example for train.
someone has seen the same thing????
has anyone changed the code?

@Sciroccogti
Copy link

Our result is even worse...Bleu_4 is only 18%.

@150104010139
Copy link

Hi @summer1030 I got ValueError:

Traceback (most recent call last):
File "prepro_vocab.py", line 85, in
main(params)
File "prepro_vocab.py", line 43, in main
videos = json.load(open(params['input_json'], 'r'))['sentences']
File "/home/usr2/anaconda2/envs/wcx/lib/python3.6/json/init.py", line 299, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/home/usr2/anaconda2/envs/wcx/lib/python3.6/json/init.py", line 354, in loads
return _default_decoder.decode(s)
File "/home/usr2/anaconda2/envs/wcx/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/home/usr2/anaconda2/envs/wcx/lib/python3.6/json/decoder.py", line 355, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 11 column 20 (char 296)

@baiyunfan123
Copy link

when i run:python train.py --gpu 0 --epochs 3001 --batch_size 300 --checkpoint_path data/save --feats_dir data/feats/resnet152 --model S2VTAttModel --dim_vid 4096
it will error:
RuntimeError: size mismatch, m1: [12000 x 2048], m2: [4096 x 512] at C:/w/1/s/tmp_conda_3.7_055457/conda/conda-bld/pytorch_1565416617654/work/atenc\THC/generic/THCTensorMathBlas.cu:
273
How do you solve this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants