Skip to content

【开源实习】BEiT模型应用开发 #1680

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

Merged
merged 4 commits into from
Nov 15, 2024

Conversation

somecatw
Copy link
Contributor

完成了 https://gitee.com/mindspore/community/issues/IAAD9U 对应的任务:Beit 模型应用开发。
原始代码仓中最后多出的部分仅为在单个代码单元中运行了所有代码,故在此略去。

@lvyufeng
Copy link
Collaborator

附一下pytorch的结果截图和MindSpore的结果截图对比

@somecatw
Copy link
Contributor Author

somecatw commented Oct 11, 2024

附一下pytorch的结果截图和MindSpore的结果截图对比

MindSpore 结果:
MindSpore 结果

pytorch 结果:
pytorch 结果

@lvyufeng lvyufeng force-pushed the master branch 2 times, most recently from 5a74091 to f52a716 Compare October 14, 2024 07:16
@cui0523
Copy link
Contributor

cui0523 commented Oct 17, 2024

notebook文件名修改成英文

@cui0523
Copy link
Contributor

cui0523 commented Oct 17, 2024

20241017-144046(WeLinkPC)

这部分应用代码也完成迁移

@cui0523
Copy link
Contributor

cui0523 commented Oct 17, 2024

20241017-143629(WeLinkPC)

标注出来的部分可以直接修改成 return_tensors=“ms”

@cui0523
Copy link
Contributor

cui0523 commented Oct 17, 2024

20241017-144032(WeLinkPC)
20241017-144038(WeLinkPC)

提交notebook文件中的运行结果labels.shape与pytorch中不一致

@somecatw
Copy link
Contributor Author

notebook文件名修改成英文

老师您好,您指出的问题已经全部修改完成(包括修改文件名、补充剩余部分、修改 return_tensors)

label.shape 受到 mask 生成的随机性影响,不一定每次都相同,已标注在 notebook 中

@cui0523
Copy link
Contributor

cui0523 commented Oct 18, 2024

return_tensors 没有完成修改

@cui0523
Copy link
Contributor

cui0523 commented Oct 18, 2024

华为云创建的AI Gallery中的内容也需要同步需改

@somecatw
Copy link
Contributor Author

华为云创建的AI Gallery中的内容也需要同步需改

老师您好,已完成修改

@cui0523
Copy link
Contributor

cui0523 commented Oct 21, 2024

验收通过,可以合入

@lvyufeng lvyufeng merged commit e34d223 into mindspore-lab:master Nov 15, 2024
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

Successfully merging this pull request may close these issues.

3 participants