Code Monkey home page Code Monkey logo

hrem's People

Contributors

crossmodalgroup avatar darkpromise98 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

hrem's Issues

Question Neighbor Batch Sampling

Hi, I would like to enquire about the part of Neighbor Batch Sampling mentioned in the paper which seems to be missing from the code, can you tell why?

Questions about the code sequence

HREM/lib/mca.py

Line 224 in d3c8298

batch_sim_t2t = torch.matmul(cap_emb, img_emb.t())

HREM/lib/mca.py

Line 225 in d3c8298

batch_sim_i2i = torch.matmul(img_emb, cap_emb.t())

Hi @darkpromise98 , I notice this part in your paper is presented as follows:
image
I think your code I pinned on the top does not match with the paper. Should it correctly be as follows?

batch_sim_t2t = torch.matmul(cap_emb, cap_emb.t())
batch_sim_i2i = torch.matmul(img_emb, img_emb.t())

Relation Interaction Mechanism

It seems like in this code repository, you've only implemented the Fusion mechanism architecture and there's no standalone mechanism, right?
image

关于mscoco数据集

你好,我在用mscoco数据集上运行train.py时,出现下面这个报错,请问是下载的数据格式不一样吗?难道网上公开的数据集格式不一样吗
Traceback (most recent call last):
File "/home/ubuntu/mydata2/ZFolder/HREM-main/train.py", line 282, in
main()
File "/home/ubuntu/mydata2/ZFolder/HREM-main/train.py", line 60, in main
train_loader = image_caption.get_train_loader(opt.data_path, tokenizer, opt.batch_size, opt.workers, opt)
File "/home/ubuntu/mydata2/ZFolder/HREM-main/lib/image_caption.py", line 184, in get_train_loader
train_loader = get_loader(data_path, 'train', tokenizer, opt, batch_size, True, workers, train=True)
File "/home/ubuntu/mydata2/ZFolder/HREM-main/lib/image_caption.py", line 169, in get_loader
dset = PrecompRegionDataset(data_path, data_split, tokenizer, opt, train)
File "/home/ubuntu/mydata2/ZFolder/HREM-main/lib/image_caption.py", line 27, in init
self.images = np.load(os.path.join(loc, '%s_ims.npy' % data_split))
File "/home/ubuntu/.local/lib/python3.9/site-packages/numpy/lib/npyio.py", line 413, in load
return format.read_array(fid, allow_pickle=allow_pickle,
File "/home/ubuntu/.local/lib/python3.9/site-packages/numpy/lib/format.py", line 785, in read_array
array.shape = shape
ValueError: cannot reshape array of size 699775200 into shape (113287,36,2048)

运行空间

你好,请问这个项目训练和评估大概需要占用多大的空间?

flickr30k: id_mapping.json

Hello, I only found coco's id_mapping.json in the downloaded dataset, do you have flickr's id_mapping.json?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.