{"id":65665,"date":"2026-01-25T15:08:49","date_gmt":"2026-01-25T07:08:49","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/65665.html"},"modified":"2026-01-25T15:08:49","modified_gmt":"2026-01-25T07:08:49","slug":"yolo%e7%b3%bb%e5%88%97%e7%ae%97%e6%b3%95%e6%94%b9%e8%bf%9b-c3k2%e6%94%b9%e8%bf%9b%e7%af%87-%e8%9e%8d%e5%90%88cbsa%e6%94%b6%e7%bc%a9-%e5%b9%bf%e6%92%ad%e8%87%aa%e6%b3%a8%e6%84%8f%e5%8a%9b","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/65665.html","title":{"rendered":"YOLO\u7cfb\u5217\u7b97\u6cd5\u6539\u8fdb | C3k2\u6539\u8fdb\u7bc7 | \u878d\u5408CBSA\u6536\u7f29-\u5e7f\u64ad\u81ea\u6ce8\u610f\u529b | \u8f7b\u91cf\u7ea7\u8bbe\u8ba1\u5b9e\u73b0\u9ad8\u6548\u7279\u5f81\u538b\u7f29\u4f18\u5316\u5904\u7406\u6548\u7387"},"content":{"rendered":"<h2 id=\"0.%20%E5%89%8D%E8%A8%80\">0. \u524d\u8a00<\/h2>\n<p style=\"text-align:justify\">\u672c\u6587\u4ecb\u7ecdCBSA\u6536\u7f29 &#8211; \u5e7f\u64ad\u81ea\u6ce8\u610f\u529b\u673a\u5236&#xff08;Contract-and-Broadcast Self-Attention&#xff09;&#xff0c;\u5e76\u5c06\u5176\u96c6\u6210\u5230ultralytics\u6700\u65b0\u53d1\u5e03\u7684YOLO26\u76ee\u6807\u68c0\u6d4b\u7b97\u6cd5\u4e2d&#xff0c;\u6784\u5efaC3k2-LWGA\u521b\u65b0\u6a21\u5757\u3002\u4f20\u7edf\u6ce8\u610f\u529b\u673a\u5236\u5b58\u5728\u9ed1\u76d2\u96be\u7406\u89e3\u3001\u8ba1\u7b97\u590d\u6742\u5ea6\u9ad8\u7684\u95ee\u9898&#xff0c;CBSA\u901a\u8fc7\u7b97\u6cd5\u5c55\u5f00\u63a8\u5bfc\u51fa\u672c\u8d28\u4e0a\u53ef\u89e3\u91ca\u4e14\u9ad8\u6548\u7684\u6ce8\u610f\u529b\u673a\u5236\u3002\u5b83\u5148\u4ece\u8f93\u5165\u6570\u636e\u4e2d\u9009\u51fa\u5c11\u91cf\u4ee3\u8868\u6027tokens&#xff0c;\u63a5\u7740\u5bf9\u4ee3\u8868\u8fdb\u884c\u6536\u7f29\u8ba1\u7b97&#xff0c;\u518d\u5c06\u7ed3\u679c\u5e7f\u64ad\u7ed9\u6240\u6709\u539f\u59cb\u6570\u636e\u3002\u8be5\u673a\u5236\u8ba1\u7b97\u91cf\u7ebf\u6027\u589e\u957f&#xff0c;\u5177\u6709\u660e\u786e\u6570\u5b66\u89e3\u91ca&#xff0c;\u8fd8\u80fd\u7edf\u4e00\u591a\u79cd\u6ce8\u610f\u529b\u673a\u5236\u3002<\/p>\n<h2 style=\"text-align:justify\">1.\u00a0CBSA\u81ea\u6ce8\u610f\u529b\u673a\u5236\u7b80\u4ecb<\/h2>\n<p style=\"text-align:justify\">\u6ce8\u610f\u529b\u673a\u5236\u5728\u591a\u4e2a\u9886\u57df\u53d6\u5f97\u4e86\u663e\u8457\u7684\u5b9e\u8bc1\u6210\u529f&#xff0c;\u4f46\u5b83\u4eec\u7684\u57fa\u7840\u4f18\u5316\u76ee\u6807\u4ecd\u4e0d\u660e\u786e\u3002\u6b64\u5916&#xff0c;\u81ea\u6ce8\u610f\u529b\u7684\u4e8c\u6b21\u590d\u6742\u5ea6\u53d8\u5f97\u8d8a\u6765\u8d8a\u96be\u4ee5\u627f\u53d7\u3002\u867d\u7136\u53ef\u89e3\u91ca\u6027\u548c\u6548\u7387\u662f\u4e24\u4e2a\u76f8\u4e92\u4fc3\u8fdb\u7684\u8ffd\u6c42&#xff0c;\u4f46\u5148\u524d\u7684\u5de5\u4f5c\u901a\u5e38\u5206\u5f00\u7814\u7a76\u5b83\u4eec\u3002\u5728\u672c\u6587\u4e2d&#xff0c;\u6211\u4eec\u63d0\u51fa\u4e86\u4e00\u4e2a\u7edf\u4e00\u7684\u4f18\u5316\u76ee\u6807&#xff0c;\u901a\u8fc7\u7b97\u6cd5\u5c55\u5f00\u63a8\u5bfc\u51fa\u672c\u8d28\u4e0a\u53ef\u89e3\u91ca\u4e14\u9ad8\u6548\u7684\u6ce8\u610f\u529b\u673a\u5236\u3002\u5177\u4f53\u800c\u8a00&#xff0c;\u6211\u4eec\u6784\u5efa\u4e86\u6240\u63d0\u51fa\u76ee\u6807\u7684\u4e00\u4e2a\u68af\u5ea6\u6b65\u9aa4&#xff0c;\u5176\u4e2d\u5305\u542b\u6211\u4eec\u7684\u6536\u7f29-\u5e7f\u64ad\u81ea\u6ce8\u610f\u529b(CBSA)\u7684\u4e00\u7cfb\u5217\u524d\u5411\u4f20\u9012\u64cd\u4f5c&#xff0c;\u8be5\u673a\u5236\u901a\u8fc7\u6536\u7f29\u8f93\u5165\u6807\u8bb0\u7684\u5c11\u91cf\u4ee3\u8868\u6765\u5c06\u8f93\u5165\u6807\u8bb0\u538b\u7f29\u5230\u4f4e\u7ef4\u7ed3\u6784\u3002\u8fd9\u79cd\u65b0\u9896\u7684\u673a\u5236\u4e0d\u4ec5\u53ef\u4ee5\u901a\u8fc7\u56fa\u5b9a\u4ee3\u8868\u6570\u91cf\u6765\u5b9e\u73b0\u7ebf\u6027\u6269\u5c55&#xff0c;\u8fd8\u53ef\u4ee5\u5728\u4f7f\u7528\u4e0d\u540c\u4ee3\u8868\u96c6\u65f6\u6db5\u76d6\u5404\u79cd\u6ce8\u610f\u529b\u673a\u5236\u7684\u5b9e\u4f8b\u5316\u3002\u6211\u4eec\u8fdb\u884c\u4e86\u5e7f\u6cdb\u7684\u5b9e\u9a8c&#xff0c;\u8bc1\u660e\u4e86\u4e0e\u9ed1\u76d2\u6ce8\u610f\u529b\u673a\u5236\u76f8\u6bd4&#xff0c;\u5728\u89c6\u89c9\u4efb\u52a1\u4e0a\u5177\u6709\u53ef\u6bd4\u7684\u6027\u80fd\u548c\u4f18\u8d8a\u7684\u4f18\u52bf\u3002\u6211\u4eec\u7684\u5de5\u4f5c\u9610\u660e\u4e86\u53ef\u89e3\u91ca\u6027\u548c\u6548\u7387\u7684\u6574\u5408&#xff0c;\u4ee5\u53ca\u6ce8\u610f\u529b\u673a\u5236\u7684\u7edf\u4e00\u516c\u5f0f\u3002<\/p>\n<p style=\"text-align:justify\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"294\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260125070846-6975c17eb09e8.png\" width=\"705\" \/><\/p>\n<p>\u539f\u59cb\u8bba\u6587&#xff1a;https:\/\/arxiv.org\/pdf\/2509.16875<\/p>\n<p>\u539f\u59cb\u4ee3\u7801&#xff1a;https:\/\/github.com\/QishuaiWen\/CBSA<\/p>\n<\/p>\n<h2>2. \u57fa\u672c\u539f\u7406\u4e0e\u521b\u65b0\u70b9<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"708\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260125070847-6975c17f04bd0.png\" width=\"1255\" \/><\/p>\n<p>\u4e00\u3001\u6838\u5fc3\u5b9a\u4f4d&#xff1a;\u7ed9\u6ce8\u610f\u529b\u673a\u5236\u201c\u62c6\u9ed1\u76d2\u3001\u63d0\u901f\u5ea6\u3001\u505a\u7edf\u4e00\u201d<\/p>\n<p>\u4f20\u7edf\u6ce8\u610f\u529b\u673a\u5236&#xff08;\u6bd4\u5982Transformer\u91cc\u7684softmax\u6ce8\u610f\u529b&#xff09;\u6709\u4e24\u4e2a\u5927\u95ee\u9898&#xff1a;<\/p>\n<li>\u201c\u9ed1\u76d2\u96be\u7406\u89e3\u201d&#xff1a;\u6a21\u578b\u4e3a\u5565\u5173\u6ce8\u6570\u636e\u7684\u67d0\u4e2a\u90e8\u5206\u3001\u80cc\u540e\u7684\u51b3\u7b56\u903b\u8f91\u662f\u4ec0\u4e48&#xff0c;\u8bf4\u4e0d\u6e05\u695a&#xff1b;<\/li>\n<li>\u201c\u8ba1\u7b97\u592a\u7b28\u91cd\u201d&#xff1a;\u5904\u7406\u957f\u6570\u636e&#xff08;\u6bd4\u5982\u9ad8\u6e05\u56fe\u7684\u50cf\u7d20\u5757\u3001\u957f\u6587\u6863\u7684\u8bcd\u8bed&#xff09;\u65f6&#xff0c;\u8981\u7b97\u6240\u6709\u6570\u636e\u70b9\u4e4b\u95f4\u7684\u5173\u7cfb&#xff0c;\u6570\u636e\u8d8a\u957f&#xff0c;\u8ba1\u7b97\u91cf\u5448\u201c\u5e73\u65b9\u7ea7\u201d\u66b4\u6da8&#xff0c;\u5b9e\u9645\u7528\u8d77\u6765\u5f88\u5361\u3002<\/li>\n<p style=\"text-align:justify\">\u4e4b\u524d\u7684\u7814\u7a76\u8981\u4e48\u53ea\u89e3\u51b3\u201c\u7406\u89e3\u201d&#xff0c;\u8981\u4e48\u53ea\u89e3\u51b3\u201c\u901f\u5ea6\u201d&#xff0c;CBSA\u5219\u60f3\u4e00\u6b21\u6027\u641e\u5b9a\u2014\u2014\u65e2\u8ba9\u6ce8\u610f\u529b\u673a\u5236\u7684\u5de5\u4f5c\u8fc7\u7a0b\u201c\u8bf4\u5f97\u901a\u201d&#xff0c;\u53c8\u8ba9\u5b83\u201c\u8dd1\u5f97\u98de\u5feb\u201d&#xff0c;\u751a\u81f3\u8fd8\u80fd\u628a\u4e0d\u540c\u7c7b\u578b\u7684\u6ce8\u610f\u529b&#xff08;\u6bd4\u5982softmax\u6ce8\u610f\u529b\u3001\u7ebf\u6027\u6ce8\u610f\u529b&#xff09;\u7edf\u4e00\u6210\u4e00\u4e2a\u6846\u67b6\u3002<\/p>\n<p>\u4e8c\u3001\u8bbe\u8ba1\u903b\u8f91&#xff1a;\u201c\u6293\u5c11\u6570\u4ee3\u8868&#xff0c;\u641e\u5b9a\u6240\u6709\u6570\u636e\u201d<\/p>\n<p style=\"text-align:justify\">CBSA\u7684\u6838\u5fc3\u601d\u8def\u7279\u522b\u50cf\u201c\u8001\u5e08\u6279\u6539\u4f5c\u4e1a\u201d&#xff1a;\u4e0d\u7528\u9010\u9898\u770b\u6bcf\u4e2a\u5b66\u751f\u7684\u4f5c\u4e1a&#xff0c;\u5148\u6311\u51e0\u4e2a\u6709\u4ee3\u8868\u6027\u7684\u540c\u5b66&#xff08;\u6bd4\u5982\u4e2d\u7b49\u6c34\u5e73\u3001\u80fd\u53cd\u6620\u5168\u73ed\u5171\u6027\u95ee\u9898\u7684&#xff09;&#xff0c;\u53ea\u6279\u6539\u8fd9\u51e0\u4e2a\u201c\u4ee3\u8868\u201d\u7684\u4f5c\u4e1a&#xff0c;\u518d\u628a\u6279\u6539\u601d\u8def\u544a\u8bc9\u5168\u73ed&#xff0c;\u5927\u5bb6\u5404\u81ea\u4fee\u6b63\u3002\u5177\u4f53\u5206\u4e24\u6b65&#xff1a;<\/p>\n<li style=\"text-align:justify\">\u9009\u201c\u6570\u636e\u4ee3\u8868\u201d&#xff08;\u4ee3\u8868\u6027 tokens&#xff09;&#xff1a;\u4ece\u8f93\u5165\u6570\u636e&#xff08;\u6bd4\u5982\u56fe\u7247\u7684\u50cf\u7d20\u5757\u3001\u6587\u672c\u7684\u8bcd\u8bed&#xff09;\u91cc&#xff0c;\u901a\u8fc7\u7b80\u5355\u8ba1\u7b97\u6311\u51fa\u5c11\u91cf\u201c\u4ee3\u8868\u201d\u2014\u2014\u8fd9\u4e9b\u201c\u4ee3\u8868\u201d\u4e0d\u662f\u968f\u673a\u9009\u7684&#xff0c;\u800c\u662f\u80fd\u6293\u4f4f\u6570\u636e\u6838\u5fc3\u7279\u5f81\u7684&#xff08;\u7c7b\u4f3c\u805a\u7c7b\u91cc\u7684\u201c\u4e2d\u5fc3\u70b9\u201d&#xff0c;\u4f46\u4f1a\u52a8\u6001\u8c03\u6574&#xff09;\u3002\u6bd4\u5982\u5904\u7406\u4e00\u5f20\u9ad8\u6e05\u56fe\u65f6&#xff0c;\u4e0d\u7528\u5173\u6ce8\u6bcf\u4e00\u4e2a\u50cf\u7d20&#xff0c;\u800c\u662f\u5148\u9009\u51fa\u51e0\u5341\u4e2a\u80fd\u4ee3\u8868\u56fe\u7247\u5173\u952e\u533a\u57df&#xff08;\u6bd4\u5982\u7269\u4f53\u8fb9\u7f18\u3001\u7eb9\u7406&#xff09;\u7684\u201c\u50cf\u7d20\u4ee3\u8868\u201d\u3002<\/li>\n<li style=\"text-align:justify\">\u201c\u6536\u7f29\u4ee3\u8868&#043;\u5e7f\u64ad\u7ed3\u679c\u201d&#xff1a;\u6536\u7f29\u4ee3\u8868&#xff1a;\u53ea\u5bf9\u8fd9\u51e0\u4e2a\u201c\u4ee3\u8868\u201d\u505a\u590d\u6742\u8ba1\u7b97&#xff08;\u6bd4\u5982\u63d0\u70bc\u5173\u952e\u4fe1\u606f\u3001\u4f18\u5316\u7279\u5f81&#xff09;&#xff0c;\u5927\u5e45\u51cf\u5c11\u8ba1\u7b97\u91cf&#xff1b;\u5e7f\u64ad\u7ed3\u679c&#xff1a;\u628a\u201c\u4ee3\u8868\u201d\u7684\u8ba1\u7b97\u7ed3\u679c&#xff0c;\u901a\u8fc7\u7b80\u5355\u7684\u6620\u5c04\u4f20\u9012\u7ed9\u6240\u6709\u539f\u59cb\u6570\u636e&#xff0c;\u8ba9\u6240\u6709\u6570\u636e\u90fd\u80fd\u5b66\u5230\u201c\u4ee3\u8868\u201d\u7684\u5173\u952e\u4fe1\u606f\u3002\u5c31\u50cf\u8001\u5e08\u628a\u201c\u4ee3\u8868\u4f5c\u4e1a\u201d\u7684\u6279\u6539\u601d\u8def\u544a\u8bc9\u5168\u73ed&#xff0c;\u6bcf\u4e2a\u5b66\u751f\u90fd\u80fd\u6839\u636e\u8fd9\u4e2a\u601d\u8def\u4fee\u6b63\u81ea\u5df1\u7684\u4f5c\u4e1a&#xff0c;\u65e2\u7701\u65f6\u95f4&#xff0c;\u53c8\u77e5\u9053\u201c\u4e3a\u5565\u8fd9\u4e48\u6539\u201d\u3002<\/li>\n<p>\u4e09\u3001\u5173\u952e\u4f18\u52bf&#xff1a;\u53c8\u5feb\u3001\u53c8\u61c2\u3001\u8fd8\u201c\u4e07\u80fd\u201d<\/p>\n<li style=\"text-align:justify\">\u901f\u5ea6\u5feb&#xff1a;\u8ba1\u7b97\u91cf\u201c\u7ebf\u6027\u589e\u957f\u201d\u3002\u4f20\u7edf\u6ce8\u610f\u529b\u5904\u7406N\u4e2a\u6570\u636e\u70b9&#xff0c;\u8ba1\u7b97\u91cf\u662f\u201cN\u7684\u5e73\u65b9\u201d&#xff08;\u6570\u636e\u7ffb\u500d&#xff0c;\u8ba1\u7b97\u91cf\u7ffb4\u500d&#xff09;&#xff1b;\u800cCBSA\u53ea\u7b97\u5c11\u91cf\u201c\u4ee3\u8868\u201d&#xff0c;\u8ba1\u7b97\u91cf\u548c\u6570\u636e\u91cf\u5448\u201c\u7ebf\u6027\u589e\u957f\u201d&#xff08;\u6570\u636e\u7ffb\u500d&#xff0c;\u8ba1\u7b97\u91cf\u4e5f\u53ea\u7ffb\u500d&#xff09;\u3002\u5b9e\u9a8c\u91cc\u63d0\u5230&#xff0c;\u5904\u7406\u9ad8\u6e05\u56fe&#xff08;\u6bd4\u5982512\u00d7512\u50cf\u7d20&#xff09;\u65f6&#xff0c;CBSA\u7684\u8bad\u7ec3\u548c\u63a8\u7406\u901f\u5ea6\u6bd4\u4f20\u7edf\u6ce8\u610f\u529b\u5feb2\u500d\u4ee5\u4e0a&#xff0c;\u53c2\u6570\u8fd8\u66f4\u5c11&#xff08;\u6bd4\u5982CBT-Small\u6a21\u578b\u53ea\u7528ViT-S 30%\u7684\u53c2\u6570\u300140%\u7684\u8ba1\u7b97\u91cf&#xff0c;\u5c31\u80fd\u8fbe\u5230\u5dee\u4e0d\u591a\u7684\u7cbe\u5ea6&#xff09;\u3002<\/li>\n<li style=\"text-align:justify\">\u6613\u7406\u89e3&#xff1a;\u4e0d\u662f\u201c\u9ed1\u76d2\u201d&#xff0c;\u903b\u8f91\u900f\u660e\u3002CBSA\u7684\u6bcf\u4e00\u6b65\u90fd\u6709\u660e\u786e\u7684\u6570\u5b66\u89e3\u91ca&#xff1a;\u9009\u201c\u4ee3\u8868\u201d\u662f\u4e3a\u4e86\u6293\u4f4f\u6570\u636e\u6838\u5fc3&#xff0c;\u201c\u6536\u7f29\u201d\u662f\u4e3a\u4e86\u4f18\u5316\u7279\u5f81&#xff0c;\u201c\u5e7f\u64ad\u201d\u662f\u4e3a\u4e86\u4f20\u9012\u4fe1\u606f\u2014\u2014\u6574\u4e2a\u8fc7\u7a0b\u50cf\u201c\u62c6\u89e3\u95ee\u9898\u3001\u89e3\u51b3\u6838\u5fc3\u3001\u63a8\u5e7f\u7ed3\u679c\u201d&#xff0c;\u4e0d\u50cf\u4f20\u7edf\u6ce8\u610f\u529b\u90a3\u6837\u201c\u4e0d\u77e5\u9053\u4e3a\u5565\u8fd9\u4e48\u7b97\u201d\u3002\u6bd4\u5982\u5b9e\u9a8c\u4e2d\u89c2\u5bdf\u5230&#xff0c;CBSA\u80fd\u628a\u6742\u4e71\u7684\u6570\u636e&#xff08;\u6bd4\u5982\u5e26\u566a\u58f0\u7684\u70b9&#xff09;\u9010\u6b65\u538b\u7f29\u6210\u89c4\u6574\u7684\u201c\u4f4e\u7ef4\u7ed3\u6784\u201d&#xff08;\u7c7b\u4f3c\u628a\u540c\u7c7b\u6570\u636e\u805a\u6210\u6e05\u6670\u7684\u7c07&#xff09;&#xff0c;\u8fd9\u4e2a\u8fc7\u7a0b\u80fd\u76f4\u89c2\u770b\u5230&#xff0c;\u4e0d\u7528\u201c\u731c\u6a21\u578b\u5728\u60f3\u4ec0\u4e48\u201d\u3002<\/li>\n<li>\n<p style=\"text-align:justify\">\u4e07\u80fd&#xff1a;\u80fd\u7edf\u4e00\u6240\u6709\u7ecf\u5178\u6ce8\u610f\u529b\u3002\u6700\u5389\u5bb3\u7684\u662f&#xff0c;CBSA\u80fd\u201c\u53d8\u201d\u6210\u5176\u4ed6\u6ce8\u610f\u529b\u673a\u5236\u2014\u2014\u53ea\u8981\u6362\u4e0d\u540c\u7684\u201c\u4ee3\u8868\u201d\u9009\u62e9\u65b9\u5f0f&#xff1a;\u9009\u201c\u6240\u6709\u6570\u636e\u5f53\u4ee3\u8868\u201d&#xff0c;CBSA\u5c31\u7b49\u540c\u4e8e\u4f20\u7edf\u7684softmax\u6ce8\u610f\u529b&#xff1b;\u9009\u201c\u6b63\u4ea4\u7684\u4ee3\u8868\u201d&#xff08;\u6bd4\u5982\u6570\u636e\u7684\u4e3b\u65b9\u5411&#xff09;&#xff0c;CBSA\u5c31\u53d8\u6210\u7ebf\u6027\u6ce8\u610f\u529b&#xff1b;\u9009\u201c\u56fa\u5b9a\u65b9\u5411\u7684\u4ee3\u8868\u201d&#xff0c;CBSA\u5c31\u53d8\u6210\u901a\u9053\u6ce8\u610f\u529b&#xff08;\u6bd4\u5982SE\u3001CBAM\u91cc\u7684\u901a\u9053\u4f18\u5316&#xff09;\u3002\u76f8\u5f53\u4e8e\u7ed9\u4e0d\u540c\u7684\u6ce8\u610f\u529b\u673a\u5236\u627e\u4e86\u4e2a\u201c\u7edf\u4e00\u516c\u5f0f\u201d&#xff0c;\u80fd\u6e05\u6670\u770b\u5230\u5b83\u4eec\u7684\u672c\u8d28\u533a\u522b&#xff08;\u53ea\u662f\u201c\u4ee3\u8868\u201d\u7684\u9009\u62e9\u65b9\u5f0f\u4e0d\u540c&#xff09;\u3002<\/p>\n<\/li>\n<h3>3.\u00a0\u5177\u4f53\u6539\u8fdb\u6b65\u9aa4<\/h3>\n<h3>&#x1f340;&#x1f340;\u6b65\u9aa41&#xff1a;\u521b\u5efaC3k2_CBSA.py\u6587\u4ef6<\/h3>\n<p>\u5728ultralytics\\\\nn\\\\modules\\\\\u76ee\u5f55\u4e0b&#xff0c;\u65b0\u5efa\u4e00\u4e2aC3k2_CBSA.py\u6587\u4ef6<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"184\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260125070847-6975c17fe2305.png\" width=\"380\" \/><\/p>\n<p>\u7136\u540e&#xff0c;\u628a\u4ee5\u4e0bC3k2_CBSA\u6a21\u5757\u6838\u5fc3\u4ee3\u7801\u62f7\u5165\u8fdb\u53bb&#xff1a;<\/p>\n<p># https:\/\/github.com\/QishuaiWen\/CBSA<br \/>\nimport torch<br \/>\nfrom torch import nn<br \/>\nfrom einops import rearrange, repeat<\/p>\n<p>class TSSA(nn.Module):<br \/>\n    # https:\/\/github.com\/RobinWu218\/ToST\/blob\/main\/tost_vision\/tost.py<br \/>\n    def __init__(self, dim, heads, dim_head):<br \/>\n        super().__init__()<br \/>\n        num_heads &#061; heads<br \/>\n        self.heads &#061; num_heads<br \/>\n        self.attend &#061; nn.Softmax(dim&#061;1)<br \/>\n        self.qkv &#061; nn.Linear(dim, dim, bias&#061;False)<br \/>\n        self.temp &#061; nn.Parameter(torch.ones(num_heads, 1))<br \/>\n        self.to_out &#061; nn.Linear(dim, dim)<br \/>\n        self.scale &#061; dim_head ** -0.5<\/p>\n<p>    def forward(self, x, return_attn&#061;False):<br \/>\n        w &#061; rearrange(self.qkv(x), &#039;b n (h d) -&gt; b h n d&#039;, h&#061;self.heads)<br \/>\n        b, h, N, d &#061; w.shape<br \/>\n        if return_attn:<br \/>\n            dots &#061; w &#064; w.transpose(-1, -2)<br \/>\n            return self.attend(dots)<\/p>\n<p>        w_normed &#061; torch.nn.functional.normalize(w, dim&#061;-2)<br \/>\n        w_sq &#061; w_normed ** 2<br \/>\n        # Pi from Eq. 10 in the paper<br \/>\n        Pi &#061; self.attend(torch.sum(w_sq, dim&#061;-1) * self.temp)  # b * h * n<\/p>\n<p>        dots &#061; torch.matmul((Pi \/ (Pi.sum(dim&#061;-1, keepdim&#061;True) &#043; 1e-8)).unsqueeze(-2), w ** 2)<br \/>\n        attn &#061; 1. \/ (1 &#043; dots)<br \/>\n        out &#061; -torch.mul(w.mul(Pi.unsqueeze(-1)), attn)<br \/>\n        out &#061; rearrange(out, &#039;b h n d -&gt; b n (h d)&#039;)<br \/>\n        return self.to_out(out)<\/p>\n<p>    &#064;torch.jit.ignore<br \/>\n    def no_weight_decay(self):<br \/>\n        return {&#039;temp&#039;}<\/p>\n<p>class MSSA(nn.Module):<br \/>\n    # https:\/\/github.com\/Ma-Lab-Berkeley\/CRATE\/blob\/main\/model\/crate.py<br \/>\n    def __init__(self, dim, heads&#061;8, dim_head&#061;64):<br \/>\n        super().__init__()<br \/>\n        inner_dim &#061; dim_head * heads<br \/>\n        project_out &#061; not (heads &#061;&#061; 1 and dim_head &#061;&#061; dim)<br \/>\n        self.heads &#061; heads<br \/>\n        self.scale &#061; dim_head ** -0.5<br \/>\n        self.attend &#061; nn.Softmax(dim&#061;-1)<br \/>\n        self.qkv &#061; nn.Linear(dim, inner_dim, bias&#061;False)<br \/>\n        self.to_out &#061; nn.Linear(inner_dim, dim)<\/p>\n<p>    def forward(self, x, return_attn&#061;False):<br \/>\n        w &#061; rearrange(self.qkv(x), &#039;b n (h d) -&gt; b h n d&#039;, h&#061;self.heads)<br \/>\n        dots &#061; torch.matmul(w, w.transpose(-1, -2)) * self.scale<br \/>\n        attn &#061; self.attend(dots)<\/p>\n<p>        if return_attn:<br \/>\n            return attn<br \/>\n        out &#061; torch.matmul(attn, w)<br \/>\n        out &#061; rearrange(out, &#039;b h n d -&gt; b n (h d)&#039;)<br \/>\n        return self.to_out(out)<\/p>\n<p>class CBSA(nn.Module):<br \/>\n    &#034;&#034;&#034;<br \/>\n    Cross-Block Self-Attention module.<br \/>\n    Adapted to work with 2D feature maps (B, C, H, W) instead of sequences.<br \/>\n    &#034;&#034;&#034;<br \/>\n    def __init__(self, dim, heads&#061;8, dim_head&#061;64):<br \/>\n        super().__init__()<br \/>\n        inner_dim &#061; heads * dim_head<br \/>\n        self.heads &#061; heads<br \/>\n        self.dim_head &#061; dim_head<br \/>\n        self.scale &#061; dim_head ** -0.5<br \/>\n        self.attend &#061; nn.Softmax(dim&#061;-1)<br \/>\n        self.proj &#061; nn.Linear(dim, inner_dim, bias&#061;False)<\/p>\n<p>        self.step_x &#061; nn.Parameter(torch.randn(heads, 1, 1))<br \/>\n        self.step_rep &#061; nn.Parameter(torch.randn(heads, 1, 1))<\/p>\n<p>        self.to_out &#061; nn.Linear(inner_dim, dim)<\/p>\n<p>        self.pool &#061; nn.AdaptiveAvgPool2d(output_size&#061;(8, 8))<\/p>\n<p>        self.qkv &#061; nn.Identity()<\/p>\n<p>    def attention(self, query, key, value):<br \/>\n        dots &#061; (query &#064; key.transpose(-1, -2)) * self.scale<br \/>\n        attn &#061; self.attend(dots)<br \/>\n        out &#061; attn &#064; value<br \/>\n        return out, attn<\/p>\n<p>    def forward(self, x, return_attn&#061;False):<br \/>\n        &#034;&#034;&#034;<br \/>\n        Forward pass for CBSA.<\/p>\n<p>        Args:<br \/>\n            x: Input tensor of shape (B, C, H, W) &#8211; 2D feature map<br \/>\n            return_attn: Whether to return attention weights<\/p>\n<p>        Returns:<br \/>\n            Output tensor of shape (B, C, H, W) &#8211; 2D feature map<br \/>\n        &#034;&#034;&#034;<br \/>\n        b, c, h, w &#061; x.shape<br \/>\n        width &#061; w  # avoid name collision with projected tensor<br \/>\n        n &#061; h * w<br \/>\n        inner_dim &#061; self.heads * self.dim_head<\/p>\n<p>        # Convert 2D feature map to sequence format: (B, C, H, W) -&gt; (B, H*W, C)<br \/>\n        x_seq &#061; rearrange(x, &#039;b c h w -&gt; b (h w) c&#039;)<\/p>\n<p>        # Project to inner dimension<br \/>\n        proj &#061; self.proj(x_seq)  # (B, n, inner_dim)<br \/>\n        self.qkv(proj)<\/p>\n<p>        # Create representation tokens using pooling<br \/>\n        # Use full feature map to avoid shape mismatch; pool to fixed 8&#215;8 tokens<br \/>\n        if n &gt; 1:<br \/>\n            proj_2d &#061; proj.reshape(b, h, width, inner_dim).permute(0, 3, 1, 2)  # (B, inner_dim, h, w)<br \/>\n            rep &#061; self.pool(proj_2d)  # (B, inner_dim, 8, 8)<br \/>\n            rep &#061; rep.reshape(b, inner_dim, -1).permute(0, 2, 1)  # (B, 64, inner_dim)<br \/>\n        else:<br \/>\n            # Handle edge case when H*W &#061; 1<br \/>\n            rep &#061; proj.reshape(b, 1, inner_dim).repeat(1, 64, 1)  # (B, 64, inner_dim) &#8211; repeat single token<\/p>\n<p>        # Reshape for attention<br \/>\n        proj &#061; proj.reshape(b, n, self.heads, self.dim_head).permute(0, 2, 1, 3)  # (B, heads, n, dim_head)<br \/>\n        rep &#061; rep.reshape(b, 64, self.heads, self.dim_head).permute(0, 2, 1, 3)  # (B, heads, 64, dim_head)<\/p>\n<p>        # Cross attention: rep attends to w<br \/>\n        rep_delta, attn &#061; self.attention(rep, proj, proj)<\/p>\n<p>        if return_attn:<br \/>\n            return attn.transpose(-1, -2) &#064; attn<\/p>\n<p>        # Update representation<br \/>\n        rep &#061; rep &#043; self.step_rep * rep_delta<\/p>\n<p>        # Self attention on representation<br \/>\n        x_delta, _ &#061; self.attention(rep, rep, rep)<br \/>\n        x_delta &#061; attn.transpose(-1, -2) &#064; x_delta<br \/>\n        x_delta &#061; self.step_x * x_delta<\/p>\n<p>        # Reshape back to sequence: (B, heads, n, dim_head) -&gt; (B, n, heads*dim_head)<br \/>\n        x_delta &#061; rearrange(x_delta, &#039;b h n k -&gt; b n (h k)&#039;)<br \/>\n        x_out &#061; self.to_out(x_delta)<\/p>\n<p>        # Convert back to 2D feature map: (B, H*W, C) -&gt; (B, C, H, W)<br \/>\n        x_out &#061; rearrange(x_out, &#039;b (h w) c -&gt; b c h w&#039;, h&#061;h, w&#061;w)<\/p>\n<p>        return x_out<\/p>\n<p>def autopad(k, p&#061;None, d&#061;1):  # kernel, padding, dilation<br \/>\n    &#034;&#034;&#034;Pad to &#039;same&#039; shape outputs.&#034;&#034;&#034;<br \/>\n    if d &gt; 1:<br \/>\n        k &#061; d * (k &#8211; 1) &#043; 1 if isinstance(k, int) else [d * (x &#8211; 1) &#043; 1 for x in k]  # actual kernel-size<br \/>\n    if p is None:<br \/>\n        p &#061; k \/\/ 2 if isinstance(k, int) else [x \/\/ 2 for x in k]  # auto-pad<br \/>\n    return p<\/p>\n<p>class Conv(nn.Module):<br \/>\n    default_act &#061; nn.SiLU()  # default activation<\/p>\n<p>    def __init__(self, c1, c2, k&#061;1, s&#061;1, p&#061;None, g&#061;1, d&#061;1, act&#061;True):<br \/>\n        super().__init__()<br \/>\n        self.conv &#061; nn.Conv2d(c1, c2, k, s, autopad(k, p, d), groups&#061;g, dilation&#061;d, bias&#061;False)<br \/>\n        self.bn &#061; nn.BatchNorm2d(c2)<br \/>\n        self.act &#061; self.default_act if act is True else act if isinstance(act, nn.Module) else nn.Identity()<\/p>\n<p>    def forward(self, x):<br \/>\n        return self.act(self.bn(self.conv(x)))<\/p>\n<p>    def forward_fuse(self, x):<br \/>\n        return self.act(self.conv(x))<\/p>\n<p>class Bottleneck(nn.Module):<br \/>\n    &#034;&#034;&#034;Standard bottleneck.&#034;&#034;&#034;<\/p>\n<p>    def __init__(<br \/>\n        self, c1: int, c2: int, shortcut: bool &#061; True, g: int &#061; 1, k: tuple[int, int] &#061; (3, 3), e: float &#061; 0.5<br \/>\n    ):<br \/>\n        super().__init__()<br \/>\n        c_ &#061; int(c2 * e)  # hidden channels<br \/>\n        self.cv1 &#061; Conv(c1, c_, k[0], 1)<br \/>\n        self.cv2 &#061; Conv(c_, c2, k[1], 1, g&#061;g)<br \/>\n        self.add &#061; shortcut and c1 &#061;&#061; c2<\/p>\n<p>    def forward(self, x: torch.Tensor) -&gt; torch.Tensor:<br \/>\n        &#034;&#034;&#034;Apply bottleneck with optional shortcut connection.&#034;&#034;&#034;<br \/>\n        return x &#043; self.cv2(self.cv1(x)) if self.add else self.cv2(self.cv1(x))<\/p>\n<p>class Attention(nn.Module):<\/p>\n<p>    def __init__(self, dim: int, num_heads: int &#061; 8, attn_ratio: float &#061; 0.5):<br \/>\n        super().__init__()<br \/>\n        self.num_heads &#061; num_heads<br \/>\n        self.head_dim &#061; dim \/\/ num_heads<br \/>\n        self.key_dim &#061; int(self.head_dim * attn_ratio)<br \/>\n        self.scale &#061; self.key_dim**-0.5<br \/>\n        nh_kd &#061; self.key_dim * num_heads<br \/>\n        h &#061; dim &#043; nh_kd * 2<br \/>\n        self.qkv &#061; Conv(dim, h, 1, act&#061;False)<br \/>\n        self.proj &#061; Conv(dim, dim, 1, act&#061;False)<br \/>\n        self.pe &#061; Conv(dim, dim, 3, 1, g&#061;dim, act&#061;False)<\/p>\n<p>    def forward(self, x: torch.Tensor) -&gt; torch.Tensor:<br \/>\n        B, C, H, W &#061; x.shape<br \/>\n        N &#061; H * W<br \/>\n        qkv &#061; self.qkv(x)<br \/>\n        q, k, v &#061; qkv.view(B, self.num_heads, self.key_dim * 2 &#043; self.head_dim, N).split(<br \/>\n            [self.key_dim, self.key_dim, self.head_dim], dim&#061;2<br \/>\n        )<\/p>\n<p>        attn &#061; (q.transpose(-2, -1) &#064; k) * self.scale<br \/>\n        attn &#061; attn.softmax(dim&#061;-1)<br \/>\n        x &#061; (v &#064; attn.transpose(-2, -1)).view(B, C, H, W) &#043; self.pe(v.reshape(B, C, H, W))<br \/>\n        x &#061; self.proj(x)<br \/>\n        return x<\/p>\n<p>class C2f(nn.Module):<\/p>\n<p>    def __init__(self, c1: int, c2: int, n: int &#061; 1, shortcut: bool &#061; False, g: int &#061; 1, e: float &#061; 0.5):<\/p>\n<p>        super().__init__()<br \/>\n        self.c &#061; int(c2 * e)  # hidden channels<br \/>\n        self.cv1 &#061; Conv(c1, 2 * self.c, 1, 1)<br \/>\n        self.cv2 &#061; Conv((2 &#043; n) * self.c, c2, 1)  # optional act&#061;FReLU(c2)<br \/>\n        self.m &#061; nn.ModuleList(Bottleneck(self.c, self.c, shortcut, g, k&#061;((3, 3), (3, 3)), e&#061;1.0) for _ in range(n))<\/p>\n<p>    def forward(self, x: torch.Tensor) -&gt; torch.Tensor:<br \/>\n        &#034;&#034;&#034;Forward pass through C2f layer.&#034;&#034;&#034;<br \/>\n        y &#061; list(self.cv1(x).chunk(2, 1))<br \/>\n        y.extend(m(y[-1]) for m in self.m)<br \/>\n        return self.cv2(torch.cat(y, 1))<\/p>\n<p>    def forward_split(self, x: torch.Tensor) -&gt; torch.Tensor:<br \/>\n        &#034;&#034;&#034;Forward pass using split() instead of chunk().&#034;&#034;&#034;<br \/>\n        y &#061; self.cv1(x).split((self.c, self.c), 1)<br \/>\n        y &#061; [y[0], y[1]]<br \/>\n        y.extend(m(y[-1]) for m in self.m)<br \/>\n        return self.cv2(torch.cat(y, 1))<\/p>\n<p>class C3(nn.Module):<br \/>\n    &#034;&#034;&#034;CSP Bottleneck with 3 convolutions.&#034;&#034;&#034;<\/p>\n<p>    def __init__(self, c1: int, c2: int, n: int &#061; 1, shortcut: bool &#061; True, g: int &#061; 1, e: float &#061; 0.5):<\/p>\n<p>        super().__init__()<br \/>\n        c_ &#061; int(c2 * e)  # hidden channels<br \/>\n        self.cv1 &#061; Conv(c1, c_, 1, 1)<br \/>\n        self.cv2 &#061; Conv(c1, c_, 1, 1)<br \/>\n        self.cv3 &#061; Conv(2 * c_, c2, 1)  # optional act&#061;FReLU(c2)<br \/>\n        self.m &#061; nn.Sequential(*(Bottleneck(c_, c_, shortcut, g, k&#061;((1, 1), (3, 3)), e&#061;1.0) for _ in range(n)))<\/p>\n<p>    def forward(self, x: torch.Tensor) -&gt; torch.Tensor:<br \/>\n        &#034;&#034;&#034;Forward pass through the CSP bottleneck with 3 convolutions.&#034;&#034;&#034;<br \/>\n        return self.cv3(torch.cat((self.m(self.cv1(x)), self.cv2(x)), 1))<\/p>\n<p>class PSABlock(nn.Module):<\/p>\n<p>    def __init__(self, c: int, attn_ratio: float &#061; 0.5, num_heads: int &#061; 4, shortcut: bool &#061; True) -&gt; None:<br \/>\n        super().__init__()<\/p>\n<p>        self.attn &#061; Attention(c, attn_ratio&#061;attn_ratio, num_heads&#061;num_heads)<br \/>\n        self.ffn &#061; nn.Sequential(Conv(c, c * 2, 1), Conv(c * 2, c, 1, act&#061;False))<br \/>\n        self.add &#061; shortcut<\/p>\n<p>    def forward(self, x: torch.Tensor) -&gt; torch.Tensor:<br \/>\n        x &#061; x &#043; self.attn(x) if self.add else self.attn(x)<br \/>\n        x &#061; x &#043; self.ffn(x) if self.add else self.ffn(x)<br \/>\n        return x<\/p>\n<p>class C3k2(C2f):<br \/>\n    def __init__(<br \/>\n        self,<br \/>\n        c1: int,<br \/>\n        c2: int,<br \/>\n        n: int &#061; 1,<br \/>\n        c3k: bool &#061; False,<br \/>\n        e: float &#061; 0.5,<br \/>\n        attn: bool &#061; False,<br \/>\n        g: int &#061; 1,<br \/>\n        shortcut: bool &#061; True,<br \/>\n    ):<br \/>\n        super().__init__(c1, c2, n, shortcut, g, e)<br \/>\n        self.m &#061; nn.ModuleList(<br \/>\n            nn.Sequential(<br \/>\n                Bottleneck(self.c, self.c, shortcut, g),<br \/>\n                PSABlock(self.c, attn_ratio&#061;0.5, num_heads&#061;max(self.c \/\/ 64, 1)),<br \/>\n            )<br \/>\n            if attn<br \/>\n            else C3k(self.c, self.c, 2, shortcut, g)<br \/>\n            if c3k<br \/>\n            else Bottleneck(self.c, self.c, shortcut, g)<br \/>\n            for _ in range(n)<br \/>\n        )<\/p>\n<p>class C3k(C3):<\/p>\n<p>    def __init__(self, c1: int, c2: int, n: int &#061; 1, shortcut: bool &#061; True, g: int &#061; 1, e: float &#061; 0.5, k: int &#061; 3):<br \/>\n        super().__init__(c1, c2, n, shortcut, g, e)<br \/>\n        c_ &#061; int(c2 * e)  # hidden channels<br \/>\n        # self.m &#061; nn.Sequential(*(RepBottleneck(c_, c_, shortcut, g, k&#061;(k, k), e&#061;1.0) for _ in range(n)))<br \/>\n        self.m &#061; nn.Sequential(*(Bottleneck(c_, c_, shortcut, g, k&#061;(k, k), e&#061;1.0) for _ in range(n)))<\/p>\n<p>class C3k_CBSA(C3k):<\/p>\n<p>    def __init__(self, c1, c2, n&#061;1, shortcut&#061;False, g&#061;1, e&#061;0.5, k&#061;3, heads&#061;8, dim_head&#061;64):<br \/>\n        super().__init__(c1, c2, n, shortcut, g, e, k)<br \/>\n        c_ &#061; int(c2 * e)  # hidden channels<br \/>\n        self.m &#061; nn.Sequential(*(CBSA(c_, heads&#061;heads, dim_head&#061;dim_head) for _ in range(n)))<\/p>\n<p>class C3k2_CBSA(C3k2):<\/p>\n<p>    def __init__(<br \/>\n        self,<br \/>\n        c1: int,<br \/>\n        c2: int,<br \/>\n        n: int &#061; 1,<br \/>\n        c3k: bool &#061; False,<br \/>\n        e: float &#061; 0.5,<br \/>\n        attn: bool &#061; False,<br \/>\n        g: int &#061; 1,<br \/>\n        shortcut: bool &#061; True,<br \/>\n        heads&#061;8,<br \/>\n        dim_head&#061;64<br \/>\n        ):<br \/>\n        super().__init__(c1, c2, n, shortcut, g, e)<\/p>\n<p>        if attn:<\/p>\n<p>            print(attn , &#039;attn&#061;True \u6ce8\u610f\u529b\u6a21\u5f0f &#8211; \u4f7f\u7528CBSA &#043; Bottleneck&#039;)<br \/>\n            # \u4f18\u5148\u7ea71&#xff1a;attn&#061;True \u6ce8\u610f\u529b\u6a21\u5f0f &#8211; \u4f7f\u7528\u4f7f\u7528CBSA &#043; Bottleneck&#xff0c;\u8fd9\u91cc\u53ef\u4ee5\u81ea\u884c\u7ec4\u5408\u8bd5\u8bd5\u770b<br \/>\n            self.m &#061; nn.ModuleList(<br \/>\n                nn.Sequential(<br \/>\n                    Bottleneck(self.c, self.c, shortcut, g),<br \/>\n                    CBSA(self.c, heads&#061;heads, dim_head&#061;dim_head),<br \/>\n                    # C3k_CBSA(self.c, self.c, shortcut, g, e&#061;1.0),<br \/>\n                    # PSABlock(self.c, attn_ratio&#061;0.5, num_heads&#061;max(self.c \/\/ 64, 1)),<br \/>\n                )<br \/>\n                for _ in range(n)<br \/>\n            )<br \/>\n        elif c3k:<br \/>\n            print(c3k,&#039;c3k&#061;True C3k\u6a21\u5f0f &#8211; \u4f7f\u7528C3k_CBSA\u4ee3\u66ffC3k&#039;)<br \/>\n            # \u4f18\u5148\u7ea72&#xff1a;c3k&#061;True C3k\u6a21\u5f0f &#8211; \u4f7f\u7528C3k_CBSA\u4ee3\u66ffC3k<br \/>\n            self.m &#061; nn.ModuleList(<br \/>\n                C3k_CBSA(self.c, self.c, 2, shortcut, g)<br \/>\n                for _ in range(n)<br \/>\n            )<br \/>\n        else:<br \/>\n            print(c3k,&#039;c3k&#061;False \u57fa\u7840\u6a21\u5f0f &#8211; \u4f7f\u7528C3k_CBSA\u4ee3\u66ffBottleneck&#039;)<br \/>\n            # \u4f18\u5148\u7ea73&#xff1a;c3k&#061;False \u57fa\u7840\u6a21\u5f0f &#8211; \u4f7f\u7528C3k_CBSA\u4ee3\u66ffBottleneck<br \/>\n            self.m &#061; nn.ModuleList(<br \/>\n                C3k_CBSA(self.c, self.c, shortcut, g, e&#061;1.0)<br \/>\n                for _ in range(n)<br \/>\n            )<\/p>\n<h3>&#x1f340;&#x1f340;\u6b65\u9aa42&#xff1a;tasks.py\u6587\u4ef6\u4fee\u6539<\/h3>\n<p>\u9996\u5148&#xff0c;\u5728ultralytics\/nn\/tasks.py\u4ee3\u7801\u6700\u524d\u7aef\u5bfc\u5165C3k2_CBSA\u6a21\u5757&#xff0c;\u4ee3\u7801\u5982\u4e0b&#xff1a;<\/p>\n<p>from ultralytics.nn.modules.C3k2_CBSA import C3k2_CBSA <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"200\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260125070848-6975c1800506d.png\" width=\"693\" \/><\/p>\n<p>\u7136\u540e&#xff0c;tasks.py\u6587\u4ef6\u4e2d\u627e\u5230parse_model\u51fd\u6570&#xff08;ctrl&#043;f \u53ef\u4ee5\u76f4\u63a5\u641c\u7d22parse_model\u4f4d\u7f6e&#xff09;\u5bfc\u5165C3k2_CBSA\u6a21\u5757&#xff1a;1&#xff09;base_modules\u90e8\u5206&#xff1b;2&#xff09;repeat_modules\u90e8\u5206\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"864\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260125070848-6975c1801fa34.png\" width=\"765\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"416\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260125070848-6975c1804342c.png\" width=\"500\" \/><\/p>\n<h3>&#x1f340;&#x1f340;\u6b65\u9aa43&#xff1a;\u521b\u5efaYAML\u914d\u7f6e\u6587\u4ef6<\/h3>\n<p>\u4ee5Ultralytics \u516c\u53f8\u4e8e 2025 \u5e74 9 \u6708\u53d1\u5e03\u7684\u6700\u65b0\u4e00\u4ee3\u76ee\u6807\u68c0\u6d4b\u6a21\u578bYOLO26\u4e3a\u4f8b&#xff08;\u4ee3\u7801\u5b98\u65b9\u53ef\u4e0b\u8f7d&#xff0c;\u4e0d\u7136\u4f1a\u62a5\u9519&#xff09;&#xff0c;\u521b\u5efayolo26-C3k2_CBSA.yaml\u914d\u7f6e\u6587\u4ef6&#xff0c;\u4ee3\u7801\u5982\u4e0b&#xff1a;<\/p>\n<p># Ultralytics &#x1f680; AGPL-3.0 License &#8211; https:\/\/ultralytics.com\/license<\/p>\n<p># Ultralytics YOLO26 object detection model with P3\/8 &#8211; P5\/32 outputs<br \/>\n# Model docs: https:\/\/docs.ultralytics.com\/models\/yolo26<br \/>\n# Task docs: https:\/\/docs.ultralytics.com\/tasks\/detect<\/p>\n<p># Parameters<br \/>\nnc: 80 # number of classes<br \/>\nend2end: True # whether to use end-to-end mode<br \/>\nreg_max: 1 # DFL bins<br \/>\nscales: # model compound scaling constants, i.e. &#039;model&#061;yolo26n.yaml&#039; will call yolo26.yaml with scale &#039;n&#039;<br \/>\n  # [depth, width, max_channels]<br \/>\n  n: [0.50, 0.25, 1024] # summary: 260 layers, 2,572,280 parameters, 2,572,280 gradients, 6.1 GFLOPs<br \/>\n  s: [0.50, 0.50, 1024] # summary: 260 layers, 10,009,784 parameters, 10,009,784 gradients, 22.8 GFLOPs<br \/>\n  m: [0.50, 1.00, 512] # summary: 280 layers, 21,896,248 parameters, 21,896,248 gradients, 75.4 GFLOPs<br \/>\n  l: [1.00, 1.00, 512] # summary: 392 layers, 26,299,704 parameters, 26,299,704 gradients, 93.8 GFLOPs<br \/>\n  x: [1.00, 1.50, 512] # summary: 392 layers, 58,993,368 parameters, 58,993,368 gradients, 209.5 GFLOPs<\/p>\n<p># YOLO26n backbone<br \/>\nbackbone:<br \/>\n  # [from, repeats, module, args]<br \/>\n  &#8211; [-1, 1, Conv, [64, 3, 2]] # 0-P1\/2<br \/>\n  &#8211; [-1, 1, Conv, [128, 3, 2]] # 1-P2\/4<br \/>\n  &#8211; [-1, 2, C3k2_CBSA, [256, False, 0.25]]<br \/>\n  &#8211; [-1, 1, Conv, [256, 3, 2]] # 3-P3\/8<br \/>\n  &#8211; [-1, 2, C3k2_CBSA, [512, False, 0.25]]<br \/>\n  &#8211; [-1, 1, Conv, [512, 3, 2]] # 5-P4\/16<br \/>\n  &#8211; [-1, 2, C3k2_CBSA, [512, True]]<br \/>\n  &#8211; [-1, 1, Conv, [1024, 3, 2]] # 7-P5\/32<br \/>\n  &#8211; [-1, 2, C3k2_CBSA, [1024, True]]<br \/>\n  &#8211; [-1, 1, SPPF, [1024, 5, 3, True]] # 9<br \/>\n  &#8211; [-1, 2, C2PSA, [1024]] # 10<\/p>\n<p># YOLO26n head<br \/>\nhead:<br \/>\n  &#8211; [-1, 1, nn.Upsample, [None, 2, &#034;nearest&#034;]]<br \/>\n  &#8211; [[-1, 6], 1, Concat, [1]] # cat backbone P4<br \/>\n  &#8211; [-1, 2, C3k2_CBSA, [512, True]] # 13<\/p>\n<p>  &#8211; [-1, 1, nn.Upsample, [None, 2, &#034;nearest&#034;]]<br \/>\n  &#8211; [[-1, 4], 1, Concat, [1]] # cat backbone P3<br \/>\n  &#8211; [-1, 2, C3k2_CBSA, [256, True]] # 16 (P3\/8-small)<\/p>\n<p>  &#8211; [-1, 1, Conv, [256, 3, 2]]<br \/>\n  &#8211; [[-1, 13], 1, Concat, [1]] # cat head P4<br \/>\n  &#8211; [-1, 2, C3k2_CBSA, [512, True]] # 19 (P4\/16-medium)<\/p>\n<p>  &#8211; [-1, 1, Conv, [512, 3, 2]]<br \/>\n  &#8211; [[-1, 10], 1, Concat, [1]] # cat head P5<br \/>\n  &#8211; [-1, 1, C3k2_CBSA, [1024, True, 0.5, True]] # 22 (P5\/32-large)<\/p>\n<p>  &#8211; [[16, 19, 22], 1, Detect, [nc]] # Detect(P3, P4, P5)<\/p>\n<h3>&#x1f340;&#x1f340;\u6b65\u9aa44&#xff1a;\u65b0\u5efatrain.py\u6587\u4ef6\u8bad\u7ec3\u6a21\u578b<\/h3>\n<p>import warnings<br \/>\nwarnings.filterwarnings(&#039;ignore&#039;)<br \/>\nfrom ultralytics import YOLO<\/p>\n<p>if __name__ &#061;&#061; &#039;__main__&#039;:<br \/>\n    model &#061; YOLO(&#039;ultralytics\/cfg\/models\/26\/yolo26-C3k2_CBSA.yaml&#039;) # \u5bfc\u5165yaml\u914d\u7f6e\u6587\u4ef6<br \/>\n    # model.load(&#039;yolo11n.pt&#039;) # loading pretrain weights<br \/>\n    model.train(data&#061;&#039;dataset\/data.yaml&#039;,<br \/>\n                cache&#061;False,<br \/>\n                imgsz&#061;640,<br \/>\n                epochs&#061;300,<br \/>\n                batch&#061;32,<br \/>\n                close_mosaic&#061;0,<br \/>\n                workers&#061;4, # Windows\u4e0b\u51fa\u73b0\u83ab\u540d\u5176\u5999\u5361\u4e3b\u7684\u60c5\u51b5\u53ef\u4ee5\u5c1d\u8bd5\u628aworkers\u8bbe\u7f6e\u4e3a0<br \/>\n                # device&#061;&#039;0&#039;,<br \/>\n                optimizer&#061;&#039;SGD&#039;, # using SGD<br \/>\n                # patience&#061;0, # set 0 to close earlystop.<br \/>\n                # resume&#061;True, # \u65ad\u70b9\u7eed\u8bad,YOLO\u521d\u59cb\u5316\u65f6\u9009\u62e9last.pt<br \/>\n                # amp&#061;False, # close amp<br \/>\n                # fraction&#061;0.2,<br \/>\n                project&#061;&#039;runs\/train&#039;,<br \/>\n                name&#061;&#039;yolo26-C3k2_CBSA&#039;,<br \/>\n                ) <\/p>\n<h3>&#x1f340;&#x1f340;\u6b65\u9aa45&#xff1a;\u6a21\u578b\u7ed3\u6784\u6253\u5370\u7ed3\u679c<\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"591\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260125070848-6975c18075c04.png\" width=\"804\" \/><\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>0. \u524d\u8a00<br \/>\n\u672c\u6587\u4ecb\u7ecdCBSA\u6536\u7f29 &#8211; \u5e7f\u64ad\u81ea\u6ce8\u610f\u529b\u673a\u5236&#xff08;Contract-and-Broadcast Self-Attention&#xff09;&#xff0c;\u5e76\u5c06\u5176\u96c6\u6210\u5230ultralytics\u6700\u65b0\u53d1\u5e03\u7684YOLO26\u76ee\u6807\u68c0\u6d4b\u7b97\u6cd5\u4e2d&#xff0c;\u6784\u5efaC3k2-LWGA\u521b\u65b0\u6a21\u5757\u3002\u4f20\u7edf\u6ce8\u610f\u529b\u673a\u5236\u5b58\u5728\u9ed1\u76d2\u96be\u7406\u89e3\u3001\u8ba1\u7b97\u590d\u6742\u5ea6\u9ad8\u7684\u95ee\u9898&#xff0c;CBSA\u901a\u8fc7\u7b97\u6cd5\u5c55\u5f00\u63a8\u5bfc\u51fa\u672c\u8d28\u4e0a\u53ef\u89e3\u91ca\u4e14\u9ad8\u6548\u7684\u6ce8\u610f\u529b\u673a\u5236\u3002\u5b83\u5148\u4ece\u8f93\u5165\u6570\u636e\u4e2d\u9009\u51fa\u5c11\u91cf\u4ee3\u8868\u6027tokens&#xff0c;\u63a5\u7740<\/p>\n","protected":false},"author":2,"featured_media":65658,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[6942,6396,152,156,50,1665,523],"topic":[],"class_list":["post-65665","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-c3k2","tag-yolo26","tag-pytorch","tag-yolo","tag-50","tag-1665","tag-523"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>YOLO\u7cfb\u5217\u7b97\u6cd5\u6539\u8fdb | C3k2\u6539\u8fdb\u7bc7 | \u878d\u5408CBSA\u6536\u7f29-\u5e7f\u64ad\u81ea\u6ce8\u610f\u529b | \u8f7b\u91cf\u7ea7\u8bbe\u8ba1\u5b9e\u73b0\u9ad8\u6548\u7279\u5f81\u538b\u7f29\u4f18\u5316\u5904\u7406\u6548\u7387 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/65665.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"YOLO\u7cfb\u5217\u7b97\u6cd5\u6539\u8fdb | C3k2\u6539\u8fdb\u7bc7 | \u878d\u5408CBSA\u6536\u7f29-\u5e7f\u64ad\u81ea\u6ce8\u610f\u529b | \u8f7b\u91cf\u7ea7\u8bbe\u8ba1\u5b9e\u73b0\u9ad8\u6548\u7279\u5f81\u538b\u7f29\u4f18\u5316\u5904\u7406\u6548\u7387 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"0. \u524d\u8a00 \u672c\u6587\u4ecb\u7ecdCBSA\u6536\u7f29 - \u5e7f\u64ad\u81ea\u6ce8\u610f\u529b\u673a\u5236&#xff08;Contract-and-Broadcast Self-Attention&#xff09;&#xff0c;\u5e76\u5c06\u5176\u96c6\u6210\u5230ultralytics\u6700\u65b0\u53d1\u5e03\u7684YOLO26\u76ee\u6807\u68c0\u6d4b\u7b97\u6cd5\u4e2d&#xff0c;\u6784\u5efaC3k2-LWGA\u521b\u65b0\u6a21\u5757\u3002\u4f20\u7edf\u6ce8\u610f\u529b\u673a\u5236\u5b58\u5728\u9ed1\u76d2\u96be\u7406\u89e3\u3001\u8ba1\u7b97\u590d\u6742\u5ea6\u9ad8\u7684\u95ee\u9898&#xff0c;CBSA\u901a\u8fc7\u7b97\u6cd5\u5c55\u5f00\u63a8\u5bfc\u51fa\u672c\u8d28\u4e0a\u53ef\u89e3\u91ca\u4e14\u9ad8\u6548\u7684\u6ce8\u610f\u529b\u673a\u5236\u3002\u5b83\u5148\u4ece\u8f93\u5165\u6570\u636e\u4e2d\u9009\u51fa\u5c11\u91cf\u4ee3\u8868\u6027tokens&#xff0c;\u63a5\u7740\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/65665.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-25T07:08:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260125070846-6975c17eb09e8.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"13 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/65665.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/65665.html\",\"name\":\"YOLO\u7cfb\u5217\u7b97\u6cd5\u6539\u8fdb | C3k2\u6539\u8fdb\u7bc7 | \u878d\u5408CBSA\u6536\u7f29-\u5e7f\u64ad\u81ea\u6ce8\u610f\u529b | \u8f7b\u91cf\u7ea7\u8bbe\u8ba1\u5b9e\u73b0\u9ad8\u6548\u7279\u5f81\u538b\u7f29\u4f18\u5316\u5904\u7406\u6548\u7387 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-25T07:08:49+00:00\",\"dateModified\":\"2026-01-25T07:08:49+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/65665.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/65665.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/65665.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"YOLO\u7cfb\u5217\u7b97\u6cd5\u6539\u8fdb | C3k2\u6539\u8fdb\u7bc7 | \u878d\u5408CBSA\u6536\u7f29-\u5e7f\u64ad\u81ea\u6ce8\u610f\u529b | \u8f7b\u91cf\u7ea7\u8bbe\u8ba1\u5b9e\u73b0\u9ad8\u6548\u7279\u5f81\u538b\u7f29\u4f18\u5316\u5904\u7406\u6548\u7387\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"YOLO\u7cfb\u5217\u7b97\u6cd5\u6539\u8fdb | C3k2\u6539\u8fdb\u7bc7 | \u878d\u5408CBSA\u6536\u7f29-\u5e7f\u64ad\u81ea\u6ce8\u610f\u529b | \u8f7b\u91cf\u7ea7\u8bbe\u8ba1\u5b9e\u73b0\u9ad8\u6548\u7279\u5f81\u538b\u7f29\u4f18\u5316\u5904\u7406\u6548\u7387 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/65665.html","og_locale":"zh_CN","og_type":"article","og_title":"YOLO\u7cfb\u5217\u7b97\u6cd5\u6539\u8fdb | C3k2\u6539\u8fdb\u7bc7 | \u878d\u5408CBSA\u6536\u7f29-\u5e7f\u64ad\u81ea\u6ce8\u610f\u529b | \u8f7b\u91cf\u7ea7\u8bbe\u8ba1\u5b9e\u73b0\u9ad8\u6548\u7279\u5f81\u538b\u7f29\u4f18\u5316\u5904\u7406\u6548\u7387 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"0. \u524d\u8a00 \u672c\u6587\u4ecb\u7ecdCBSA\u6536\u7f29 - \u5e7f\u64ad\u81ea\u6ce8\u610f\u529b\u673a\u5236&#xff08;Contract-and-Broadcast Self-Attention&#xff09;&#xff0c;\u5e76\u5c06\u5176\u96c6\u6210\u5230ultralytics\u6700\u65b0\u53d1\u5e03\u7684YOLO26\u76ee\u6807\u68c0\u6d4b\u7b97\u6cd5\u4e2d&#xff0c;\u6784\u5efaC3k2-LWGA\u521b\u65b0\u6a21\u5757\u3002\u4f20\u7edf\u6ce8\u610f\u529b\u673a\u5236\u5b58\u5728\u9ed1\u76d2\u96be\u7406\u89e3\u3001\u8ba1\u7b97\u590d\u6742\u5ea6\u9ad8\u7684\u95ee\u9898&#xff0c;CBSA\u901a\u8fc7\u7b97\u6cd5\u5c55\u5f00\u63a8\u5bfc\u51fa\u672c\u8d28\u4e0a\u53ef\u89e3\u91ca\u4e14\u9ad8\u6548\u7684\u6ce8\u610f\u529b\u673a\u5236\u3002\u5b83\u5148\u4ece\u8f93\u5165\u6570\u636e\u4e2d\u9009\u51fa\u5c11\u91cf\u4ee3\u8868\u6027tokens&#xff0c;\u63a5\u7740","og_url":"https:\/\/www.wsisp.com\/helps\/65665.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-25T07:08:49+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260125070846-6975c17eb09e8.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"13 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/65665.html","url":"https:\/\/www.wsisp.com\/helps\/65665.html","name":"YOLO\u7cfb\u5217\u7b97\u6cd5\u6539\u8fdb | C3k2\u6539\u8fdb\u7bc7 | \u878d\u5408CBSA\u6536\u7f29-\u5e7f\u64ad\u81ea\u6ce8\u610f\u529b | \u8f7b\u91cf\u7ea7\u8bbe\u8ba1\u5b9e\u73b0\u9ad8\u6548\u7279\u5f81\u538b\u7f29\u4f18\u5316\u5904\u7406\u6548\u7387 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-25T07:08:49+00:00","dateModified":"2026-01-25T07:08:49+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/65665.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/65665.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/65665.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"YOLO\u7cfb\u5217\u7b97\u6cd5\u6539\u8fdb | C3k2\u6539\u8fdb\u7bc7 | \u878d\u5408CBSA\u6536\u7f29-\u5e7f\u64ad\u81ea\u6ce8\u610f\u529b | \u8f7b\u91cf\u7ea7\u8bbe\u8ba1\u5b9e\u73b0\u9ad8\u6548\u7279\u5f81\u538b\u7f29\u4f18\u5316\u5904\u7406\u6548\u7387"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/65665","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=65665"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/65665\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/65658"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=65665"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=65665"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=65665"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=65665"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}