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

transformer_nsc #277

Open
bai-24 opened this issue Nov 3, 2022 · 13 comments
Open

transformer_nsc #277

bai-24 opened this issue Nov 3, 2022 · 13 comments

Comments

@bai-24
Copy link

bai-24 commented Nov 3, 2022

你好,我在运行transformer_nsc.yml时,碰到以下问题,请问怎么解决?
Hugginface transformers not installed; please visit https://github.com/huggingface/transformers
meshed-memory-transformer not installed; please run pip install git+https://github.com/ruotianluo/meshed-memory-transformer.git
Warning: coco-caption not available

@ruotianluo
Copy link
Owner

无视就可以了

@bai-24
Copy link
Author

bai-24 commented Nov 4, 2022

好的, 感谢,请问要训练transformer+nsc的话,直接运行transformer_nsc.yml就可以了吗?还是有什么先后顺序?

@ruotianluo
Copy link
Owner

应该还是要先用transformer.yml,然后再到nsc

@bai-24
Copy link
Author

bai-24 commented Nov 10, 2022

你好,请问用transformer.yml训练完后,不小心关了界面,Bleu、Meteor、Rouge等评价指标在哪里可以看见呢

@ruotianluo
Copy link
Owner

Tensorboard

@bai-24
Copy link
Author

bai-24 commented Nov 21, 2022

请问在生成图像描述时,出现以下错误,有什么解决办法吗?
Traceback (most recent call last):
File "tools/eval.py", line 77, in
lang_stats = eval_utils.language_eval(opt.input_json, predictions, n_predictions, vars(opt), opt.split)
File "g:\self-critical.pytorch\captioning\utils\eval_utils.py", line 80, in language_eval
mean_perplexity = sum([_['perplexity'] for _ in preds_filt]) / len(preds_filt)
ZeroDivisionError: division by zero

@ruotianluo
Copy link
Owner

command是什么

@bai-24
Copy link
Author

bai-24 commented Nov 22, 2022

输入为:python tools/eval.py --model log_fc_nsc/model-best.pth --infos_path log_fc_nsc/infos_fc_nsc-best.pkl --image_folder blah --num_images 10

@ruotianluo
Copy link
Owner

大多数pretrained 模型不支持任意图片的captioning,如果你想试任意图片,可以用readme里面的colab

@bai-24
Copy link
Author

bai-24 commented Nov 29, 2022 via email

@ruotianluo
Copy link
Owner

@bai-24
Copy link
Author

bai-24 commented Jan 16, 2023

请问transformer训练时,可以使用Resnet101 feature吗?

@ruotianluo
Copy link
Owner

ruotianluo commented Jan 16, 2023 via email

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

2 participants