{"id":7750,"date":"2024-10-27T23:04:21","date_gmt":"2024-10-27T15:04:21","guid":{"rendered":"https:\/\/www.aisharenet.com\/?p=7750"},"modified":"2024-10-27T23:08:08","modified_gmt":"2024-10-27T15:08:08","slug":"local-file-organizer","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/ja\/local-file-organizer\/","title":{"rendered":"Local File Organizer\uff1a\u672c\u5730\u6587\u4ef6\u6574\u7406\u52a9\u624b\uff0cAI\u81ea\u52a8\u6574\u7406\u6587\u4ef6"},"content":{"rendered":"<p>Local File Organizer \u662f\u4e00\u4e2a\u7531 AI \u9a71\u52a8\u7684\u672c\u5730\u6587\u4ef6\u7ba1\u7406\u5de5\u5177\uff0c\u65e8\u5728\u5e2e\u52a9\u7528\u6237\u6574\u7406\u548c\u5206\u7c7b\u8ba1\u7b97\u673a\u4e0a\u7684\u6587\u4ef6\u3002\u8be5\u5de5\u5177\u5229\u7528\u5148\u8fdb\u7684 AI \u6a21\u578b\uff0c\u5982 Llama3.2 3B \u548c Llava v1.6\uff0c\u901a\u8fc7 <a href=\"https:\/\/www.kdjingpai.com\/ja\/nexa\/\">Nexa<\/a> SDK \u5b9e\u73b0\u6587\u4ef6\u7684\u667a\u80fd\u626b\u63cf\u3001\u91cd\u7ec4\u548c\u5206\u7c7b\uff0c\u786e\u4fdd\u7528\u6237\u9690\u79c1\u7684\u540c\u65f6\u63d0\u4f9b\u9ad8\u6548\u7684\u6587\u4ef6\u7ba1\u7406\u4f53\u9a8c\u3002<\/p>\n<blockquote><p>\u7b80\u5355\u6765\u8bf4\uff0c\u672c\u5730\u6587\u4ef6\u6574\u7406\u5668\u4f1a\u626b\u63cf\u4f60\u6307\u5b9a\u7684\u6587\u4ef6\u5939\uff0c\u6839\u636e\u6587\u4ef6\u7684\u5185\u5bb9\uff0c\u81ea\u52a8\u7ed9\u5b83\u4eec\u6253\u6807\u7b7e\u3001\u5206\u7c7b\u3001\u751f\u6210\u65b0\u7684\u6587\u4ef6\u540d\uff0c\u8fd8\u80fd\u653e\u5230\u5bf9\u5e94\u7684\u6587\u4ef6\u5939\u91cc\u3002<\/p>\n<p>\u5168\u7a0b\u4e0d\u7528\u8054\u7f51\uff0c\u6240\u6709\u7684\u5904\u7406\u90fd\u5728\u4f60\u81ea\u5df1\u7684\u8bbe\u5907\u4e0a\u5b8c\u6210\u3002<\/p>\n<p><strong>\u53ea\u8981\u4f60\u8f93\u5165\u4e24\u4e2a\u8def\u5f84\uff0c\u4e00\u4e2a\u662f\u9700\u8981\u6574\u7406\u7684\u6587\u4ef6\u5939\u8def\u5f84\uff0c\u53e6\u4e00\u4e2a\u662f\u60f3\u4fdd\u5b58\u6574\u7406\u540e\u6587\u4ef6\u7684\u6587\u4ef6\u5939\u8def\u5f84\uff0cAI\u5c31\u4f1a\u5f00\u59cb\u5de5\u4f5c\u3002<\/strong><\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<h2>\u529f\u80fd\u5217\u8868<\/h2>\n<ul>\n<li><strong>\u6587\u4ef6\u626b\u63cf<\/strong>\uff1a\u81ea\u52a8\u626b\u63cf\u6307\u5b9a\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6587\u4ef6\u3002<\/li>\n<li><strong>\u5185\u5bb9\u5206\u6790<\/strong>\uff1a\u4f7f\u7528\u8bed\u8a00\u6a21\u578b\u548c\u89c6\u89c9\u8bed\u8a00\u6a21\u578b\u5206\u6790\u6587\u4ef6\u5185\u5bb9\u3002<\/li>\n<li><strong>\u6587\u4ef6\u5206\u7c7b<\/strong>\uff1a\u6839\u636e\u5185\u5bb9\u3001\u65e5\u671f\u548c\u7c7b\u578b\u5bf9\u6587\u4ef6\u8fdb\u884c\u5206\u7c7b\u3002<\/li>\n<li><strong>\u6587\u4ef6\u91cd\u547d\u540d<\/strong>\uff1a\u751f\u6210\u76f8\u5173\u63cf\u8ff0\u548c\u6587\u4ef6\u540d\u3002<\/li>\n<li><strong>\u9690\u79c1\u4fdd\u62a4<\/strong>\uff1a\u6240\u6709\u64cd\u4f5c\u5747\u5728\u672c\u5730\u5b8c\u6210\uff0c\u65e0\u9700\u8054\u7f51\u3002<\/li>\n<li><strong>\u591a\u79cd\u6587\u4ef6\u652f\u6301<\/strong>\uff1a\u652f\u6301\u6587\u672c\u3001\u56fe\u7247\u3001PDF\u3001Excel\u3001PPT\u3001CSV \u7b49\u591a\u79cd\u6587\u4ef6\u683c\u5f0f\u3002<\/li>\n<li><strong>\u5b9e\u65f6\u8fdb\u5ea6\u6761<\/strong>\uff1a\u663e\u793a\u6587\u4ef6\u5206\u6790\u7684\u5b9e\u65f6\u8fdb\u5ea6\u3002<\/li>\n<li><strong>\u9759\u9ed8\u6a21\u5f0f<\/strong>\uff1a\u4fdd\u5b58\u6240\u6709\u65e5\u5fd7\u5230\u6587\u672c\u6587\u4ef6\uff0c\u51cf\u5c11\u64cd\u4f5c\u566a\u97f3\u3002<\/li>\n<li><strong>\u5e72\u8fd0\u884c\u6a21\u5f0f<\/strong>\uff1a\u5728\u63d0\u4ea4\u66f4\u6539\u524d\u68c0\u67e5\u6392\u5e8f\u7ed3\u679c\u3002<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h2>\u4f7f\u7528\u5e2e\u52a9<\/h2>\n<h3 id=\"_0\">\u5b89\u88c5 \ud83d\udee0<\/h3>\n<blockquote><p>\u5bf9\u4e8e SDK \u5b89\u88c5\u548c\u6a21\u578b\u76f8\u5173\u95ee\u9898\uff0c\u8bf7\u5728\u00a0<a href=\"https:\/\/github.com\/NexaAI\/nexa-sdk\/issues\">\u8fd9\u91cc<\/a>\u00a0\u53d1\u5e03\u3002<\/p><\/blockquote>\n<h4 id=\"_2\">1. \u5b89\u88c5 Python<\/h4>\n<p>\u5728\u5b89\u88c5\u672c\u5730\u6587\u4ef6\u7ec4\u7ec7\u5668\u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u60a8\u7684\u7cfb\u7edf\u4e0a\u5df2\u5b89\u88c5 Python\u3002\u6211\u4eec\u5efa\u8bae\u4f7f\u7528 Python 3.12 \u6216\u66f4\u9ad8\u7248\u672c\u3002<\/p>\n<p>\u60a8\u53ef\u4ee5\u4ece\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d Python\u3002<\/p>\n<p>\u8bf7\u6309\u7167\u60a8\u64cd\u4f5c\u7cfb\u7edf\u7684\u5b89\u88c5\u8bf4\u660e\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n<h4 id=\"_6\">2. \u514b\u9686\u4ee3\u7801\u5e93<\/h4>\n<p>\u4f7f\u7528 Git \u5c06\u6b64\u4ee3\u7801\u5e93\u514b\u9686\u5230\u60a8\u7684\u672c\u5730\u673a\u5668\uff1a<\/p>\n<pre><code class=\"language-shell hljs\">git clone https:\/\/github.com\/QiuYannnn\/Local-File-Organizer.git\r\n<\/code><\/pre>\n<p>\u6216\u8005\u5c06\u4ee3\u7801\u5e93\u4e0b\u8f7d\u4e3a ZIP \u6587\u4ef6\u5e76\u63d0\u53d6\u5230\u60a8\u5e0c\u671b\u7684\u4f4d\u7f6e\u3002<\/p>\n<h4 id=\"_10\">3. \u8bbe\u7f6e Python \u73af\u5883<\/h4>\n<p>\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a\u00a0<code>local_file_organizer<\/code>\u00a0\u7684\u65b0 Conda \u73af\u5883\uff0c\u4f7f\u7528 Python 3.12\uff1a<\/p>\n<pre><code class=\"language-shell hljs\">conda create --name local_file_organizer python=3.12\r\n<\/code><\/pre>\n<p>\u6fc0\u6d3b\u8be5\u73af\u5883\uff1a<\/p>\n<pre><code class=\"language-shell hljs\">conda activate local_file_organizer\r\n<\/code><\/pre>\n<h4 id=\"_15\">4. \u5b89\u88c5 Nexa SDK \ufe0f<\/h4>\n<h5 id=\"_16\">CPU \u5b89\u88c5<\/h5>\n<p>\u8981\u5b89\u88c5 Nexa SDK \u7684 CPU \u7248\u672c\uff0c\u8bf7\u8fd0\u884c\uff1a<\/p>\n<pre><code class=\"language-shell hljs\">pip install nexaai --prefer-binary --index-url https:\/\/nexaai.github.io\/nexa-sdk\/whl\/cpu --extra-index-url https:\/\/pypi.org\/simple --no-cache-dir\r\n<\/code><\/pre>\n<h5 id=\"_19\">GPU \u5b89\u88c5 (Metal &#8211; macOS)<\/h5>\n<p>\u8981\u5b89\u88c5\u652f\u6301 Metal (macOS) \u7684 GPU \u7248\u672c\uff0c\u8bf7\u8fd0\u884c\uff1a<\/p>\n<pre><code class=\"language-shell hljs\">CMAKE_ARGS=\"-DGGML_METAL=ON -DSD_METAL=ON\" pip install nexaai --prefer-binary --index-url https:\/\/nexaai.github.io\/nexa-sdk\/whl\/metal --extra-index-url https:\/\/pypi.org\/simple --no-cache-dir\r\n<\/code><\/pre>\n<p>\u6709\u5173\u652f\u6301\u00a0<strong>CUDA<\/strong>\u00a0\u548c\u00a0<strong>AMD GPU<\/strong>\u00a0\u7684 Nexa SDK \u7684\u8be6\u7ec6\u5b89\u88c5\u8bf4\u660e\uff0c\u8bf7\u53c2\u9605\u4e3b README \u4e2d\u7684\u00a0<a href=\"https:\/\/github.com\/NexaAI\/nexa-sdk?tab=readme-ov-file#installation\">\u5b89\u88c5\u90e8\u5206<\/a>\u3002<\/p>\n<h4 id=\"_23\">5. \u5b89\u88c5\u4f9d\u8d56<\/h4>\n<ol>\n<li>\u786e\u4fdd\u60a8\u5728\u9879\u76ee\u76ee\u5f55\u4e2d\uff1a\n<pre><code class=\"language-shell hljs\">cd path\/to\/Local-File-Organizer\r\n<\/code><\/pre>\n<p>\u5c06\u00a0<code>path\/to\/Local-File-Organizer<\/code>\u00a0\u66ff\u6362\u4e3a\u60a8\u514b\u9686\u6216\u63d0\u53d6\u9879\u76ee\u7684\u5b9e\u9645\u8def\u5f84\u3002<\/li>\n<li>\u5b89\u88c5\u6240\u9700\u7684\u4f9d\u8d56\uff1a\n<pre><code class=\"language-shell hljs\">pip install -r requirements.txt\r\n<\/code><\/pre>\n<\/li>\n<\/ol>\n<p><strong>\u6ce8\u610f\uff1a<\/strong>\u00a0\u5982\u679c\u60a8\u5728\u4efb\u4f55\u5305\u4e0a\u9047\u5230\u95ee\u9898\uff0c\u8bf7\u5355\u72ec\u5b89\u88c5\u5b83\u4eec\uff1a<\/p>\n<pre><code class=\"language-shell hljs\">pip install nexa Pillow pytesseract PyMuPDF python-docx\r\n<\/code><\/pre>\n<p>\u5728\u6fc0\u6d3b\u73af\u5883\u5e76\u5b89\u88c5\u4f9d\u8d56\u540e\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fd0\u884c\u811a\u672c\uff1a<\/p>\n<h4 id=\"_28\">6. \u8fd0\u884c\u811a\u672c \ud83c\udf89<\/h4>\n<pre><code class=\"language-shell hljs\">python main.py<\/code><\/pre>\n<p>&nbsp;<\/p>\n<h3>\u4f7f\u7528\u6d41\u7a0b<\/h3>\n<ol>\n<li><strong>\u6307\u5b9a\u8f93\u5165\u76ee\u5f55<\/strong>\uff1a \u5728\u8fd0\u884c\u7a0b\u5e8f\u540e\uff0c\u8f93\u5165\u9700\u8981\u6574\u7406\u7684\u6587\u4ef6\u5939\u8def\u5f84\uff0c\u4f8b\u5982\uff1a\n<pre><code>\/home\/user\/documents\/input_files\r\n<\/code><\/pre>\n<\/li>\n<li><strong>\u6307\u5b9a\u8f93\u51fa\u76ee\u5f55<\/strong>\uff1a \u8f93\u5165\u6574\u7406\u540e\u6587\u4ef6\u5b58\u653e\u7684\u6587\u4ef6\u5939\u8def\u5f84\uff0c\u6216\u6309 Enter \u4f7f\u7528\u9ed8\u8ba4\u8def\u5f84\uff1a\n<pre><code>\/home\/user\/documents\/organized_folder\r\n<\/code><\/pre>\n<\/li>\n<li><strong>\u67e5\u770b\u8fdb\u5ea6<\/strong>\uff1a \u7a0b\u5e8f\u4f1a\u663e\u793a\u6587\u4ef6\u8def\u5f84\u52a0\u8f7d\u65f6\u95f4\u548c\u76ee\u5f55\u6811\uff0c\u7528\u6237\u53ef\u4ee5\u5b9e\u65f6\u67e5\u770b\u6587\u4ef6\u5206\u6790\u8fdb\u5ea6\u3002<\/li>\n<li><strong>\u6587\u4ef6\u5206\u7c7b\u548c\u91cd\u547d\u540d<\/strong>\uff1a \u7a0b\u5e8f\u4f1a\u6839\u636e\u6587\u4ef6\u5185\u5bb9\u751f\u6210\u76f8\u5173\u63cf\u8ff0\u3001\u6587\u4ef6\u5939\u540d\u79f0\u548c\u6587\u4ef6\u540d\uff0c\u5e76\u663e\u793a\u5728\u7ec8\u7aef\u3002<\/li>\n<li><strong>\u5b8c\u6210\u6574\u7406<\/strong>\uff1a \u6574\u7406\u5b8c\u6210\u540e\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u6307\u5b9a\u7684\u8f93\u51fa\u76ee\u5f55\u67e5\u770b\u5206\u7c7b\u540e\u7684\u6587\u4ef6\u3002<\/li>\n<\/ol>\n<h3>\u9ad8\u7ea7\u529f\u80fd<\/h3>\n<ul>\n<li><strong>\u9759\u9ed8\u6a21\u5f0f<\/strong>\uff1a \u5728\u8fd0\u884c\u7a0b\u5e8f\u65f6\u6dfb\u52a0 <code>--silent<\/code> \u53c2\u6570\uff0c\u4fdd\u5b58\u6240\u6709\u65e5\u5fd7\u5230\u6587\u672c\u6587\u4ef6\uff1a\n<pre><code>python main.py --silent\r\n<\/code><\/pre>\n<\/li>\n<li><strong>\u5e72\u8fd0\u884c\u6a21\u5f0f<\/strong>\uff1a \u5728\u8fd0\u884c\u7a0b\u5e8f\u65f6\u6dfb\u52a0 <code>--dry-run<\/code> \u53c2\u6570\uff0c\u68c0\u67e5\u6392\u5e8f\u7ed3\u679c\u800c\u4e0d\u63d0\u4ea4\u66f4\u6539\uff1a\n<pre><code>python main.py --dry-run\r\n<\/code><\/pre>\n<\/li>\n<li><strong>\u66f4\u6539\u6a21\u578b<\/strong>\uff1a \u7528\u6237\u53ef\u4ee5\u901a\u8fc7 CLI \u66f4\u6539\u4f7f\u7528\u7684 AI \u6a21\u578b\uff1a\n<pre><code>python main.py --model Llama3.2\r\n<\/code><\/pre>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Local File Organizer \u662f\u4e00\u4e2a\u7531 AI \u9a71\u52a8\u7684\u672c\u5730\u6587\u4ef6\u7ba1\u7406\u5de5\u5177\uff0c\u65e8\u5728\u5e2e\u52a9\u7528\u6237\u6574\u7406\u548c\u5206\u7c7b\u8ba1\u7b97\u673a\u4e0a\u7684\u6587\u4ef6\u3002\u8be5\u5de5\u5177\u5229\u7528\u5148\u8fdb\u7684 AI \u6a21\u578b\uff0c\u5982 Llama3.2 3B \u548c Llava v1.6\uff0c\u901a\u8fc7 Nexa SDK \u5b9e\u73b0\u6587\u4ef6\u7684\u667a&#8230;<\/p>\n","protected":false},"author":1,"featured_media":61157,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[230],"class_list":["post-7750","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tool","tag-aikaiyuanxiangmu"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/posts\/7750","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=7750"}],"version-history":[{"count":0,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/posts\/7750\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/media\/61157"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/media?parent=7750"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/categories?post=7750"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/ja\/wp-json\/wp\/v2\/tags?post=7750"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}