vegb / inlg Goto Github PK
View Code? Open in Web Editor NEWImplementation of "Visualize Before You Write: Imagination-Guided Open-Ended Text Generation".
License: Apache License 2.0
Implementation of "Visualize Before You Write: Imagination-Guided Open-Ended Text Generation".
License: Apache License 2.0
Hi, I found the code may be wrong.
Line 134 in 96800ea
First, if self
does not have an attribute _max_length
, directly calling self._max_length
leads to an error.
So, I changed it to hasattr(self, '_max_length')
.
After that I found this condition always goes to the else option, so the max_length
will be model.config.max_length
, which equals 20 by default. I think it should args.max_output_length
, or it may cause a truncation when the task is story generation.
Thanks for contributing such interesting and meaningful work!
Your codes work great, and I wonder how I can use the code for my own dataset. I noticed you have processed vitb32.hdf5
for each dataset, which contains a 512-dimensional ViT feature for each image. So could you give some official instructions to create a vitb32.hdf5
for my own dataset?
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.