catr:使用Transformer的图像字幕-源码

上传者: 42130786 | 上传时间: 2021-09-05 21:26:26 | 文件大小: 3.01MB | 文件类型: ZIP
CA⫶TR :带有变压器的图像字幕 针对CATR的PyTorch培训代码和预训练模型( CA ption TR ansformer)。 也可以通过割炬轮毂使用这些模型,以简单地加载具有预训练砝码的模型: model = torch . hub . load ( 'saahiluppal/catr' , 'v3' , pretrained = True ) # you can choose between v1, v2 and v3 样品: 所有这些图像均已由CATR注释。 使用您自己的图像进行测试: $ python predict.py --path /path/to/image --v v2 // You can choose between v1, v2, v3 [default is v3] 或在colab中试用 用法 CATR中没有多余的已编译组件,并且程序包依赖

文件下载

资源详情

[{"title":"( 26 个子文件 3.01MB ) catr:使用Transformer的图像字幕-源码","children":[{"title":"catr-master","children":[{"title":"engine.py <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false},{"title":".github","children":[{"title":"airplane.png <span style='color:#111;'> 470.46KB </span>","children":null,"spread":false},{"title":"horse.png <span style='color:#111;'> 569.32KB </span>","children":null,"spread":false},{"title":"office.png <span style='color:#111;'> 506.51KB </span>","children":null,"spread":false},{"title":"cake.png <span style='color:#111;'> 580.89KB </span>","children":null,"spread":false},{"title":"cruise.png <span style='color:#111;'> 504.16KB </span>","children":null,"spread":false},{"title":"girl.png <span style='color:#111;'> 424.71KB </span>","children":null,"spread":false}],"spread":true},{"title":"models","children":[{"title":"backbone.py <span style='color:#111;'> 4.31KB </span>","children":null,"spread":false},{"title":"caption.py <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false},{"title":"utils.py <span style='color:#111;'> 2.23KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"position_encoding.py <span style='color:#111;'> 3.21KB </span>","children":null,"spread":false},{"title":"transformer.py <span style='color:#111;'> 13.29KB </span>","children":null,"spread":false}],"spread":true},{"title":"hubconf.py <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"configuration.py <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"main.py <span style='color:#111;'> 3.00KB </span>","children":null,"spread":false},{"title":"requirements.txt <span style='color:#111;'> 41B </span>","children":null,"spread":false},{"title":"predict.py <span style='color:#111;'> 2.05KB </span>","children":null,"spread":false},{"title":"datasets","children":[{"title":"utils.py <span style='color:#111;'> 1.69KB </span>","children":null,"spread":false},{"title":"coco.py <span style='color:#111;'> 3.65KB </span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'> 0B </span>","children":null,"spread":false}],"spread":true},{"title":"finetune.py <span style='color:#111;'> 3.32KB </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 11.09KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 2.37KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 2.01KB </span>","children":null,"spread":false},{"title":"catr_demo.ipynb <span style='color:#111;'> 24.60KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明