njucckevin / knowcap Goto Github PK
View Code? Open in Web Editor NEWCode for Beyond Generic: Enhancing Image Captioning with Real-World Knowledge using Vision-Language Pre-Training Model
Code for Beyond Generic: Enhancing Image Captioning with Real-World Knowledge using Vision-Language Pre-Training Model
There has been a problem when i try to reproduce the results, i cannot import GitConfig, GitVisionConfig from transformers.models.git.configuration_git. I cannot import OFATokenizer from transformers.models.ofa.tokenization_ofa in test_knowcao.py too. I have tried with 4.30.2 and 4.35.2. I wanna know that which version can be used to run the code. I would appreciate for your answer.
I've tried a lot of methods but can't install the 4.28.0.dev0 version of transformers, can you provide an installation method, thank you very much
Traceback (most recent call last):
File "train_multitask.py", line 228, in
pycoco_results = eval_pycoco(config, gen_pycoco_path, 'val')
File "/home/tuxiangsuo1502/KnowCap/utils/eval.py", line 80, in eval_pycoco
cocoEval = COCOEvalCap('diy', 'diy')
File "/home/tuxiangsuo1502/miniconda3/envs/hjl/lib/python3.7/site-packages/pycocoevalcap/eval.py", line 17, in init
self.params = {'image_id': coco.getImgIds()}
AttributeError: 'str' object has no attribute 'getImgIds
Do you have any clue when I encountered the above problems while starting training from scratch Thank you in advance for your reply
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.