markdtw / soft-attention-image-captioning Goto Github PK
View Code? Open in Web Editor NEWtensorflow implementation of show, attend and tell (ICML'15)
tensorflow implementation of show, attend and tell (ICML'15)
Thank you for your code which is really helpful for my learning.
In the function that calculates the cross-entropy loss over a candidate sentence, what is the purpose of the variable "mask_ph"? The loss tensor is raised to the power of mask_ph, and afterwards divided by the sum of mask_ph.
Best wishes
James
Download and extract pre-trained Inception V4 and VGG 19 from tf.slim for feature extraction.
Save the ckpt files in cnns/ as inception_v4_imagenet.ckpt and vgg_19_imagenet.ckpt.
Thank you for the great implementation.
Is there a pre-trained model available for the captioner?
Thanks again!
As the title suggest, I am getting a MemoryError when trying to save the features in extract_all.
I have an i7-6402p, gtx 1060gb, and 8gb of ram. The next question might be silly, as I am just a beginner.
I was running utils.py with tensorflow on the gpu. I am assuming the RAM memory is used when saving the features. As such, if I were to run utils.py with tensorflow on the CPU, am I correct to say that I would get the same error when attempting to save the file ?
I should mention that on the GPU I do receive some notification / errors, which do not show up on the cpu.
How could I fix this issue ? Would it be possible for you to share the npy file ?
Thank you for your time and I await your response.
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.