visinf / cos-cvae Goto Github PK
View Code? Open in Web Editor NEWDiverse Image Captioning with Context-Object Split Latent Spaces (NeurIPS 2020)
License: Apache License 2.0
Diverse Image Captioning with Context-Object Split Latent Spaces (NeurIPS 2020)
License: Apache License 2.0
Hi,
Thank you for your source code!
I wonder what the role of eval_diversity.py is, since there are no diversity metrics, like novel words, new sentences in the file. So what is the difference between eval.py and eval_diversity.py?
Thank you
Ryan.
Hi,
Thank you for your code! It seems the function of beam search does not end the sentence when it meets the token, causing the sentences by beam search (e.g. BS=5) not to be different from each other. Could you check it again? And by the way, could you add DBS in the reference stage?
Thank you
I'm sorry to bother you, but I can not find the code for Unique and Novel, can U show me where the code is? Thank U so much
Thanks in advance for your reply
Traceback (most recent call last):
File "train_noc.py", line 186, in
for data in train_bar:
File "/home/tuxiangsuo1502/miniconda3/envs/hjl/lib/python3.7/site-packages/tqdm/std.py", line 1178, in iter
for obj in iterable:
File "/home/tuxiangsuo1502/miniconda3/envs/hjl/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 521, in next
data = self._next_data()
File "/home/tuxiangsuo1502/miniconda3/envs/hjl/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 1203, in _next_data
return self._process_data(data)
File "/home/tuxiangsuo1502/miniconda3/envs/hjl/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 1229, in _process_data
data.reraise()
File "/home/tuxiangsuo1502/miniconda3/envs/hjl/lib/python3.7/site-packages/torch/_utils.py", line 434, in reraise
raise exception
KeyError: Caught KeyError in DataLoader worker process 0.
Original Traceback (most recent call last):
File "/home/tuxiangsuo1502/miniconda3/envs/hjl/lib/python3.7/site-packages/torch/utils/data/_utils/worker.py", line 287, in _worker_loop
data = fetcher.fetch(index)
File "/home/tuxiangsuo1502/miniconda3/envs/hjl/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 49, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/home/tuxiangsuo1502/miniconda3/envs/hjl/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 49, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/data/txs/hjl/coscvae/modules/data_loader_noc.py", line 263, in getitem
caps = self.inv_annotations[str(image_idx)]
KeyError: "b'262146'"
How can it run normally? 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.