-
Notifications
You must be signed in to change notification settings - Fork 420
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
词嵌入问题 #197
Comments
One hot. 如果要glove的话就先对每个词提取好glove festure,然后变成一个tensor,然后在定义embedding layer之后直接把embedding layer的weight assign城glove Ruotian LuoOn Mar 28, 2024, at 8:14 AM, Githubdzp ***@***.***> wrote:
您好,请问您使用的是one-hot编码还是GloVe词嵌入,怎么修改这一部分,本人小白
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
我现在看到一篇论文的源码是用您的改的,用的glove,就是一个npy文件,但是不知道怎么改成one hot做消融,也是一个npy文件吗?
…---- 回复的原邮件 ----
| 发件人 | Ruotian(RT) ***@***.***> |
| 日期 | 2024年03月29日 03:17 |
| 收件人 | ***@***.***> |
| 抄送至 | ***@***.***>***@***.***> |
| 主题 | Re: [ruotianluo/ImageCaptioning.pytorch] 词嵌入问题 (Issue #197) |
One hot. 如果要glove的话就先对每个词提取好glove festure,然后变成一个tensor,然后在定义embedding layer之后直接把embedding layer的weight assign城glove Ruotian LuoOn Mar 28, 2024, at 8:14 AM, Githubdzp ***@***.***> wrote:
您好,请问您使用的是one-hot编码还是GloVe词嵌入,怎么修改这一部分,本人小白
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
你看这里不是有一个embedding layer: https://github.com/ruotianluo/ImageCaptioning.pytorch/blob/master/captioning/models/AttModel.py#L74 |
好的,我尝试一下,谢谢您
在 2024-03-31 15:21:18,"Ruotian(RT) Luo" ***@***.***> 写道:
你看这里不是有一个embedding layer: https://github.com/ruotianluo/ImageCaptioning.pytorch/blob/master/captioning/models/AttModel.py#L74
你就把他的weight改掉。但是要确保vocab是一样的才行
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
不好意思,又来麻烦您了,这个训练是交叉熵训练30个epoch,然后scst强化学习训练30个epoch,但是我把epoch改成1之后,交叉熵训练1次,强化学习已经超过一次了,而且强化学习训练一个epoch大概三个小时
…---- 回复的原邮件 ----
| 发件人 | Ruotian(RT) ***@***.***> |
| 日期 | 2024年03月31日 15:21 |
| 收件人 | ***@***.***> |
| 抄送至 | ***@***.***>***@***.***> |
| 主题 | Re: [ruotianluo/ImageCaptioning.pytorch] 词嵌入问题 (Issue #197) |
你看这里不是有一个embedding layer: https://github.com/ruotianluo/ImageCaptioning.pytorch/blob/master/captioning/models/AttModel.py#L74
你就把他的weight改掉。但是要确保vocab是一样的才行
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
您好,请问您使用的是one-hot编码还是GloVe词嵌入,怎么修改这一部分,本人小白
The text was updated successfully, but these errors were encountered: