PyTorch 千年生态系统评估的实施 https//arxiv.org/abs/21111.06377
□ Masked 自动编码器: PyTorch 执行
<p对齐="中心">
(中文(简体) ).这是 PyTorch / GPU 重新执行 [ Masked Autoencoders Are Scaleable Vision Learningers] (https://arxiv.org/abs/2111.06377):
(原始内容存档于2019-09-29) (英语). ``` @Article{MaskedAutoencoders2021, author = {Kaiming He and Xinlei Chen and Saining Xie and Yanghao Li and Piotr Doll{'a}r and Ross Girshick}, journal = {arXiv:2111.06377}, title = {Masked Autoencoders Are Scalable Vision Learners}, year = {2021}, }
* 最初的执行是在TensorFlow+TPU。 这种再执行在PyTorch+GPU中.
* 此还原是[Deit repo] (ZZURL1Z)上的一个修改. 安装和准备跟随回收。
* 此回购基于[`timm =0.3.2' (https://github.com/rwightman/pytorch-image-models),为此需要有一个[fix] (https://github.com/rwightman/pytorch-image-models/issues/420#issuecomment-776459842)与PyTorch 1.8.1+合作.
QQ 目录
- [x] 可视化演示
- [x] 训练有素的检查站+微调码
- [x] 培训前守则
视化演示
使用 [Colab笔记本] (https://colab.research.google.com/github/facebookresearch/mae/blob/main/demo/mae_visualize.ipynb) 运行交互可视化演示(不需要GPU):
<p对齐="中心">
</p> (中文(简体) ).
* 调整预先训练的检查站
下表提供纸上使用的由TF/TPU转换为PT/GPU的预训检查站:
< table-tbody> (表单)
<th valign="下方"\\\\\\\\\\\\\\ >
<th valign="下方">ViT-Base</th>
<th valign="下" > ViT- Large </th>
<th valign="下" > ViT-Huge </th>
<tr><td对齐="左">训练前检查站</td>
<td对齐="中枢""><a href="https://dl.fbaipublicfiles.com/mae/pretrain/mae_pretrain_vit_base.pth">download</a></td>"
<td对齐="中心""><a href="https://dl.fbaipublicfiles.com/mae/pretrain/mae_pretrain_vit_large.pth">download</a></td>
<td对齐="中枢""><a href="https://dl.fbaipublicfiles.com/mae/pretrain/mae_pretrain_vit_huge.pth">download</a></td>
</tr> (法语)
<tr><td对齐="左">md5</td>
<td对齐="中心" +><tt > 8cad7c </tt></td>
<td 校正="中心">><tt>b8b06e</tt></td>
<td对齐="中心"\\ttt>9bdb0 </tt\/td>
</tr> (法语)
</tbody></表 >
微调一TypeError: __init__() 收到一个意外的关键字参数 'qk_scale'
使用您自己的预训练模型进行下游分割
pos_embed 中的命名混乱
MAE 在 HuggingFace Transformers 中可用(支持 PyTorch 和 TF)
patchify 和 unpatchify
由于 param groups 中缺少 lr 参数,因此未正确应用分层式学习率衰减 (lrd)
Colab 执行不成功
掩码令牌是共享的
自定义遮罩
可视化结果是否正常?