Skip to content
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

图像描述 训练 #18

Open
249001762 opened this issue Nov 20, 2023 · 2 comments
Open

图像描述 训练 #18

249001762 opened this issue Nov 20, 2023 · 2 comments

Comments

@249001762
Copy link

您好,大佬,请教 example_train_seq2seq.py 中的训练数据问题,
src_max_len = max(len(x["src"]) for x in batch_data)
trg_max_len = max(len(x["trg"]) - 1 for x in batch_data)
我可以在图像描述的训练中使用它吗。src指向到图片地址,然后自己写解析src代码。感谢任何回复

@yaoxiaoyuan
Copy link
Owner

@249001762
Copy link
Author

感谢您!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants