Comments (4)
Thanks for your attention!
I will check the results and get back to you soon.
from mkg_analogy.
Hi,
We find that setting g_ea=0
and g_ae=1
(equation 4 in paper) helpsft_mart_mkgformer.ckpt
most, so you can modify this part (link) to the following code and do test:
# features['sep_idx'] = torch.tensor(sep_idx)
features['attention_mask'] = features['attention_mask'].unsqueeze(1).expand([features['input_ids'].size(0), features['input_ids'].size(1), features['input_ids'].size(1)]).clone()
for i, idx in enumerate(sep_idx):
features['attention_mask'][i, :idx[2], idx[2]:] = 0
But fine-tuning these two gates can approximate this result, as you said, fine-tuning can reach 0.4001.
from mkg_analogy.
Thanks for your reply.
I've tried the above methods,test more models and read "Issue#9".Maybe I should try more Hyperparameters.
To summarize my experiments:
-
the above method did works (hits@10: 0.3289 to 0.3319)but still worse than the results in the paper(0.408).I have summarized three questions.
-
In my enviroments,your checkpoints often perform poorly even only half such as "ft_mart_mkgformer.ckpt" ,"ft_mart_mkgformer.ckpt " and "pretrain_vilt.ckpt"
What's the possible reason?Hardware,library version,datasets or others?
and there are maybe some bugs:
- In "encode_images_data.py", when processor_name = 'vilt', "entity2visual = torch.cat(entity2visual, dim=0)" may cause out of system memory(24GB).
- in "modeling_vilt.py" line 844, when pretraining, " sep_idx += img_length" turns into "None += int"
- in "modeling_vilt.py" line 183,"select" and "patch_index" seems to be stored on different device.
- some scripts and checkpoints seem to be missing.
from mkg_analogy.
hi, have you solved the issues? we have fixed some bugs and you can pull the code.
from mkg_analogy.
Related Issues (20)
- error HOT 1
- environment problem HOT 2
- Lack of pickle files HOT 1
- Image path problem HOT 4
- KeyError:'label' HOT 8
- NameError: name 'entity2visual_features' is not defined HOT 3
- Lower results HOT 2
- 进程已结束,退出代码为 132 (interrupted by signal 4:SIGILL) HOT 2
- 在IKRL.py中的代码问题 HOT 2
- 运行IKRL.py出现问题 HOT 1
- 运行TransAE.py出现的问题 HOT 2
- error HOT 1
- 预训练和微调 HOT 7
- fine-tune error HOT 6
- Unable to download the data from Google Drive HOT 1
- Enviromental problem HOT 2
- Requirements issue HOT 4
- environment problem HOT 12
- Reproduce paper accuracy HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mkg_analogy.