-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image caption network #1613
Comments
您把整个repo贴上来了,要是贴文件的某一行会比较方便大家理解您的意思。 我猜测一下,是说需要输入one hot vector sequence吗?请参考这个教程:http://book.paddlepaddle.org/machine_translation/ src_word_id = paddle.layer.data(
name='source_language_word',
type=paddle.data_type.integer_value_sequence(source_dict_dim)) 以上代码定义了one hot vector sequence的输入层(其实不是one hot vector的序列了,只需要传one hot vector index的序列,就是一个整形的序列)。代码里source_dict_dim代表序列中每个整型的范围[0, source_dict_dim) |
谢谢 @helinwang
...
归纳一下,就是想用Paddle实现这个网络结构:https://github.com/tensorflow/models/blob/master/im2txt/g3doc/show_and_tell_architecture.png |
说明输入必须是一个序列数据。 |
数据可以使用 dense_vector_sequence 类型,数据格式可以参考: http://www.paddlepaddle.org/doc_cn/ui/data_provider/pydataprovider2.html#input-types , DataProvider里yield一条样本的数据格式为: [[f, ...], [f, ...], ...], 其中 [f, ...] 为一个时间步~ |
refer to #2641 pls. |
想实现 show and tell paper的网络结构,参考了tensorflow的code:https://github.com/tensorflow/models/tree/master/im2txt/im2txt,
但不是太明白如何在paddle中实现第0步输入图像特征,后续为one hot,调用哪个api?
此类benchmark 模型 paddle有sample code吗?
The text was updated successfully, but these errors were encountered: