{"id":18217,"date":"2025-01-13T20:24:40","date_gmt":"2025-01-13T12:24:40","guid":{"rendered":"https:\/\/www.aisharenet.com\/?p=18217"},"modified":"2025-01-13T20:25:21","modified_gmt":"2025-01-13T12:25:21","slug":"imbd","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/ja\/imbd\/","title":{"rendered":"ImBD\uff1aAI\u751f\u6210\u5185\u5bb9\u68c0\u6d4b\uff0c\u68c0\u6d4b\u5185\u5bb9\u662f\u5426\u7531\u4eba\u5de5\u667a\u80fd\u751f\u6210"},"content":{"rendered":"<p>ImBD (Imitate Before Detect) \u662f\u4e00\u4e2a\u5f00\u521b\u6027\u7684\u673a\u5668\u751f\u6210\u6587\u672c\u68c0\u6d4b\u9879\u76ee\uff0c\u8be5\u9879\u76ee\u53d1\u8868\u4e8eAAAI 2025\u4f1a\u8bae\u3002\u968f\u7740ChatGPT\u7b49\u5927\u8bed\u8a00\u6a21\u578b(LLMs)\u7684\u5e7f\u6cdb\u5e94\u7528\uff0c\u8bc6\u522bAI\u751f\u6210\u7684\u6587\u672c\u5185\u5bb9\u53d8\u5f97\u8d8a\u6765\u8d8a\u5177\u6709\u6311\u6218\u6027\u3002ImBD\u9879\u76ee\u63d0\u51fa\u4e86\u4e00\u79cd\u65b0\u9896\u7684&#8221;\u5148\u6a21\u4eff\u540e\u68c0\u6d4b&#8221;\u65b9\u6cd5\uff0c\u901a\u8fc7\u6df1\u5165\u7406\u89e3\u548c\u6a21\u4eff\u673a\u5668\u6587\u672c\u7684\u98ce\u683c\u7279\u5f81\u6765\u63d0\u5347\u68c0\u6d4b\u6548\u679c\u3002\u8be5\u65b9\u6cd5\u9996\u6b21\u63d0\u51fa\u5bf9\u9f50\u673a\u5668\u6587\u672c\u7684\u98ce\u683c\u504f\u597d\uff0c\u5efa\u7acb\u4e86\u4e00\u4e2a\u5168\u9762\u7684\u6587\u672c\u68c0\u6d4b\u6846\u67b6\uff0c\u80fd\u591f\u6709\u6548\u8bc6\u522b\u7ecf\u8fc7\u4eba\u5de5\u4fee\u6539\u7684\u673a\u5668\u751f\u6210\u6587\u672c\u3002\u9879\u76ee\u91c7\u7528Apache 2.0\u5f00\u6e90\u8bb8\u53ef\u8bc1\uff0c\u63d0\u4f9b\u4e86\u5b8c\u6574\u7684\u4ee3\u7801\u5b9e\u73b0\u3001\u9884\u8bad\u7ec3\u6a21\u578b\u548c\u8be6\u7ec6\u6587\u6863\uff0c\u65b9\u4fbf\u7814\u7a76\u4eba\u5458\u548c\u5f00\u53d1\u8005\u5728\u6b64\u57fa\u7840\u4e0a\u8fdb\u884c\u8fdb\u4e00\u6b65\u7684\u7814\u7a76\u548c\u5e94\u7528\u5f00\u53d1\u3002<\/p>\n<div id=\"attachment_18218\" style=\"width: 1088px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-18218\" class=\"wp-image-18218\" title=\"ImBD\uff1aAI\u751f\u6210\u5185\u5bb9\u68c0\u6d4b\uff0c\u68c0\u6d4b\u5185\u5bb9\u662f\u5426\u7531\u4eba\u5de5\u667a\u80fd\u751f\u6210-1\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/01\/2593c0912106fc8.png\" alt=\"ImBD\uff1aAI\u751f\u6210\u5185\u5bb9\u68c0\u6d4b\uff0c\u68c0\u6d4b\u5185\u5bb9\u662f\u5426\u7531\u4eba\u5de5\u667a\u80fd\u751f\u6210-1\" width=\"1078\" height=\"631\" srcset=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/01\/2593c0912106fc8.png 1278w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/01\/2593c0912106fc8-300x176.png 300w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/01\/2593c0912106fc8-1024x599.png 1024w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/01\/2593c0912106fc8-768x450.png 768w, https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2025\/01\/2593c0912106fc8-18x12.png 18w\" sizes=\"auto, (max-width: 1078px) 100vw, 1078px\" \/><p id=\"caption-attachment-18218\" class=\"wp-caption-text\">\u6f14\u793a\u5730\u5740\uff1ahttps:\/\/ai-detector.fenz.ai\/ai-detector<\/p><\/div>\n<p>&nbsp;<\/p>\n<h2>\u529f\u80fd\u5217\u8868<\/h2>\n<ul>\n<li>\u652f\u6301\u5bf9\u673a\u5668\u751f\u6210\u6587\u672c\u7684\u9ad8\u7cbe\u5ea6\u68c0\u6d4b<\/li>\n<li>\u63d0\u4f9b\u9884\u8bad\u7ec3\u6a21\u578b\u7528\u4e8e\u76f4\u63a5\u90e8\u7f72\u548c\u4f7f\u7528<\/li>\n<li>\u5b9e\u73b0\u4e86\u65b0\u578b\u7684\u6587\u672c\u98ce\u683c\u7279\u5f81\u5bf9\u9f50\u7b97\u6cd5<\/li>\n<li>\u5305\u542b\u8be6\u7ec6\u7684\u5b9e\u9a8c\u6570\u636e\u96c6\u548c\u8bc4\u4f30\u57fa\u51c6<\/li>\n<li>\u63d0\u4f9b\u5b8c\u6574\u7684\u8bad\u7ec3\u548c\u63a8\u7406\u4ee3\u7801<\/li>\n<li>\u652f\u6301\u81ea\u5b9a\u4e49\u8bad\u7ec3\u6570\u636e\u8fdb\u884c\u6a21\u578b\u5fae\u8c03<\/li>\n<li>\u5305\u542b\u8be6\u7ec6\u7684API\u6587\u6863\u548c\u4f7f\u7528\u793a\u4f8b<\/li>\n<li>\u63d0\u4f9b\u547d\u4ee4\u884c\u5de5\u5177\u4fbf\u4e8e\u5feb\u901f\u6d4b\u8bd5\u548c\u8bc4\u4f30<\/li>\n<li>\u652f\u6301\u6279\u91cf\u6587\u672c\u5904\u7406\u529f\u80fd<\/li>\n<li>\u5305\u542b\u53ef\u89c6\u5316\u5de5\u5177\u5c55\u793a\u68c0\u6d4b\u7ed3\u679c<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>\u4f7f\u7528\u5e2e\u52a9<\/h2>\n<h3>1. \u73af\u5883\u914d\u7f6e<\/h3>\n<p>\u9996\u5148\u9700\u8981\u914d\u7f6ePython\u73af\u5883\u5e76\u5b89\u88c5\u5fc5\u8981\u7684\u4f9d\u8d56\uff1a<\/p>\n<pre><code>git clone https:\/\/github.com\/Jiaqi-Chen-00\/ImBD\r\ncd ImBD\r\npip install -r requirements.txt\r\n<\/code><\/pre>\n<h3>2. \u6570\u636e\u51c6\u5907<\/h3>\n<p>\u5728\u5f00\u59cb\u4f7f\u7528ImBD\u4e4b\u524d\uff0c\u9700\u8981\u51c6\u5907\u597d\u8bad\u7ec3\u548c\u6d4b\u8bd5\u6570\u636e\u3002\u6570\u636e\u5e94\u5305\u542b\u4ee5\u4e0b\u4e24\u7c7b\uff1a<\/p>\n<ul>\n<li>\u4eba\u5de5\u7f16\u5199\u7684\u539f\u59cb\u6587\u672c<\/li>\n<li>\u673a\u5668\u751f\u6210\u6216\u7ecf\u8fc7\u673a\u5668\u4fee\u6539\u7684\u6587\u672c<\/li>\n<\/ul>\n<p>\u6570\u636e\u683c\u5f0f\u8981\u6c42\uff1a<\/p>\n<ul>\n<li>\u6587\u672c\u6587\u4ef6\u9700\u8981\u662fUTF-8\u7f16\u7801<\/li>\n<li>\u6bcf\u4e2a\u6837\u672c\u5360\u4e00\u884c<\/li>\n<li>\u5efa\u8bae\u5c06\u6570\u636e\u96c6\u63098:1:1\u7684\u6bd4\u4f8b\u5212\u5206\u4e3a\u8bad\u7ec3\u96c6\u3001\u9a8c\u8bc1\u96c6\u548c\u6d4b\u8bd5\u96c6<\/li>\n<\/ul>\n<h3>3. \u6a21\u578b\u8bad\u7ec3<\/h3>\n<p>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u5f00\u59cb\u8bad\u7ec3\uff1a<\/p>\n<pre><code>python train.py \\\r\n--train_data path\/to\/train.txt \\\r\n--val_data path\/to\/val.txt \\\r\n--model_output_dir path\/to\/save\/model \\\r\n--batch_size 32 \\\r\n--learning_rate 2e-5 \\\r\n--num_epochs 5\r\n<\/code><\/pre>\n<h3>4. \u6a21\u578b\u8bc4\u4f30<\/h3>\n<p>\u4f7f\u7528\u6d4b\u8bd5\u96c6\u8bc4\u4f30\u6a21\u578b\u6027\u80fd\uff1a<\/p>\n<pre><code>python evaluate.py \\\r\n--model_path path\/to\/saved\/model \\\r\n--test_data path\/to\/test.txt \\\r\n--output_file evaluation_results.txt\r\n<\/code><\/pre>\n<h3>5. \u6587\u672c\u68c0\u6d4b<\/h3>\n<p>\u5bf9\u5355\u4e2a\u6587\u672c\u8fdb\u884c\u68c0\u6d4b\uff1a<\/p>\n<pre><code>python detect.py \\\r\n--model_path path\/to\/saved\/model \\\r\n--input_text \"\u8981\u68c0\u6d4b\u7684\u6587\u672c\u5185\u5bb9\" \\\r\n--output_format json\r\n<\/code><\/pre>\n<p>\u6279\u91cf\u68c0\u6d4b\u6587\u672c\uff1a<\/p>\n<pre><code>python batch_detect.py \\\r\n--model_path path\/to\/saved\/model \\\r\n--input_file input.txt \\\r\n--output_file results.json\r\n<\/code><\/pre>\n<h3>6. \u9ad8\u7ea7\u529f\u80fd<\/h3>\n<h4>6.1 \u6a21\u578b\u5fae\u8c03<\/h4>\n<p>\u5982\u679c\u9700\u8981\u9488\u5bf9\u7279\u5b9a\u9886\u57df\u7684\u6587\u672c\u8fdb\u884c\u4f18\u5316\uff0c\u53ef\u4ee5\u4f7f\u7528\u81ea\u5df1\u7684\u6570\u636e\u96c6\u5bf9\u6a21\u578b\u8fdb\u884c\u5fae\u8c03\uff1a<\/p>\n<pre><code>python finetune.py \\\r\n--pretrained_model_path path\/to\/pretrained\/model \\\r\n--train_data path\/to\/domain\/data \\\r\n--output_dir path\/to\/finetuned\/model\r\n<\/code><\/pre>\n<h4>6.2 \u53ef\u89c6\u5316\u5206\u6790<\/h4>\n<p>\u4f7f\u7528\u5185\u7f6e\u7684\u53ef\u89c6\u5316\u5de5\u5177\u5206\u6790\u68c0\u6d4b\u7ed3\u679c\uff1a<\/p>\n<pre><code>python visualize.py \\\r\n--results_file path\/to\/results.json \\\r\n--output_dir path\/to\/visualizations\r\n<\/code><\/pre>\n<h4>6.3 API\u670d\u52a1\u90e8\u7f72<\/h4>\n<p>\u5c06\u6a21\u578b\u90e8\u7f72\u4e3aREST API\u670d\u52a1\uff1a<\/p>\n<pre><code>python serve.py \\\r\n--model_path path\/to\/saved\/model \\\r\n--host 0.0.0.0 \\\r\n--port 8000\r\n<\/code><\/pre>\n<h3>7. \u6ce8\u610f\u4e8b\u9879<\/h3>\n<ul>\n<li>\u5efa\u8bae\u4f7f\u7528GPU\u8fdb\u884c\u6a21\u578b\u8bad\u7ec3\u4ee5\u63d0\u5347\u6548\u7387<\/li>\n<li>\u8bad\u7ec3\u6570\u636e\u8d28\u91cf\u5bf9\u6a21\u578b\u6027\u80fd\u6709\u91cd\u8981\u5f71\u54cd<\/li>\n<li>\u5b9a\u671f\u66f4\u65b0\u6a21\u578b\u4ee5\u9002\u5e94\u65b0\u7684AI\u751f\u6210\u6587\u672c\u7279\u5f81<\/li>\n<li>\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u90e8\u7f72\u65f6\u6ce8\u610f\u6a21\u578b\u7684\u7248\u672c\u7ba1\u7406<\/li>\n<li>\u5efa\u8bae\u4fdd\u5b58\u68c0\u6d4b\u7ed3\u679c\u7528\u4e8e\u540e\u7eed\u5206\u6790\u548c\u6a21\u578b\u4f18\u5316<\/li>\n<\/ul>\n<h3>8. \u5e38\u89c1\u95ee\u9898\u89e3\u7b54<\/h3>\n<p>Q: \u6a21\u578b\u652f\u6301\u54ea\u4e9b\u8bed\u8a00\uff1f<br \/>\nA: \u76ee\u524d\u4e3b\u8981\u652f\u6301\u82f1\u8bed\uff0c\u5176\u4ed6\u8bed\u8a00\u9700\u8981\u4f7f\u7528\u76f8\u5e94\u7684\u6570\u636e\u96c6\u8fdb\u884c\u8bad\u7ec3\u3002<\/p>\n<p>Q: \u5982\u4f55\u63d0\u9ad8\u68c0\u6d4b\u51c6\u786e\u7387\uff1f<br \/>\nA: \u53ef\u4ee5\u901a\u8fc7\u589e\u52a0\u8bad\u7ec3\u6570\u636e\u3001\u8c03\u6574\u6a21\u578b\u53c2\u6570\u3001\u4f7f\u7528\u9886\u57df\u7279\u5b9a\u6570\u636e\u8fdb\u884c\u5fae\u8c03\u6765\u63d0\u5347\u6027\u80fd\u3002<\/p>\n<p>Q: \u68c0\u6d4b\u901f\u5ea6\u5982\u4f55\u4f18\u5316\uff1f<br \/>\nA: \u53ef\u4ee5\u901a\u8fc7\u6279\u5904\u7406\u3001\u6a21\u578b\u91cf\u5316\u3001\u4f7f\u7528GPU\u52a0\u901f\u7b49\u65b9\u5f0f\u63d0\u5347\u68c0\u6d4b\u901f\u5ea6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ImBD (Imitate Before Detect) \u662f\u4e00\u4e2a\u5f00\u521b\u6027\u7684\u673a\u5668\u751f\u6210\u6587\u672c\u68c0\u6d4b\u9879\u76ee\uff0c\u8be5\u9879\u76ee\u53d1\u8868\u4e8eAAAI 2025\u4f1a\u8bae\u3002\u968f\u7740ChatGPT\u7b49\u5927\u8bed\u8a00\u6a21\u578b(LLMs)\u7684\u5e7f\u6cdb\u5e94\u7528\uff0c\u8bc6\u522bAI\u751f\u6210\u7684\u6587\u672c\u5185\u5bb9\u53d8\u5f97\u8d8a\u6765\u8d8a\u5177\u6709\u6311\u6218\u6027\u3002ImBD\u9879\u76ee&#8230;<\/p>\n","protected":false},"author":1,"featured_media":61618,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[230,204],"class_list":["post-18217","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tool","tag-aikaiyuanxiangmu","tag-aijiaoyugongju"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/posts\/18217","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/comments?post=18217"}],"version-history":[{"count":0,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/posts\/18217\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/media\/61618"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/media?parent=18217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/categories?post=18217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/tags?post=18217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}