[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"tool-receyuki--stable-diffusion-prompt-reader":3,"similar-receyuki--stable-diffusion-prompt-reader":197},{"id":4,"github_repo":5,"name":6,"description_en":7,"description_zh":8,"ai_summary_zh":8,"readme_en":9,"readme_zh":10,"quickstart_zh":11,"use_case_zh":12,"hero_image_url":13,"owner_login":14,"owner_name":15,"owner_avatar_url":16,"owner_bio":17,"owner_company":17,"owner_location":18,"owner_email":19,"owner_twitter":17,"owner_website":17,"owner_url":20,"languages":21,"stars":34,"forks":35,"last_commit_at":36,"license":37,"difficulty_score":38,"env_os":39,"env_gpu":40,"env_ram":40,"env_deps":41,"category_tags":46,"github_topics":50,"view_count":61,"oss_zip_url":17,"oss_zip_packed_at":17,"status":62,"created_at":63,"updated_at":64,"faqs":65,"releases":96},3403,"receyuki\u002Fstable-diffusion-prompt-reader","stable-diffusion-prompt-reader","A simple standalone viewer for reading prompts from Stable Diffusion generated image outside the webui.","Stable Diffusion Prompt Reader 是一款轻量级的独立查看器，专为读取 Stable Diffusion 生成图片中隐藏的提示词（Prompt）而设计。在使用各类 AI 绘图工具时，生成的图片往往嵌入了详细的创作参数，但若不通过原始生成平台或复杂代码，普通用户很难直接查看这些信息。这款工具完美解决了这一痛点，让用户无需启动庞大的 WebUI 界面，即可轻松提取、编辑或移除图片内的元数据。\n\n它非常适合设计师、AI 艺术爱好者以及需要整理素材的研究人员使用。无论是想学习优秀作品的咒语写法，还是批量管理本地图库，都能从中获益。其技术亮点在于广泛的兼容性，支持 Windows、macOS 和 Linux 全平台，并能识别 A1111 WebUI、NovelAI、InvokeAI 等多种主流生成工具的格式。操作极其简便，只需拖拽图片即可查看详情，支持一键复制提示词、导出文本文件，甚至反向将提示词写入图片。此外，它还提供了命令行接口（CLI）以满足开发者需求，并具备深色\u002F浅色模式切换及按字母排序等贴心功能，是探索和管理 AI 绘画作品的高效助手。","\u003Cdiv align=\"center\">\n    \u003Cimg alt=\"icon\" src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Freceyuki_stable-diffusion-prompt-reader_readme_80b52c2df519.png\" width=20% height=20%>\n    \u003Ch1>Stable Diffusion Prompt Reader\u003C\u002Fh1>\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader\u002Freleases\u002Flatest\">\n        \u003Cimg alt=\"GitHub releases\" src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fdownloads\u002Freceyuki\u002Fstable-diffusion-prompt-reader\u002Ftotal\">\u003C\u002Fa>\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader\u002Fblob\u002Fmaster\u002FLICENSE\">\n        \u003Cimg alt=\"GitHub\" src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002Freceyuki\u002Fstable-diffusion-prompt-reader\">\u003C\u002Fa>\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader\u002Freleases\u002Flatest\">\n        \u003Cimg alt=\"GitHub release (latest by date)\" src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002Freceyuki\u002Fstable-diffusion-prompt-reader\">\u003C\u002Fa>\n    \u003Ca href=\"https:\u002F\u002Fpypi.org\u002Fproject\u002Fsd-prompt-reader\u002F\">\n        \u003Cimg alt=\"PyPI\" src=\"https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fv\u002Fsd-prompt-reader\">\u003C\u002Fa>\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpsf\u002Fblack\">\n        \u003Cimg alt=\"Code style: black\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fcode%20style-black-000000.svg\">\u003C\u002Fa>\n    \u003Cimg alt=\"platform\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fplatform-windows%20%7C%20macos%20%7C%20linux-lightgrey\">\n    \u003Cbr>\u003Cbr>\n\n[简体中文](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader\u002Fblob\u002Fmaster\u002FREADME.zh-Hans.md) | [English](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader\u002Fblob\u002Fmaster\u002FREADME.md)\n\nA simple standalone viewer for reading prompt from Stable Diffusion generated image outside the webui.\n    \u003Cbr>\n  \u003Cp>\n    \u003Ca href=\"#features\">Features\u003C\u002Fa> •\n    \u003Ca href=\"#supported-formats\">Supported Formats\u003C\u002Fa> •\n    \u003Ca href=\"#download\">Download\u003C\u002Fa> •\n    \u003Ca href=\"#usage\">Usage\u003C\u002Fa> •\n    \u003Ca href=\"#cli\">CLI\u003C\u002Fa> •\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fcomfyui-prompt-reader-node\">ComfyUI Node\u003C\u002Fa> •\n    \u003Ca href=\"#faq\">FAQ\u003C\u002Fa> •\n    \u003Ca href=\"#credits\">Credits\u003C\u002Fa>\n  \u003C\u002Fp>\n    \u003Cimg src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Freceyuki_stable-diffusion-prompt-reader_readme_78f9c7d86750.png\">\n\u003C\u002Fdiv>\n\n> [!TIP]\n> The SD Prompt Reader is now available as a ComfyUI node. Check out \n> the [ComfyUI Prompt Reader Node](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fcomfyui-prompt-reader-node) for more information.\n\n## Features\n- Support macOS, Windows and Linux.\n- Provides both GUI and CLI\n- Simple drag and drop interaction.\n- Copy prompt to clipboard.\n- Remove prompt from image.\n- Export prompt to text file.\n- Edit or import prompt to images\n- Vertical orientation display and sorting by alphabet\n- Detect generation tool.\n- Multiple formats support.\n- Dark and light mode support.\n\n## Supported Formats\n|                                                                                        | PNG | JPEG | WEBP | TXT* |\n|----------------------------------------------------------------------------------------|:---:|:----:|:----:|:----:|\n| [A1111's webUI](https:\u002F\u002Fgithub.com\u002FAUTOMATIC1111\u002Fstable-diffusion-webui)               |  ✅  |  ✅   |  ✅   |  ✅   |\n| [Easy Diffusion](https:\u002F\u002Fgithub.com\u002Feasydiffusion\u002Feasydiffusion)                       |  ✅  |  ✅   |  ✅   |      |\n| [StableSwarmUI](https:\u002F\u002Fgithub.com\u002FStability-AI\u002FStableSwarmUI)*                        |  ✅  |  ✅   |      |      |\n| [StableSwarmUI (prior to 0.5.8-alpha)](https:\u002F\u002Fgithub.com\u002FStability-AI\u002FStableSwarmUI)* |  ✅  |  ✅   |      |      |\n| [Fooocus-MRE](https:\u002F\u002Fgithub.com\u002FMoonRide303\u002FFooocus-MRE)*                             |  ✅  |  ✅   |      |      |\n| [NovelAI (stealth pnginfo)](https:\u002F\u002Fnovelai.net\u002F)                                      |  ✅  |      |  ✅   |      |\n| [NovelAI (legacy)](https:\u002F\u002Fnovelai.net\u002F)                                               |  ✅  |      |      |      |\n| [InvokeAI](https:\u002F\u002Fgithub.com\u002Finvoke-ai\u002FInvokeAI)                                      |  ✅  |      |      |      |\n| [InvokeAI (prior to 2.3.5-post.2)](https:\u002F\u002Fgithub.com\u002Finvoke-ai\u002FInvokeAI)              |  ✅  |      |      |      |\n| [InvokeAI (prior to 1.15)](https:\u002F\u002Fgithub.com\u002Finvoke-ai\u002FInvokeAI)                      |  ✅  |      |      |      |\n| [ComfyUI](https:\u002F\u002Fgithub.com\u002Fcomfyanonymous\u002FComfyUI)*                                  |  ✅  |      |      |      |\n| [Draw Things](https:\u002F\u002Fdrawthings.ai\u002F)                                                  |  ✅  |      |      |      |\n| Naifu(4chan)                                                                           |  ✅  |      |      |      |\n\n\\* Limitations apply. See [format limitations](#TXT).\n\n> [!NOTE]\n> If you are using a tool or format that is not on this list, please help me to support your format \n> by uploading the original file generated by your tool to the issues, thx.\n\n> [!TIP]\n> For ComfyUI users, the SD Prompt Reader is now available as a ComfyUI node. \n> The [ComfyUI Prompt Reader Node](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fcomfyui-prompt-reader-node) is a subproject \n> of this project, and it is recommended to embed the [Prompt Saver node](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fcomfyui-prompt-reader-node#prompt-saver-node--parameter-generator-node) in the [ComfyUI Prompt Reader Node](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fcomfyui-prompt-reader-node) within your workflow to ensure maximum compatibility.\n\n## Download\n### For Windows users\nDownload executable from [GitHub Releases](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader\u002Freleases\u002Flatest)\n### For macOS users\nDownload executable from [GitHub Releases](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader\u002Freleases\u002Flatest)\n#### Install via Homebrew Cask\nYou may also install SD Prompt Reader via [Homebrew](http:\u002F\u002Fbrew.sh\u002F) cask.  \n```bash\nbrew install --no-quarantine receyuki\u002Fsd-prompt-reader\u002Fsd-prompt-reader\n```\nThe parameter `--no-quarantine` is used since the SD Prompt Reader is currently unsigned as I mentioned [here](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader#sd-prompt-readerapp-is-damaged-and-cant-be-opened-you-should-move-it-to-the-trash)\n### For Linux users (not regularly tested)\n~~I'm pretty sure linux users can figure things out without an executable.~~\n- The minimum version of Python required is 3.10\n- Make sure you have the tkinter package installed in your Python.  \nIf not, install the python3-tk package with package managers.  \ne.g. `sudo apt-get install python3-tk` for Debian-based distributions  \n\nYou can choose to install with pip or run it manually\n#### Install with pip or pipx\n```bash\npip install sd-prompt-reader\n```\nor\n```bash\npipx install sd-prompt-reader\n```\nTo launch the GUI just enter `sd-prompt-reader` in the terminal.  \nFor the CLI, please use `sd-prompt-reader-cli`.\n#### Run source code manually\n1. Clone this repo.\n    ```bash\n    git clone https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader.git\n    ```\n   or download repo as a zip.\n2. CD to the directory and install dependencies.\n    ```bash\n    cd stable-diffusion-prompt-reader  \n    pip install -r requirements.txt\n    ```\n3. Run.\n    ```bash\n   python -m sd_prompt_reader.app\n   ```\n\n## Usage\n### Read prompt\n- Open the executable file (.exe or .app) and drag and drop the image into the window.\n\nOR\n- Right click on the image and select open with SD Prompt Reader\n\nOR\n- Drag and drop the image directly onto executable (.exe or .app).\n\n### Export prompt to a text file\n- Click \"Export\" will generate a txt file alongside the image file.\n- To save to another location, click the expand arrow and click \"select directory\".  \n![export](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Freceyuki_stable-diffusion-prompt-reader_readme_67f628019176.png)\n\n### Remove prompt from image\n- Click \"Clear\" will generate a new image file with suffix \"_data_removed\" alongside the original image file.\n- To save to another location, click the expand arrow and click \"select directory\".\n- To overwrite the original image file, click the expand arrow and click \"overwrite the original image\".  \n![remove](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Freceyuki_stable-diffusion-prompt-reader_readme_c190da5be367.png)\n\n### Edit image\n> [!NOTE]\n> The edited image will be written in A1111 format, meaning that image in any format \n> will become A1111 format after editing.\n\n- Click \"Edit\" to enter edit mode.\n- Edit the prompt directly in the textbox or import a metadata file in txt format.\n- Click \"Save\" will generate a edited image file with suffix \"_edited\" alongside the original image file.\n- To save to another location, click the expand arrow and click \"select directory\".\n- To overwrite the original image file, click the expand arrow and click \"overwrite the original image\".  \n![save](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Freceyuki_stable-diffusion-prompt-reader_readme_3c6a455bfdbe.png)\n\n### Copy as single line prompt\nCopy image prompt and setting in a format that can be read by [Prompts from file or textbox](https:\u002F\u002Fgithub.com\u002FAUTOMATIC1111\u002Fstable-diffusion-webui\u002Fwiki\u002FFeatures#prompts-from-file-or-textbox) \nThe following parameters are supported:\n\n| Setting                 | Parameter            |\n|-------------------------|----------------------|\n| Seed                    | --seed               |\n| Variation seed strength | --subseed_strength   |\n| Seed resize from        | --seed_resize_from_h |\n| Seed resize from        | --seed_resize_from_w |\n| Sampler                 | --sampler_name       |\n| Steps                   | --steps              |\n| CFG scale               | --cfg_scale          |\n| Size                    | --width              |\n| Size                    | --height             |\n| Face restoration        | --restore_faces      |\n\n- Click the expand arrow and click \"single line prompt\".\n- Paste it into the textbox below the webui script \"Prompts from file or textbox\".  \n![single line prompt](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Freceyuki_stable-diffusion-prompt-reader_readme_36e1344ee08b.png)\n\n### ComfyUI SDXL workflow\n> [!NOTE]\n> The SDXL workflow does not support editing. \n> If necessary, please remove prompts from image before edit. \n\nIf the image's workflow includes multiple sets of SDXL prompts, \nnamely Clip G(text_g), Clip L(text_l), and Refiner, the SD Prompt Reader will switch to the multi-set prompt display mode as shown in the image below. \nThere are two interface options available for the multi-set prompt display mode, and you can switch between them using buttons.  \n![comfyui_sdxl.png](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Freceyuki_stable-diffusion-prompt-reader_readme_6292166b3668.png)\n\n## CLI\nA CLI tool for reading, modifying, and clearing metadata is provided. \n### Platforms\n#### For Windows users\n`SD Prompt Reader CLI.exe` will be placed in the zip package as a separate executable.   \nExamples:\n`\"SD Prompt Reader CLI.exe\" -i example.png`  \n#### For macOS users\nThe executable is located at `SD Prompt Reader.app\u002FContents\u002FMacOS\u002FSD Prompt Reader`.  \nExamples:\n`\u002FApplications\u002FSD\\ Prompt\\ Reader.app\u002FContents\u002FMacOS\u002FSD\\ Prompt\\ Reader -i example.png`  \n#### For pip users\nExamples:\n`sd-prompt-reader-cli -i example.png`\n### Modes and Options\n#### Modes\n- Read Mode: Activated by `-r` or `--read` flag.\n- Write Mode: Activated by `-w` or `--write` flag.\n- Clear Mode: Activated by `-c` or `--clear` flag.\n#### General Options\n- `-i`, `--input-path`: Path to the input image file or directory containing image files, required parameter.\n- `-o`, `--output-path`: Path to the output file or directory where the processed files will be saved.\n- `-l`, `--log-level`: Specify the log verbosity level (e.g.DEBUG, INFO, WARN, ERROR).\n#### Read Options\n- `-f`, `--format-type`: Specifies the output metadata format, choices are \"TXT\" or \"JSON\". Default format is \"TXT\"\n#### Write Options\n- `-m`, `--metadata`: Provides a metadata file for writing.\n- `-p`, `--positive`: Provides a positive prompt string for writing.\n- `-n`, `--negative`: Provides a negative prompt string for writing.\n- `-s`, `--setting`: Provides a setting string for writing.\n### Basic Usage\n- If no output path is specified, the modified image will be saved in the current directory \nwith a suffix added to the original filename.  \n- To overwrite the source file, set the output path equal to the input path.\n- The write mode only supports modifications to a single image.\n#### Read Mode\n- Read metadata from an image.\n- Usage:  \n`sd-prompt-reader-cli [-r] -i \u003Cinput_path> [--format-type \u003Cformat>] [-o \u003Coutput_path>]`\n- Examples:  \n`sd-prompt-reader-cli -i example.png`  \n`sd-prompt-reader-cli -i example.png -o metadata.txt`  \n`sd-prompt-reader-cli -r -i example.png -f TXT -o output_folder\u002F`  \n`sd-prompt-reader-cli -r -i input_folder\u002F -f JSON -o output_folder\u002F`\n#### Write Mode\n- Write metadata to an image.\n- Usage:  \n`sd-prompt-reader-cli -w -i \u003Cinput_path> -m \u003Cmetadata_path> [-o \u003Coutput_path>]`\n- Examples:  \n`sd-prompt-reader-cli -w -i example.png -m new_metadata.txt`  \n`sd-prompt-reader-cli -w -i example.png -m new_metadata.txt -o output.png`  \n`sd-prompt-reader-cli -w -i example.png -m new_metadata.json -o output_folder\u002F`\n#### Clear Mode\n- Remove all metadata from an image.\n- Usage:  \n`sd-prompt-reader-cli -c -i \u003Cinput_path> [-o \u003Coutput_path>]`\n- Examples:  \n`sd-prompt-reader-cli -c -i example.png`  \n`sd-prompt-reader-cli -c -i example.png -o output.png`  \n`sd-prompt-reader-cli -c -i example.png -o output_folder\u002F`  \n`sd-prompt-reader-cli -c -i input_folder\u002F -o output_folder\u002F`\n\n\n## Format Limitations\n### TXT\n1. Importing txt file is only allowed in edit mode.\n2. Only A1111 format txt files are supported. You can use txt files generated by the A1111 webui or use the SD prompt reader to export txt from A1111 images\n### StableSwarmUI\n> [!IMPORTANT]\n> StableSwarmUI is still in the Alpha testing phase, and its format may change in the future. I will keep track of upcoming updates of StableSwarmUI.\n### ComfyUI\n> [!IMPORTANT]\n> When custom nodes are used or when the workflow becomes overly complex, there is a high probability that metadata may not be correctly read. \n> This is because ComfyUI does not store metadata but only the complete workflow. SD Prompt Reader can only handle basic workflows.\n> It is recommended to embed the [Prompt Saver node](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fcomfyui-prompt-reader-node#prompt-saver-node--parameter-generator-node) in the [ComfyUI Prompt Reader Node](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fcomfyui-prompt-reader-node) within your workflow to ensure maximum compatibility.\n\n1. If there are multiple sets of data (seed, steps, CFG, etc.) in the setting box, this means that there are multiple KSampler nodes in the flowchart.\n2. Due to the nature of ComfyUI, all nodes and flowcharts in the workflow are stored in the image, including those that are not being used. Also, a flowchart can have multiple branches, inputs and outputs.\n(e.g. output hires. fixed image and original image simultaneously in a single flowchart)\nSD Prompt Reader will traverse all flowcharts and branches and display the longest branch with complete input and output.  \n3. [ComfyUI SDXL workflow](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader#comfyui-sdxl-workflow)\n### Easy Diffusion\nBy default, Easy Diffusion does not write metadata to images. Please change the _Metadata format_ in settings to _embed_ to write the metadata to images\n### Fooocus-MRE\nSince the original version of [Fooocus](https:\u002F\u002Fgithub.com\u002Flllyasviel\u002FFooocus) does not support writing metadata to image files, \nSD Prompt Reader only supports images generated by [Fooocus MoonRide Edition](https:\u002F\u002Fgithub.com\u002FMoonRide303\u002FFooocus-MRE).\n\n## FAQ\n### Malware Alert\n> [!WARNING]\n> The false positive reported by some anti-malwares is caused by the packaging tool _pyinstaller_ which is a common issue for _pyinstaller_ users. \n> I spent a lot of time trying to fix the Windows Defender false positive before, but I couldn't do it for every antivirus software. \n> So, you can either trust Windows Defender or use the instruction for Linux users to use this app.\n### \"SD Prompt Reader.app\" is damaged and can't be opened. You should move it to the Trash\n> [!IMPORTANT]\n> This is a very common macOS issue when you run unsigned non-appstore apps, \n> and developers must pay $99 per year to Apple to eliminate this issue. \n> You can choose to **Allow Apps from Anywhere** in **security & privacy** settings which can be dangerous. \n> The way I prefer is to remove the quarantine attributes. \n1. Open Terminal from the Applications folder. \n2. Type in the following command and hit Enter. \n\n    `xattr -r -d com.apple.quarantine \u002Fpath\u002Fto\u002Fapp.app`\n\n    In my case it's\n\n    `xattr -r -d com.apple.quarantine \u002FApplications\u002FSD\\ Prompt\\ Reader.app`\n\nIf you are still concerned about the security of the app you can use the instruction for Linux users to use this app.\n\n## TODO\n- Batch image processing tool\n- Gallery\u002FFolder view\n- User preference\n\n## Credits\n- Inspired by [Stable Diffusion web UI](https:\u002F\u002Fgithub.com\u002FAUTOMATIC1111\u002Fstable-diffusion-webui\u002F)\n- App icon generated using Stable Diffusion with [IconsMI](https:\u002F\u002Fhuggingface.co\u002Fjvkape\u002FIconsMI-AppIconsModelforSD)\n- Special thanks to [Azusachan](https:\u002F\u002Fgithub.com\u002FAzusachan) for providing SD server\n- The NovelAI stealth pnginfo parser is based on [the official metadata extraction script of NovelAI](https:\u002F\u002Fgithub.com\u002FNovelAI\u002Fnovelai-image-metadata)\n","\u003Cdiv align=\"center\">\n    \u003Cimg alt=\"icon\" src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Freceyuki_stable-diffusion-prompt-reader_readme_80b52c2df519.png\" width=20% height=20%>\n    \u003Ch1>Stable Diffusion 提示词阅读器\u003C\u002Fh1>\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader\u002Freleases\u002Flatest\">\n        \u003Cimg alt=\"GitHub releases\" src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fdownloads\u002Freceyuki\u002Fstable-diffusion-prompt-reader\u002Ftotal\">\u003C\u002Fa>\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader\u002Fblob\u002Fmaster\u002FLICENSE\">\n        \u003Cimg alt=\"GitHub\" src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002Freceyuki\u002Fstable-diffusion-prompt-reader\">\u003C\u002Fa>\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader\u002Freleases\u002Flatest\">\n        \u003Cimg alt=\"GitHub release (latest by date)\" src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002Freceyuki\u002Fstable-diffusion-prompt-reader\">\u003C\u002Fa>\n    \u003Ca href=\"https:\u002F\u002Fpypi.org\u002Fproject\u002Fsd-prompt-reader\u002F\">\n        \u003Cimg alt=\"PyPI\" src=\"https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fv\u002Fsd-prompt-reader\">\u003C\u002Fa>\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fpsf\u002Fblack\">\n        \u003Cimg alt=\"Code style: black\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fcode%20style-black-000000.svg\">\u003C\u002Fa>\n    \u003Cimg alt=\"platform\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fplatform-windows%20%7C%20macos%20%7C%20linux-lightgrey\">\n    \u003Cbr>\u003Cbr>\n\n[简体中文](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader\u002Fblob\u002Fmaster\u002FREADME.zh-Hans.md) | [English](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader\u002Fblob\u002Fmaster\u002FREADME.md)\n\n一款简单的独立查看器，用于在 WebUI 外部读取 Stable Diffusion 生成图像中的提示词。\n    \u003Cbr>\n  \u003Cp>\n    \u003Ca href=\"#features\">功能\u003C\u002Fa> •\n    \u003Ca href=\"#supported-formats\">支持的格式\u003C\u002Fa> •\n    \u003Ca href=\"#download\">下载\u003C\u002Fa> •\n    \u003Ca href=\"#usage\">使用方法\u003C\u002Fa> •\n    \u003Ca href=\"#cli\">命令行界面\u003C\u002Fa> •\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fcomfyui-prompt-reader-node\">ComfyUI 节点\u003C\u002Fa> •\n    \u003Ca href=\"#faq\">常见问题解答\u003C\u002Fa> •\n    \u003Ca href=\"#credits\">致谢\u003C\u002Fa>\n  \u003C\u002Fp>\n    \u003Cimg src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Freceyuki_stable-diffusion-prompt-reader_readme_78f9c7d86750.png\">\n\u003C\u002Fdiv>\n\n> [!TIP]\n> SD 提示词阅读器现在已作为 ComfyUI 节点提供。请查看 \n> [ComfyUI 提示词阅读器节点](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fcomfyui-prompt-reader-node) 以获取更多信息。\n\n## 功能\n- 支持 macOS、Windows 和 Linux。\n- 提供图形界面和命令行界面。\n- 简单的拖放交互。\n- 可将提示词复制到剪贴板。\n- 可从图像中移除提示词。\n- 可将提示词导出为文本文件。\n- 可编辑或导入提示词到图像中。\n- 垂直方向显示及按字母顺序排序。\n- 可检测生成工具。\n- 支持多种格式。\n- 支持深色和浅色模式。\n\n## 支持的格式\n|                                                                                        | PNG | JPEG | WEBP | TXT* |\n|----------------------------------------------------------------------------------------|:---:|:----:|:----:|:----:|\n| [A1111 的 webUI](https:\u002F\u002Fgithub.com\u002FAUTOMATIC1111\u002Fstable-diffusion-webui)               |  ✅  |  ✅   |  ✅   |  ✅   |\n| [Easy Diffusion](https:\u002F\u002Fgithub.com\u002Feasydiffusion\u002Feasydiffusion)                       |  ✅  |  ✅   |  ✅   |      |\n| [StableSwarmUI](https:\u002F\u002Fgithub.com\u002FStability-AI\u002FStableSwarmUI)*                        |  ✅  |  ✅   |      |      |\n| [StableSwarmUI（0.5.8-alpha 之前版本）](https:\u002F\u002Fgithub.com\u002FStability-AI\u002FStableSwarmUI)* |  ✅  |  ✅   |      |      |\n| [Fooocus-MRE](https:\u002F\u002Fgithub.com\u002FMoonRide303\u002FFooocus-MRE)*                             |  ✅  |  ✅   |      |      |\n| [NovelAI（stealth pnginfo）](https:\u002F\u002Fnovelai.net\u002F)                                      |  ✅  |      |  ✅   |      |\n| [NovelAI（旧版）](https:\u002F\u002Fnovelai.net\u002F)                                               |  ✅  |      |      |      |\n| [InvokeAI](https:\u002F\u002Fgithub.com\u002Finvoke-ai\u002FInvokeAI)                                      |  ✅  |      |      |      |\n| [InvokeAI（2.3.5-post.2 之前版本）](https:\u002F\u002Fgithub.com\u002Finvoke-ai\u002FInvokeAI)              |  ✅  |      |      |      |\n| [InvokeAI（1.15 之前版本）](https:\u002F\u002Fgithub.com\u002Finvoke-ai\u002FInvokeAI)                      |  ✅  |      |      |      |\n| [ComfyUI](https:\u002F\u002Fgithub.com\u002Fcomfyanonymous\u002FComfyUI)*                                  |  ✅  |      |      |      |\n| [Draw Things](https:\u002F\u002Fdrawthings.ai\u002F)                                                  |  ✅  |      |      |      |\n| Naifu(4chan)                                                                           |  ✅  |      |      |      |\n\n\\* 存在限制。详情请参阅 [格式限制](#TXT)。\n\n> [!NOTE]\n> 如果您使用的工具或格式未在此列表中，请通过在 Issues 中上传由您的工具生成的原始文件来帮助我支持该格式，谢谢。\n\n> [!TIP]\n> 对于 ComfyUI 用户，SD 提示词阅读器现在已作为 ComfyUI 节点提供。  \n> [ComfyUI 提示词阅读器节点](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fcomfyui-prompt-reader-node) 是本项目的子项目，建议在您的工作流中将 [Prompt Saver 节点](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fcomfyui-prompt-reader-node#prompt-saver-node--parameter-generator-node) 嵌入到 [ComfyUI 提示词阅读器节点](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fcomfyui-prompt-reader-node) 中，以确保最大程度的兼容性。\n\n## 下载\n### 对于 Windows 用户\n从 [GitHub Releases](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader\u002Freleases\u002Flatest) 下载可执行文件。\n### 对于 macOS 用户\n从 [GitHub Releases](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader\u002Freleases\u002Flatest) 下载可执行文件。\n#### 通过 Homebrew Cask 安装\n您也可以通过 [Homebrew](http:\u002F\u002Fbrew.sh\u002F) cask 安装 SD 提示词阅读器。  \n```bash\nbrew install --no-quarantine receyuki\u002Fsd-prompt-reader\u002Fsd-prompt-reader\n```\n参数 `--no-quarantine` 是因为 SD 提示词阅读器目前尚未签名，正如我在 [这里](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader#sd-prompt-readerapp-is-damaged-and-cant-be-opened-you-should-move-it-to-the-trash) 所提到的。\n### 对于 Linux 用户（未定期测试）\n~~我相当确定 Linux 用户无需可执行文件也能自行解决。~~\n- Python 的最低要求版本是 3.10。\n- 确保您的 Python 已安装 tkinter 包。  \n如果未安装，请使用包管理器安装 python3-tk 包。  \n例如，对于基于 Debian 的发行版：`sudo apt-get install python3-tk`  \n\n您可以选择使用 pip 安装或手动运行。\n#### 使用 pip 或 pipx 安装\n```bash\npip install sd-prompt-reader\n```\n或者\n```bash\npipx install sd-prompt-reader\n```\n要启动图形界面，只需在终端输入 `sd-prompt-reader`。  \n对于命令行界面，请使用 `sd-prompt-reader-cli`。\n#### 手动运行源代码\n1. 克隆此仓库。\n    ```bash\n    git clone https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader.git\n    ```\n   或者下载仓库的 zip 文件。\n2. 进入目录并安装依赖项。\n    ```bash\n    cd stable-diffusion-prompt-reader  \n    pip install -r requirements.txt\n    ```\n3. 运行。\n    ```bash\n   python -m sd_prompt_reader.app\n   ```\n\n## 使用方法\n### 读取提示词\n- 打开可执行文件（.exe 或 .app），然后将图片拖放到窗口中。\n\n或者\n- 右键点击图片，选择“使用 SD 提示词阅读器打开”。\n\n或者\n- 直接将图片拖放到可执行文件（.exe 或 .app）上。\n\n### 将提示词导出为文本文件\n- 点击“导出”按钮，会在图片文件旁边生成一个 txt 文件。\n- 若要保存到其他位置，点击展开箭头并选择“选择目录”。  \n![导出](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Freceyuki_stable-diffusion-prompt-reader_readme_67f628019176.png)\n\n### 从图片中移除提示词\n- 点击“清除”按钮，会在原图片文件旁边生成一个带有 `_data_removed` 后缀的新图片文件。\n- 若要保存到其他位置，点击展开箭头并选择“选择目录”。\n- 若要覆盖原图片文件，点击展开箭头并选择“覆盖原图”。  \n![移除](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Freceyuki_stable-diffusion-prompt-reader_readme_c190da5be367.png)\n\n### 编辑图片\n> [!注意]\n> 编辑后的图片将以 A1111 格式保存，这意味着无论原始图片是什么格式，编辑后都会转换为 A1111 格式。\n\n- 点击“编辑”进入编辑模式。\n- 直接在文本框中编辑提示词，或导入 txt 格式的元数据文件。\n- 点击“保存”按钮，会在原图片文件旁边生成一个带有 `_edited` 后缀的编辑后图片文件。\n- 若要保存到其他位置，点击展开箭头并选择“选择目录”。\n- 若要覆盖原图片文件，点击展开箭头并选择“覆盖原图”。  \n![保存](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Freceyuki_stable-diffusion-prompt-reader_readme_3c6a455bfdbe.png)\n\n### 复制为单行提示词\n复制图片的提示词和设置，格式可被 [来自文件或文本框的提示词](https:\u002F\u002Fgithub.com\u002FAUTOMATIC1111\u002Fstable-diffusion-webui\u002Fwiki\u002FFeatures#prompts-from-file-or-textbox) 识别。支持以下参数：\n\n| 设置                 | 参数            |\n|-------------------------|----------------------|\n| 种子                    | --seed               |\n| 变异种子强度            | --subseed_strength   |\n| 种子缩放起始高度        | --seed_resize_from_h |\n| 种子缩放起始宽度        | --seed_resize_from_w |\n| 采样器                  | --sampler_name       |\n| 步数                    | --steps              |\n| CFG 比例                | --cfg_scale          |\n| 尺寸                    | --width              |\n| 尺寸                    | --height             |\n| 人脸修复                | --restore_faces      |\n\n- 点击展开箭头并选择“单行提示词”。\n- 将其粘贴到 webui 脚本“来自文件或文本框的提示词”下方的文本框中。  \n![单行提示词](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Freceyuki_stable-diffusion-prompt-reader_readme_36e1344ee08b.png)\n\n### ComfyUI SDXL 工作流\n> [!注意]\n> SDXL 工作流不支持编辑。如有需要，请先从图片中移除提示词再进行编辑。\n\n如果图片的工作流包含多组 SDXL 提示词，即 Clip G(text_g)、Clip L(text_l) 和 Refiner，SD 提示词阅读器会切换到多组提示词显示模式，如图所示。多组提示词显示模式有两种界面选项，可通过按钮切换。  \n![comfyui_sdxl.png](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Freceyuki_stable-diffusion-prompt-reader_readme_6292166b3668.png)\n\n## 命令行工具\n提供了一个用于读取、修改和清除元数据的命令行工具。  \n### 平台\n#### 对于 Windows 用户\n`SD Prompt Reader CLI.exe` 将作为单独的可执行文件包含在压缩包中。  \n示例：\n`\"SD Prompt Reader CLI.exe\" -i example.png`  \n#### 对于 macOS 用户\n可执行文件位于 `SD Prompt Reader.app\u002FContents\u002FMacOS\u002FSD Prompt Reader`。  \n示例：\n`\u002FApplications\u002FSD\\ Prompt\\ Reader.app\u002FContents\u002FMacOS\u002FSD\\ Prompt\\ Reader -i example.png`  \n#### 对于 pip 用户\n示例：\n`sd-prompt-reader-cli -i example.png`\n### 模式与选项\n#### 模式\n- 读取模式：通过 `-r` 或 `--read` 标志激活。\n- 写入模式：通过 `-w` 或 `--write` 标志激活。\n- 清除模式：通过 `-c` 或 `--clear` 标志激活。\n#### 通用选项\n- `-i`, `--input-path`：输入图片文件或包含图片文件的目录路径，必填参数。\n- `-o`, `--output-path`：输出文件或目录路径，用于保存处理后的文件。\n- `-l`, `--log-level`：指定日志详细程度（例如 DEBUG、INFO、WARN、ERROR）。\n#### 读取选项\n- `-f`, `--format-type`：指定输出元数据的格式，可选“TXT”或“JSON”。默认格式为“TXT”。\n#### 写入选项\n- `-m`, `--metadata`：提供元数据文件以供写入。\n- `-p`, `--positive`：提供正面提示词字符串以供写入。\n- `-n`, `--negative`：提供负面提示词字符串以供写入。\n- `-s`, `--setting`：提供设置字符串以供写入。\n### 基本使用\n- 如果未指定输出路径，修改后的图片将保存在当前目录，并在原文件名后添加后缀。\n- 若要覆盖源文件，需将输出路径设置为与输入路径相同。\n- 写入模式仅支持对单张图片的修改。\n#### 读取模式\n- 从图片中读取元数据。\n- 使用方法：\n`sd-prompt-reader-cli [-r] -i \u003Cinput_path> [--format-type \u003Cformat>] [-o \u003Coutput_path>]`\n- 示例：\n`sd-prompt-reader-cli -i example.png`  \n`sd-prompt-reader-cli -i example.png -o metadata.txt`  \n`sd-prompt-reader-cli -r -i example.png -f TXT -o output_folder\u002F`  \n`sd-prompt-reader-cli -r -i input_folder\u002F -f JSON -o output_folder\u002F`\n#### 写入模式\n- 向图片中写入元数据。\n- 使用方法：\n`sd-prompt-reader-cli -w -i \u003Cinput_path> -m \u003Cmetadata_path> [-o \u003Coutput_path>]`\n- 示例：\n`sd-prompt-reader-cli -w -i example.png -m new_metadata.txt`  \n`sd-prompt-reader-cli -w -i example.png -m new_metadata.txt -o output.png`  \n`sd-prompt-reader-cli -w -i example.png -m new_metadata.json -o output_folder\u002F`\n#### 清除模式\n- 从图片中移除所有元数据。\n- 使用方法：\n`sd-prompt-reader-cli -c -i \u003Cinput_path> [-o \u003Coutput_path>]`\n- 示例：\n`sd-prompt-reader-cli -c -i example.png`  \n`sd-prompt-reader-cli -c -i example.png -o output.png`  \n`sd-prompt-reader-cli -c -i example.png -o output_folder\u002F`  \n`sd-prompt-reader-cli -c -i input_folder\u002F -o output_folder\u002F`\n\n\n## 格式限制\n### TXT\n1. 仅在编辑模式下允许导入 txt 文件。\n2. 仅支持 A1111 格式的 txt 文件。您可以使用 A1111 webui 生成的 txt 文件，或使用 SD 提示词阅读器从 A1111 图片中导出 txt。\n### StableSwarmUI\n> [!重要]\n> StableSwarmUI 仍处于 Alpha 测试阶段，其格式未来可能会发生变化。我将持续关注 StableSwarmUI 的后续更新。\n\n### ComfyUI\n> [!重要]\n> 当使用自定义节点或工作流变得过于复杂时，元数据很可能无法被正确读取。 \n> 这是因为ComfyUI并不存储元数据，而只保存完整的工作流。SD Prompt Reader仅能处理基础的工作流。\n> 建议在您的工作流中将[Prompt Saver节点](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fcomfyui-prompt-reader-node#prompt-saver-node--parameter-generator-node)嵌入到[ComfyUI Prompt Reader节点](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fcomfyui-prompt-reader-node)中，以确保最大的兼容性。\n\n1. 如果设置框中有多个数据集（seed、steps、CFG等），则表示流程图中存在多个KSampler节点。\n2. 由于ComfyUI的特性，工作流中的所有节点和流程图都会被存储在图像中，包括未使用的部分。此外，一个流程图可以有多个分支、输入和输出。\n   （例如：在一个流程图中同时输出高分辨率修复后的图像和原始图像）\n   SD Prompt Reader会遍历所有流程图和分支，并显示具有完整输入和输出的最长分支。\n3. [ComfyUI SDXL工作流](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader#comfyui-sdxl-workflow)\n### Easy Diffusion\n默认情况下，Easy Diffusion不会将元数据写入图像。请将设置中的_元数据格式_更改为_embed_，以将元数据写入图像。\n### Fooocus-MRE\n由于原始版本的[Fooocus](https:\u002F\u002Fgithub.com\u002Flllyasviel\u002FFooocus)不支持将元数据写入图像文件，\nSD Prompt Reader仅支持由[Fooocus MoonRide Edition](https:\u002F\u002Fgithub.com\u002FMoonRide303\u002FFooocus-MRE)生成的图像。\n\n## 常见问题解答\n### 恶意软件警告\n> [!警告]\n> 部分杀毒软件报告的误报是由打包工具_pyinstaller_引起的，这是_pyinstaller_用户常见的问题。 \n> 我之前曾花费大量时间尝试解决Windows Defender的误报问题，但无法对所有杀毒软件都有效。 \n> 因此，您可以选择信任Windows Defender，或者按照针对Linux用户的说明来使用此应用。\n### “SD Prompt Reader.app”已损坏，无法打开。您应该将其移到废纸篓\n> [!重要]\n> 这是macOS上运行未经签名的非App Store应用时非常常见的问题，\n> 开发者需要每年向苹果支付99美元才能消除此问题。 \n> 您可以选择在**安全性与隐私**设置中启用**允许任何来源的应用程序**，但这可能存在风险。 \n> 我更倾向于移除隔离属性。 \n1. 从“应用程序”文件夹中打开终端。 \n2. 输入以下命令并按回车键。\n\n    `xattr -r -d com.apple.quarantine \u002Fpath\u002Fto\u002Fapp.app`\n\n    在我的例子中是：\n\n    `xattr -r -d com.apple.quarantine \u002FApplications\u002FSD\\ Prompt\\ Reader.app`\n\n如果仍然担心应用程序的安全性，可以参考针对Linux用户的说明来使用此应用。\n\n## 待办事项\n- 批量图像处理工具\n- 图库\u002F文件夹视图\n- 用户偏好设置\n\n## 致谢\n- 灵感来源于[Stable Diffusion Web UI](https:\u002F\u002Fgithub.com\u002FAUTOMATIC1111\u002Fstable-diffusion-webui\u002F)\n- 应用图标由Stable Diffusion结合[IconsMI](https:\u002F\u002Fhuggingface.co\u002Fjvkape\u002FIconsMI-AppIconsModelforSD)生成。\n- 特别感谢[Azusachan](https:\u002F\u002Fgithub.com\u002FAzusachan)提供的SD服务器。\n- NovelAI的隐蔽pnginfo解析器基于[NovelAI官方元数据提取脚本](https:\u002F\u002Fgithub.com\u002FNovelAI\u002Fnovelai-image-metadata)。","# Stable Diffusion Prompt Reader 快速上手指南\n\nStable Diffusion Prompt Reader 是一款独立的轻量级工具，用于查看、编辑、导出或清除由 Stable Diffusion 生成的图片中的提示词（Prompt）和元数据。它支持 Windows、macOS 和 Linux，提供图形界面（GUI）和命令行（CLI）两种模式。\n\n## 环境准备\n\n### 系统要求\n- **操作系统**：Windows, macOS, Linux\n- **Python 版本**：若通过源码或 pip 运行，需 Python 3.10 或更高版本。\n\n### 前置依赖\n- **Linux 用户**：必须安装 `tkinter` 包以支持图形界面。\n  ```bash\n  # Debian\u002FUbuntu 系列\n  sudo apt-get install python3-tk\n  \n  # CentOS\u002FRHEL 系列\n  sudo yum install python3-tkinter\n  ```\n- **macOS 用户**：推荐安装 [Homebrew](https:\u002F\u002Fbrew.sh\u002F) 以便使用 Cask 安装。\n\n## 安装步骤\n\n您可以根据操作系统选择以下任意一种安装方式：\n\n### 方式一：下载可执行文件（推荐 Windows\u002FmacOS 用户）\n直接访问 [GitHub Releases](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader\u002Freleases\u002Flatest) 下载对应系统的安装包：\n- **Windows**: 下载 `.exe` 文件。\n- **macOS**: 下载 `.app` 文件或通过 Homebrew 安装：\n  ```bash\n  brew install --no-quarantine receyuki\u002Fsd-prompt-reader\u002Fsd-prompt-reader\n  ```\n  > 注意：`--no-quarantine` 参数用于绕过 macOS 对未签名应用的拦截。\n\n### 方式二：通过 pip 安装（跨平台）\n确保已安装 Python 3.10+，然后运行：\n```bash\npip install sd-prompt-reader\n```\n*国内用户如遇下载缓慢，可使用清华源加速：*\n```bash\npip install sd-prompt-reader -i https:\u002F\u002Fpypi.tuna.tsinghua.edu.cn\u002Fsimple\n```\n\n### 方式三：源码运行（高级用户）\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader.git\ncd stable-diffusion-prompt-reader\npip install -r requirements.txt\n```\n\n## 基本使用\n\n### 1. 图形界面模式 (GUI)\n\n**启动方法：**\n- **可执行文件**：双击运行下载的 `.exe` 或 `.app` 文件，或在终端输入 `sd-prompt-reader`。\n- **源码运行**：\n  ```bash\n  python -m sd_prompt_reader.app\n  ```\n\n**核心操作：**\n- **读取提示词**：将 SD 生成的图片直接拖拽到软件窗口中，即可自动解析并显示正向提示词、负向提示词及生成参数。\n- **复制提示词**：点击界面上的复制按钮，可将提示词一键复制到剪贴板。\n- **导出文本**：点击 \"Export\" 按钮，将在图片同级目录生成包含元数据的 `.txt` 文件。\n- **清除元数据**：点击 \"Clear\" 按钮，生成一个移除所有提示词信息的新图片（后缀为 `_data_removed`）。\n- **编辑图片**：点击 \"Edit\" 进入编辑模式，修改提示词后点击 \"Save\"，生成带有新元数据的图片（后缀为 `_edited`，格式统一为 A1111 标准）。\n\n### 2. 命令行模式 (CLI)\n\n适用于批量处理或脚本集成。\n\n**启动命令：**\n- 可执行文件用户：运行 `SD Prompt Reader CLI.exe` (Windows) 或对应路径的二进制文件。\n- pip 安装用户：直接在终端运行 `sd-prompt-reader-cli`。\n\n**常用示例：**\n\n*   **读取图片元数据并输出为文本：**\n    ```bash\n    sd-prompt-reader-cli -r -i example.png\n    ```\n\n*   **读取元数据并保存为 JSON 格式：**\n    ```bash\n    sd-prompt-reader-cli -r -f JSON -i example.png\n    ```\n\n*   **清除图片中的元数据：**\n    ```bash\n    sd-prompt-reader-cli -c -i example.png\n    ```\n\n*   **写入新的提示词到图片（覆盖或生成新文件）：**\n    ```bash\n    sd-prompt-reader-cli -w -p \"your positive prompt\" -n \"your negative prompt\" -i input.png -o output.png\n    ```\n\n**CLI 参数速查：**\n- `-r`, `--read`: 读取模式\n- `-w`, `--write`: 写入模式\n- `-c`, `--clear`: 清除模式\n- `-i`, `--input-path`: 输入图片或目录路径（必填）\n- `-o`, `--output-path`: 输出路径（可选，不填则生成带后缀的新文件）\n- `-p`, `--positive`: 指定正向提示词\n- `-n`, `--negative`: 指定负向提示词","某数字艺术工作室的设计师在整理海量历史素材库时，需要从数千张由不同 AI 工具生成的图片中快速提取创作参数，以便复用优质风格或进行二次微调。\n\n### 没有 stable-diffusion-prompt-reader 时\n- **依赖特定环境**：必须启动庞大的 Stable Diffusion WebUI 才能查看图片元数据，为了读一个提示词而加载整个模型界面，耗时且占用显存。\n- **格式兼容困难**：面对来自 NovelAI、InvokeAI 或旧版工具生成的图片，普通系统自带的图片查看器无法解析其中嵌入的非标准提示词信息。\n- **批量处理低效**：无法一次性提取多个文件的参数，只能逐个打开图片复制粘贴，手动记录到文档中，极易出错且效率低下。\n- **信息清洗麻烦**：若想去除图片中附带的敏感提示词信息再分享给客户，缺乏便捷的本地化工具进行无损擦除。\n\n### 使用 stable-diffusion-prompt-reader 后\n- **独立轻量运行**：直接拖拽图片到软件界面即可秒级显示完整提示词、负向提示词及生成参数，无需启动任何重型 WebUI 环境。\n- **全格式自动识别**：自动检测并解析来自 A1111、NovelAI 等多种生成工具的元数据，统一以清晰的结构化视图呈现，打破格式壁垒。\n- **一键复制与导出**：支持将提示词一键复制到剪贴板，或直接批量导出为文本文件，让素材整理和风格复用流程自动化。\n- **灵活编辑与清理**：不仅能查看，还能直接在图中修改提示词或一键移除元数据，方便在不重绘的情况下净化图片素材。\n\nstable-diffusion-prompt-reader 将原本繁琐的元数据提取工作转化为简单的拖拽操作，极大提升了 AI 绘图工作流中素材管理与复用的效率。","https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Freceyuki_stable-diffusion-prompt-reader_ca72cf36.png","receyuki","Rhys Yang","https:\u002F\u002Foss.gittoolsai.com\u002Favatars\u002Freceyuki_b576bf4e.jpg",null,"Melbourne","receyuki@gmail.com","https:\u002F\u002Fgithub.com\u002Freceyuki",[22,26,30],{"name":23,"color":24,"percentage":25},"Python","#3572A5",99.3,{"name":27,"color":28,"percentage":29},"Shell","#89e051",0.6,{"name":31,"color":32,"percentage":33},"Batchfile","#C1F12E",0.1,1321,87,"2026-03-29T13:17:50","MIT",1,"Windows, macOS, Linux","未说明",{"notes":42,"python":43,"dependencies":44},"该工具是一个独立的查看器，用于读取图像元数据，不涉及模型推理，因此无需 GPU。Linux 用户需确保安装 python3-tk 包。macOS 用户通过 Homebrew 安装时需添加 --no-quarantine 参数以避免签名问题。支持通过 pip、pipx 或直接运行源码安装。","3.10+",[45],"tkinter (python3-tk)",[47,48,49],"开发框架","Agent","图像",[51,52,53,54,55,56,57,58,59,60],"ai","image-generation","macos","prompt-engineering","prompt-toolkit","python","stable-diffusion","stable-diffusion-webui","tkinter","windows",2,"ready","2026-03-27T02:49:30.150509","2026-04-06T05:27:04.515793",[66,71,76,81,86,91],{"id":67,"question_zh":68,"answer_zh":69,"source_url":70},15650,"为什么我的杀毒软件（如 Bitdefender、Windows Defender）将该应用报告为病毒或威胁？","这通常是由于打包工具引起的误报（False Positive），并非真正的病毒。您可以采取以下措施：\n1. 将应用添加到杀毒软件的白名单\u002F信任列表中。\n2. 向杀毒软件厂商提交误报报告。\n3. 等待开发者发布新版本，开发者通常会在新版本发布时统一提交误报申诉。\n如果确认来源可靠，可以放心使用。","https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader\u002Fissues\u002F59",{"id":72,"question_zh":73,"answer_zh":74,"source_url":75},15651,"在 macOS 上打开应用时提示\"应用已损坏，应移至废纸篓\"怎么办？","这是 macOS 的安全机制导致的。您可以尝试以下解决方法：\n1. 使用命令行修复：打开终端，输入 `sudo xattr -cr \u002FApplications\u002FStable\\ Diffusion\\ Prompt\\ Reader.app`（请将路径替换为实际安装路径）。\n2. 或者通过 Homebrew 安装该应用。\n具体操作步骤可参考项目 README 中关于 \"SD Prompt Reader.app is damaged...\" 的章节。","https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader\u002Fissues\u002F35",{"id":77,"question_zh":78,"answer_zh":79,"source_url":80},15652,"启动程序时出现 \"ModuleNotFoundError: No module named 'chardet'\" 或类似缺失模块的错误怎么办？","此错误通常是因为杀毒软件拦截了程序文件，导致部分依赖模块无法正常加载。解决方法如下：\n1. 检查杀毒软件日志，确认是否拦截了该应用。\n2. 将应用目录添加到杀毒软件的白名单中。\n3. 将应用重新下载并解压到白名单目录中。\n4. 重新启动程序即可正常运行。","https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader\u002Fissues\u002F13",{"id":82,"question_zh":83,"answer_zh":84,"source_url":85},15653,"为什么从 ComfyUI 生成的图片无法正确读取种子（Seed）值，显示为 None？","这是一个已知问题，特别是在使用某些自定义节点或特定参数设置时。如果图片文件中实际包含种子信息（如 `noise_seed`），但软件未能识别：\n1. 请确保使用的是最新版本的软件，开发者正在持续改进对 ComfyUI 不同节点的支持。\n2. 您可以手动查看图片元数据确认种子是否存在。\n3. 关注后续版本更新，开发者已表示会考虑修复此类解析问题。","https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader\u002Fissues\u002F33",{"id":87,"question_zh":88,"answer_zh":89,"source_url":90},15654,"软件是否支持 Efficiency Loader 等第三方 ComfyUI 自定义节点？","目前软件对部分第三方自定义节点（如 Efficiency Nodes 套件中的 Efficiency Loader）的支持可能有限或尚未完全实现。\n1. 软件优先支持原生节点和主流工作流。\n2. 对于复杂的自定义工作流，建议先简化测试，确认核心节点是否被支持。\n3. 您可以在 GitHub Issues 中提交具体的功能请求，附上工作流文件以便开发者评估和添加支持。","https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader\u002Fissues\u002F45",{"id":92,"question_zh":93,"answer_zh":94,"source_url":95},15655,"为什么 Invoke 3 生成的 SDXL 图片无法读取任何数据？","如果软件显示 \"No data selected or unsupported format\"，说明当前版本可能尚未完全支持 Invoke 3 生成的 SDXL 图片元数据格式。\n1. 请检查软件是否为最新版本，新版通常会增加对新工具和新模型格式的支持。\n2. 如果问题依旧，可能是该特定格式尚未被解析器覆盖，建议提交 Issue 并提供示例图片供开发者分析。","https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader\u002Fissues\u002F46",[97,102,107,112,117,122,127,132,137,142,147,152,157,162,167,172,177,182,187,192],{"id":98,"version":99,"summary_zh":100,"released_at":101},90241,"v1.3.5","> [!IMPORTANT] \r\n> 自 v1.3.5 起，命令行工具已添加到所有平台的 SD Prompt Reader 中，请参阅 [CLI 部分](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader?tab=readme-ov-file#cli) 以获取详细信息。\r\n\r\n> [!TIP]\r\n> SD Prompt Reader 目前已作为 ComfyUI 节点提供。请查看 [ComfyUI Prompt Reader 节点](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fcomfyui-prompt-reader-node) 以了解更多信息。\r\n\r\n> [!NOTE]  \r\n> 稍后将在 README 中添加简单的 API 文档。\r\n\r\n### 1.3.4 之后的变更\r\n- 添加新图标\r\n- 增加对 NovelAI stealth pnginfo 的支持 #71 #73\r\n- 增加对 A1111 webUI 中后期处理\u002FExtras 的支持\r\n- 新增 `A1111 webUI (Postprocessing)` 用于检测生成工具\r\n- 添加 CLI #69\r\n- 添加 CLI\u002FGUI 检测机制\r\n- 为 Windows 系统单独提供 CLI 可执行文件\r\n- 为 ComfyUI 解析器添加解析成功判定机制 receyuki\u002Fcomfyui-prompt-reader-node#68\r\n- 增加导出\u002F复制无法解析的 ComfyUI 图像元数据的功能\r\n- 添加更友好的警告提示\r\n- 添加日志记录器\r\n- 修复因切换设置模式导致的显示异常\r\n- 修复对大写后缀图像的支持问题\r\n- 修复空图像的处理问题\r\n- 修复解析异常的处理问题\r\n- 将 pillow 更新至 10.3.0\r\n\r\n### 针对 macOS 用户\r\n如果您之前通过 [Homebrew](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader#install-via-homebrew-cask) cask 安装了 SD Prompt Reader，可以通过以下命令进行升级：  \r\n```bash\r\nbrew upgrade sd-prompt-reader\r\n```\r\n\r\n### 针对 Linux 用户（及其他用户）\r\n如果您之前使用 [pip 或 pipx](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader#install-with-pip-or-pipx) 安装了 SD Prompt Reader，可以通过以下命令进行升级：  \r\n```bash\r\npip install --upgrade sd-prompt-reader\r\n```\r\n或\r\n```bash\r\npipx upgrade sd-prompt-reader\r\n```","2024-05-21T15:53:29",{"id":103,"version":104,"summary_zh":105,"released_at":106},90242,"v1.3.5-beta.2","> [!IMPORTANT] \r\n> 自 v1.3.5-beta.2 起，CLI 工具已添加到所有平台的 SD 提示词阅读器中，请参阅 [CLI 部分](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader?tab=readme-ov-file#cli) 以获取详细信息。 \r\n> 对于 pip 版本，请使用以下命令安装测试版。\r\n> `pip install --pre --upgrade sd-prompt-reader==1.3.5b2`\r\n\r\n> [!NOTE]  \r\n> 稍后将在 README 中添加简单的 API 文档。\n\n- 添加新图标\n- 添加 CLI\u002FGUI 检测机制\n- 为 Windows 添加独立的 CLI 可执行文件\n- 为 ComfyUI 解析器添加解析成功判定机制 receyuki\u002Fcomfyui-prompt-reader-node#68\n- 添加对 NovelAI stealth pnginfo 的 WebP 格式支持 #71 #73\n- 修复因切换设置模式而导致的显示异常\n### 自 1.3.4 以来的变更\n- 添加对 NovelAI stealth pnginfo 的支持 #71 #73\n- 添加对 A1111 webUI 中后期处理\u002F附加功能的支持\n- 新增用于检测生成工具的 `A1111 webUI (后期处理)`\n- 增加用户友好的警告提示\n- 增加导出\u002F复制无法解析的 ComfyUI 图像元数据的功能\n- 添加 CLI #69\n- 添加日志记录器\n- 修复对大写后缀图片的支持问题\n- 修复空图像的处理问题\n- 修复解析异常的处理问题\n- 将 pillow 更新至 10.3.0","2024-05-13T12:36:45",{"id":108,"version":109,"summary_zh":110,"released_at":111},90243,"v1.3.5-beta.1","> [!IMPORTANT] \r\n> 自 v1.3.5 起，SD Prompt Reader 的 pip 版本新增了命令行界面，请参阅[CLI 部分](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader?tab=readme-ov-file#cli)以获取详细信息。 \r\n> 对于 pip 版本，请使用以下命令安装测试版。\r\n> `pip install --pre --upgrade sd-prompt-reader==1.3.5b1.dev1`\r\n\r\n> [!NOTE]  \r\n> 简易 API 文档稍后将添加到 README 中。\r\n- 添加对 NovelAI stealth pnginfo 的支持 #71 #73\r\n- 添加对 A1111 webUI 中后期处理\u002FExtras 的支持\r\n- 为生成工具检测添加 `A1111 webUI (后期处理)` 选项\r\n- 增加用户友好的警告提示\r\n- 为无法解析的 ComfyUI 图像添加元数据导出\u002F复制功能\r\n- 添加 CLI #69\r\n- 添加日志记录器\r\n- 修复对大写后缀图像的支持\r\n- 修复空图像的处理问题\r\n- 修复解析异常的处理问题\r\n- 将 pillow 更新至 10.3.0","2024-04-30T16:36:08",{"id":113,"version":114,"summary_zh":115,"released_at":116},90244,"v1.3.4-post.2","> [!TIP]\n> SD Prompt Reader 现已作为 ComfyUI 节点提供。请查看 [ComfyUI Prompt Reader Node](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fcomfyui-prompt-reader-node) 以获取更多信息。\n\n- 修复因缺少尺寸值而导致的崩溃 #61\n- 修复由 ControlNet 数据引起的模型识别错误\n### 1.3.3 版本以来的变更\n- 增加对 StableSwarmUI 0.5.8-Alpha+ 的支持 #60\n- 增加对 InvokeAI 3 的支持 #46\n- 增加对 [ComfyUI Prompt Reader Node](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fcomfyui-prompt-reader-node) 的支持\n- 新增 `ComfyUI (A1111 兼容)` 用于生成工具检测\n- 新增版本号显示 #30 #48\n- 修复 InvokeAI 2 中 “refiner_model”: null 的 bug #46\n- 修复 ComfyUI 模型名称显示问题\n- 修复 NovelAI 尺寸显示问题\n- 重构所有格式的图像数据读取器\n\n### 致 InvokeAI 和 NovelAI 用户\n1.3.4 版本之前的版本会从图像设置中提取必要元数据，并将其转换为 `Steps: _, Sampler: _, CFG scale: _, Seed: _, Size: _, Model hash: _, Model: _` 的格式。自 1.3.4 版本起，SD Prompt Reader 将直接显示图像设置，不再进行任何转换。如果设置中包含大量非必要元数据导致难以阅读，建议使用简洁模式作为替代方案。\n### 致 ComfyUI 用户\nSD Prompt Reader 现已作为 ComfyUI 节点提供。[ComfyUI SDPromptReader Node](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fcomfyui-prompt-reader-node) 是本项目的子项目，主要包含三个节点：\n- **Prompt Reader 节点**\nPrompt Reader 节点的功能与独立版 SD Prompt Reader 完全相同。它使用独立版 SD Prompt Reader 中的图像数据读取器，因此能够支持相同的文件格式，并随 SD Prompt Reader 一起获得更新。\n- **Prompt Saver 节点**\nPrompt Saver 节点会将额外的 A1111 格式元数据写入输出图像中，以兼容所有支持 A1111 格式的工具，包括 SD Prompt Reader 和 Civitai。由于自定义节点和复杂的工作流可能会导致 SD Prompt Reader 无法正确读取图像元数据，因此建议将此节点嵌入工作流中，以确保最大程度的兼容性。\n- **Parameter Generator 节点**\n由于无法直接从 KSampler 中提取元数据，因此需要使用 Parameter Generator 节点来生成参数，并同时将其输出到 Prompt Saver 节点和 KSampler。\n\n![ComfyUI 节点](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fcomfyui-prompt-reader-node\u002Fblob\u002Fmain\u002Fimages\u002Fscreenshot_v130.png)\n\n### 致 macOS 用户\n如果您之前通过 [Homebrew](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader#install-via-homebrew-cask) cask 安装了 SD Prompt Reader，可以通过以下命令升级：\n```bash\nbrew upgrade sd-prompt-reader\n```\n\n### 致 Linux 用户（及其他用户）\n如果您之前使用 [pip 或 pipx](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-dif","2024-01-25T14:24:01",{"id":118,"version":119,"summary_zh":120,"released_at":121},90245,"v1.3.4-post.1","> SD 提示词读取器现已作为 ComfyUI 节点提供。请查看 [ComfyUI 提示词读取节点](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fcomfyui-prompt-reader-node) 以获取更多信息。\n\n- 增加对 StableSwarmUI 0.5.8-Alpha+ 的支持 #60\n### 1.3.3 版本以来的变更\n- 增加对 InvokeAI 3 的支持 #46\n- 增加对 [ComfyUI 提示词读取节点](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fcomfyui-prompt-reader-node) 的支持\n- 新增 `ComfyUI (A1111 兼容)` 用于生成工具检测\n- 添加版本号显示 #30 #48\n- 修复 InvokeAI 2 中 “refiner_model”: null 的问题 #46\n- 修复 ComfyUI 模型名称显示问题\n- 修复 NovelAI 尺寸显示问题\n- 重构所有格式的图像数据读取器\n\n### 致 InvokeAI 和 NovelAI 用户\n1.3.4 版本之前的版本会从图像设置中提取必要元数据，并将其转换为 `Steps: _, Sampler: _, CFG scale: _, Seed: _, Size: _, Model hash: _, Model: _` 的格式。自 1.3.4 版本起，SD 提示词读取器将直接显示图像设置，不再进行任何转换。如果设置中包含大量非必要元数据导致难以阅读，建议使用简洁模式作为替代方案。\n### 致 ComfyUI 用户\nSD 提示词读取器现已作为 ComfyUI 节点提供。[ComfyUI SDPromptReader 节点](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fcomfyui-prompt-reader-node) 是本项目的子项目，主要由三个节点组成：\n- **提示词读取节点**\n提示词读取节点的功能与独立版 SD 提示词读取器完全相同。它使用独立版中的图像数据读取器，因此支持相同的文件格式，并会随 SD 提示词读取器一起获得更新。\n- **提示词保存节点**\n提示词保存节点会将额外的 A1111 格式元数据写入输出图像中，以兼容所有支持 A1111 格式的工具，包括 SD 提示词读取器和 Civitai。由于自定义节点和复杂工作流可能导致 SD 提示词读取器无法正确读取图像元数据，建议将此节点嵌入工作流中，以确保最大程度的兼容性。\n- **参数生成节点**\n由于无法直接从 KSampler 中提取元数据，因此需要使用参数生成节点来生成参数，并同时将其输出到提示词保存节点和 KSampler。\n\n![ComfyUI 节点](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fcomfyui-prompt-reader-node\u002Fblob\u002Fmain\u002Fimages\u002Fscreenshot_v110.png)\n\n### 致 macOS 用户\n如果您之前通过 [Homebrew](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader#install-via-homebrew-cask) 安装了 SD 提示词读取器，可以通过以下命令升级：\n```bash\nbrew upgrade sd-prompt-reader\n```\n\n### 致 Linux 用户（及其他用户）\n如果您之前通过 [pip 或 pipx](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader#install-with-pip-or-pipx) 安装了 SD 提示词读取器，可以通过以下命令升级：\n```bash\npip install --upgrade sd-prompt-reader\n```\n或","2023-12-11T13:22:21",{"id":123,"version":124,"summary_zh":125,"released_at":126},90246,"v1.3.4","> SD Prompt Reader 目前已作为 ComfyUI 节点提供。更多信息请查看 [ComfyUI Prompt Reader Node](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fcomfyui-prompt-reader-node)。\n\n**_Windows 上的恶意软件警告已在 `SD-Prompt-Reader-1.3.4-Windows-x64-v2.zip` 中修复。如有需要，请重新下载。_**\n\n### 1.3.3 版本以来的变更\n- 增加对 InvokeAI 3 的支持 #46\n- 增加对 [ComfyUI Prompt Reader Node](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fcomfyui-prompt-reader-node) 的支持\n- 新增 `ComfyUI (A1111 兼容)` 用于生成工具检测\n- 添加版本号显示 #30 #48\n- 修复 InvokeAI 2 中 “refiner_model”: null 的 bug #46\n- 修复 ComfyUI 模型名称显示问题\n- 修复 NovelAI 尺寸显示问题\n- 重构所有格式的图像数据读取器\n\n### 致 InvokeAI 和 NovelAI 用户\n1.3.4 版本之前的版本会从图像设置中提取必要元数据，并将其转换为 `Steps: _, Sampler: _, CFG scale: _, Seed: _, Size: _, Model hash: _, Model: _` 的格式。自 1.3.4 版本起，SD Prompt Reader 将直接显示图像设置，不再进行任何转换。如果设置中包含大量非必要元数据导致难以阅读，建议改用简洁模式。\n\n### 致 ComfyUI 用户\nSD Prompt Reader 现已作为 ComfyUI 节点提供。[ComfyUI SDPromptReader Node](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fcomfyui-prompt-reader-node) 是本项目的子项目，主要包含三个节点：\n- **Prompt Reader 节点**\n  Prompt Reader 节点的功能与独立版 SD Prompt Reader 完全一致。它使用独立版中的图像数据读取器，因此支持相同的文件格式，并会随 SD Prompt Reader 一起获得更新。\n- **Prompt Saver 节点**\n  Prompt Saver 节点会将额外的 A1111 格式元数据写入输出图像中，以兼容所有支持 A1111 格式的工具，包括 SD Prompt Reader 和 Civitai。由于自定义节点和复杂工作流可能会导致 SD Prompt Reader 无法正确读取图像元数据，因此建议将此节点嵌入工作流中，以确保最大程度的兼容性。\n- **Parameter Generator 节点**\n  由于无法直接从 KSampler 中提取元数据，因此需要使用 Parameter Generator 节点来生成参数，并同时将其输出到 Prompt Saver 节点和 KSampler。\n\n![ComfyUI 节点](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fcomfyui-prompt-reader-node\u002Fblob\u002Fmain\u002Fimages\u002Fscreenshot_v110.png)\n\n### 致 macOS 用户\n如果您之前通过 [Homebrew](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader#install-via-homebrew-cask) cask 安装了 SD Prompt Reader，可以通过以下命令升级：\n```bash\nbrew upgrade sd-prompt-reader\n```\n\n### 致 Linux 用户（及其他用户）\n如果您之前使用 [pip 或 pipx](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader#install-with-pip-or-) 安装了 SD Prompt Reader，","2023-10-25T18:46:22",{"id":128,"version":129,"summary_zh":130,"released_at":131},90247,"v1.3.4-beta.2","> 1.3.4 的稳定版将与 ComfyUI Node 1.0.0 同时发布。由于 ComfyUI Node 在推出稳定版之前还有一些工作需要完成，因此目前请使用 1.3.4 的测试版。~~（尽管是测试版，但已经相当稳定了）~~\n\n- 增加版本号显示 #30 #48\n- 修复 InvokeAI 2 中的“refiner_model”: null 错误 #46\n\n### 对于 InvokeAI 和 NovelAI 用户\n在 1.3.4 版本之前，SD Prompt Reader 会从图像设置中提取必要元数据，并将其转换为以下格式：`Steps: _, Sampler: _, CFG scale: _, Seed: _, Size: _, Model hash: _, Model: _`。自 1.3.4 版本起，SD Prompt Reader 将直接显示图像设置，不再进行任何转换。如果设置中包含大量非必要的元数据，导致阅读困难，建议改用简洁模式作为替代方案。\n  \n### 对于 ComfyUI 用户\nSD Prompt Reader 现已作为 ComfyUI 节点提供。[ComfyUI SDPromptReader 节点](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fcomfyui-prompt-reader-node)是该项目的一个子项目，主要包含两个节点：\n- **Prompt Reader 节点**\n该节点的功能与独立版 SD Prompt Reader 完全相同。它使用独立版 SD Prompt Reader 中的 Image Data Reader，因此能够支持相同的格式，并随 SD Prompt Reader 一起获得更新。\n- **Prompt Saver 节点**\n该节点会将 A1111 格式的附加元数据写入输出图像，以兼容所有支持 A1111 格式的工具，包括 SD Prompt Reader 和 CivitAI。由于自定义节点和复杂的工作流可能会导致 SD Prompt Reader 无法正确读取图像元数据，因此建议将此节点嵌入工作流中，以确保最大程度的兼容性。","2023-10-12T15:19:28",{"id":133,"version":134,"summary_zh":135,"released_at":136},90248,"v1.3.4-beta.1","- 增加对 InvokeAI 3 的支持 #46\n- 增加对 [ComfyUI Prompt Reader Node](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fcomfyui-prompt-reader-node) 的支持\n- 针对所有格式重构图像数据读取器\n### 对于 InvokeAI 和 NovelAI 用户\n1.3.4 版本之前的版本会从图像设置中提取必要元数据，并将其转换为 `Steps: _, Sampler: _, CFG scale: _, Seed: _, Size: _, Model hash: _, Model: _` 的格式。自 1.3.4 版本起，SD Prompt Reader 将直接显示图像设置，不再进行任何转换。如果设置中包含大量非必要元数据导致难以阅读，建议改用简洁模式。\n### 对于 ComfyUI 用户\nSD Prompt Reader 现已作为 ComfyUI 节点提供。[ComfyUI SDPromptReader Node](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fcomfyui-prompt-reader-node) 是本项目的子项目，主要包含两个节点：\n- **Prompt Reader 节点**\n该节点的功能与独立版 SD Prompt Reader 完全一致。它使用独立版 SD Prompt Reader 中的图像数据读取器，因此支持相同的格式，并会随 SD Prompt Reader 一起获得更新。\n- **Prompt Saver 节点**\n该节点会将 A1111 格式的附加元数据写入输出图像，以兼容所有支持 A1111 格式的工具，包括 SD Prompt Reader 和 CivitAI。由于自定义节点和复杂的工作流可能会导致 SD Prompt Reader 无法正确读取图像元数据，因此建议将此节点嵌入工作流中，以确保最大程度的兼容性。","2023-09-27T16:35:32",{"id":138,"version":139,"summary_zh":140,"released_at":141},90249,"v1.3.3-post.1","- 修复 A1111 WebP 和 JPEG 的读取问题 #41\n### 1.3.2 版本以来的变更\n- 增加对 ComfyUI SDXL 工作流的支持 #25 #26\n- 为 ComfyUI SDXL 工作流提示词添加新的 UI 界面\n- 增加对 [StableSwarmUI](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader#stableswarmui) 的支持\n- 增加对 [Fooocus](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader#fooocus-mre) 的支持\n- 修复对 Invoke AI 早期版本的支持 #36\n- 修复 Pillow 在 Apple Silicon 上的兼容性问题 #38\n- 修复简易模式下设置的换行问题\n- 修复 ComfyUI SaveImage 节点无输入的问题 #25\n- 修复 ComfyUI CLIPTextEncodeSDXL 提示词读取问题 #25 #33\n- 修复 ComfyUI KSamplerAdvanced 种子读取问题 #33\n- 修复 ComfyUI ControlNetApplyAdvanced 节点 #25\n- 应用 The Black 代码风格\n\n### 针对 macOS 用户\n如果您之前通过 [Homebrew](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader#install-via-homebrew-cask) 的 Cask 安装了 SD Prompt Reader，可以通过以下命令进行升级：\n```bash\nbrew upgrade sd-prompt-reader\n```\n\n### 针对 Linux 用户（及其他用户）\n如果您之前使用 [pip 或 pipx](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader#install-with-pip-or-pipx) 安装了 SD Prompt Reader，可以通过以下命令进行升级：\n```bash\npip install --upgrade sd-prompt-reader\n```\n或\n```bash\npipx upgrade sd-prompt-reader\n```","2023-09-05T11:05:38",{"id":143,"version":144,"summary_zh":145,"released_at":146},90250,"v1.3.3","### 1.3.2 版本后的变更\n- 增加对 ComfyUI SDXL 工作流的支持 #25 #26\n- 为 ComfyUI SDXL 工作流提示词添加新的 UI 界面\n- 增加对 [StableSwarmUI](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader#stableswarmui) 的支持\n- 增加对 [Fooocus](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader#fooocus-mre) 的支持\n- 修复对 Invoke AI 早期版本的支持 #36\n- 修复 Pillow 在 Apple Silicon 上的兼容性问题 #38\n- 修复简易模式下设置的换行问题\n- 修复 ComfyUI SaveImage 节点无输入的问题 #25\n- 修复 ComfyUI CLIPTextEncodeSDXL 提示词读取问题 #25 #33\n- 修复 ComfyUI KSamplerAdvanced 种子读取问题 #33\n- 修复 ComfyUI ControlNetApplyAdvanced 节点问题 #25\n- 应用 The Black 代码风格\n\n### 针对 macOS 用户\n如果您之前通过 [Homebrew](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader#install-via-homebrew-cask) 的 cask 安装了 SD Prompt Reader，可以通过以下命令升级：\n```bash\nbrew upgrade sd-prompt-reader\n```\n\n### 针对 Linux 用户（及其他用户）\n如果您之前使用 [pip 或 pipx](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader#install-with-pip-or-pipx) 安装了 SD Prompt Reader，可以通过以下命令升级：\n```bash\npip install --upgrade sd-prompt-reader\n```\n或\n```bash\npipx upgrade sd-prompt-reader\n```","2023-09-03T15:54:39",{"id":148,"version":149,"summary_zh":150,"released_at":151},90251,"v1.3.3-beta.2","- Add support for StableSwarmUI\r\n- Apply The Black code style\r\n- Fixed support for early version of Invoke AI #36\r\n- Fixed ComfyUI SaveImage node with no inputs #25\r\n- Fixed ComfyUI CLIPTextEncodeSDXL prompt reading #25 #33\r\n- Fixed compatibility issue of Pillow on Apple silicon #38","2023-08-28T17:37:16",{"id":153,"version":154,"summary_zh":155,"released_at":156},90252,"v1.3.3-beta.1","- Add support for ComfyUI SDXL workflow #25 #26 \r\n- Add new UI for ComfyUI SDXL workflow prompts\r\n- Fixed ComfyUI KSamplerAdvanced seed reading #33 \r\n- Fixed simple mode setting line wrap","2023-08-23T17:59:58",{"id":158,"version":159,"summary_zh":160,"released_at":161},90253,"v1.3.2","- Add support for Draw Things\r\n- Add [single line prompt](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader#copy-as-single-line-prompt) option for copy button #20\r\n- Add homebrew cask and pip formula\r\n- Fixed Comfy UI reader crash caused by unCLIPConditioning node between KSampler and CLIPTextEncode\r\n\r\n#### For macOS users\r\nNow you may install SD Prompt Reader via [Homebrew](http:\u002F\u002Fbrew.sh\u002F) cask.  \r\n```bash\r\nbrew install --no-quarantine receyuki\u002Fsd-prompt-reader\u002Fsd-prompt-reader\r\n```\r\nThe parameter `--no-quarantine` is used since the SD Prompt Reader is currently unsigned as I mentioned [here](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader#sd-prompt-readerapp-is-damaged-and-cant-be-opened-you-should-move-it-to-the-trash)\r\n\r\n#### For Linux users (and other users)\r\nNow you may install SD Prompt Reader with pip or pipx\r\n```bash\r\npip install sd-prompt-reader\r\n```\r\nor\r\n```bash\r\npipx install sd-prompt-reader\r\n```\r\nTo launch the app simply enter `sd-prompt-reader` in the terminal.","2023-07-13T14:16:18",{"id":163,"version":164,"summary_zh":165,"released_at":166},90254,"v1.3.1","- Fixed Easy Diffusion reader to support all beta version format variants\r\n- Fixed an image resizing bug causing \"open with\" crash  #12 \r\n- Fixed an image reader bug causing empty jpegs cannot be loaded\r\n- Fixed an issue where the initial directory for image selection was always set to the root directory #14 ","2023-06-05T15:47:17",{"id":168,"version":169,"summary_zh":170,"released_at":171},90255,"v1.3.0","- Redesigned GUI\r\n- Add support for Easy Diffusion,  InvokeAI and TXT\r\n- Add tooltip\r\n- Add vertical orientation display to prompt\r\n- Add alphabetical sorting to prompt\r\n- Add simple mode dispaly to setting\r\n- Ability to [edit image metadata](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader#edit-image) and save metadata to image ","2023-05-25T16:18:29",{"id":173,"version":174,"summary_zh":175,"released_at":176},90256,"v1.2.0","- Add support for ComfyUI (Limitations apply. See [format limitations](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader#ComfyUI))\r\n- Add a button for [exporting prompt to text file](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader#export-prompt-to-text-file)\r\n- Add a button for [removing prompt from the image](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader#remove-prompt-from-image)\r\n- Add generation tool display\r\n- Add support for context menu open with and direct drag and drop to executable\r\n- Refactor almost every since v1.0","2023-04-24T21:44:34",{"id":178,"version":179,"summary_zh":180,"released_at":181},90257,"v1.1.1","- Add support for [more formats](https:\u002F\u002Fgithub.com\u002Freceyuki\u002Fstable-diffusion-prompt-reader#supported-formats)\r\n- Refactor image data reader\r\n- Remove AGPL code and change license to MIT","2023-04-09T12:39:22",{"id":183,"version":184,"summary_zh":185,"released_at":186},90258,"v1.1.0","If you are using a tool other than AUTOMATIC1111's webui, please upload the raw files generated by your tool as a zip file to issues to help me support your formats, thx.\r\n- Add status bar\r\n- Add update checker\r\n- Add file selector\r\n- Refactor layout manager","2023-04-04T15:34:18",{"id":188,"version":189,"summary_zh":190,"released_at":191},90259,"v1.0.1","If you are using a tool other than AUTOMATIC1111's webui, please upload the raw files generated by your tool as a zip file to issues to help me support your formats, thx.\r\n- Just a temporary fix. Next version will have a status bar\r\n- Add notifications for images that do not contain data or in an unsupported format","2023-03-31T13:27:13",{"id":193,"version":194,"summary_zh":195,"released_at":196},90260,"v1.0.0","First release","2023-03-30T10:35:05",[198,206,215,223,231,244],{"id":199,"name":58,"github_repo":200,"description_zh":201,"stars":202,"difficulty_score":203,"last_commit_at":204,"category_tags":205,"status":62},3808,"AUTOMATIC1111\u002Fstable-diffusion-webui","stable-diffusion-webui 是一个基于 Gradio 构建的网页版操作界面，旨在让用户能够轻松地在本地运行和使用强大的 Stable Diffusion 图像生成模型。它解决了原始模型依赖命令行、操作门槛高且功能分散的痛点，将复杂的 AI 绘图流程整合进一个直观易用的图形化平台。\n\n无论是希望快速上手的普通创作者、需要精细控制画面细节的设计师，还是想要深入探索模型潜力的开发者与研究人员，都能从中获益。其核心亮点在于极高的功能丰富度：不仅支持文生图、图生图、局部重绘（Inpainting）和外绘（Outpainting）等基础模式，还独创了注意力机制调整、提示词矩阵、负向提示词以及“高清修复”等高级功能。此外，它内置了 GFPGAN 和 CodeFormer 等人脸修复工具，支持多种神经网络放大算法，并允许用户通过插件系统无限扩展能力。即使是显存有限的设备，stable-diffusion-webui 也提供了相应的优化选项，让高质量的 AI 艺术创作变得触手可及。",162132,3,"2026-04-05T11:01:52",[47,49,48],{"id":207,"name":208,"github_repo":209,"description_zh":210,"stars":211,"difficulty_score":61,"last_commit_at":212,"category_tags":213,"status":62},1381,"everything-claude-code","affaan-m\u002Feverything-claude-code","everything-claude-code 是一套专为 AI 编程助手（如 Claude Code、Codex、Cursor 等）打造的高性能优化系统。它不仅仅是一组配置文件，而是一个经过长期实战打磨的完整框架，旨在解决 AI 代理在实际开发中面临的效率低下、记忆丢失、安全隐患及缺乏持续学习能力等核心痛点。\n\n通过引入技能模块化、直觉增强、记忆持久化机制以及内置的安全扫描功能，everything-claude-code 能显著提升 AI 在复杂任务中的表现，帮助开发者构建更稳定、更智能的生产级 AI 代理。其独特的“研究优先”开发理念和针对 Token 消耗的优化策略，使得模型响应更快、成本更低，同时有效防御潜在的攻击向量。\n\n这套工具特别适合软件开发者、AI 研究人员以及希望深度定制 AI 工作流的技术团队使用。无论您是在构建大型代码库，还是需要 AI 协助进行安全审计与自动化测试，everything-claude-code 都能提供强大的底层支持。作为一个曾荣获 Anthropic 黑客大奖的开源项目，它融合了多语言支持与丰富的实战钩子（hooks），让 AI 真正成长为懂上",138956,"2026-04-05T11:33:21",[47,48,214],"语言模型",{"id":216,"name":217,"github_repo":218,"description_zh":219,"stars":220,"difficulty_score":61,"last_commit_at":221,"category_tags":222,"status":62},2271,"ComfyUI","Comfy-Org\u002FComfyUI","ComfyUI 是一款功能强大且高度模块化的视觉 AI 引擎，专为设计和执行复杂的 Stable Diffusion 图像生成流程而打造。它摒弃了传统的代码编写模式，采用直观的节点式流程图界面，让用户通过连接不同的功能模块即可构建个性化的生成管线。\n\n这一设计巧妙解决了高级 AI 绘图工作流配置复杂、灵活性不足的痛点。用户无需具备编程背景，也能自由组合模型、调整参数并实时预览效果，轻松实现从基础文生图到多步骤高清修复等各类复杂任务。ComfyUI 拥有极佳的兼容性，不仅支持 Windows、macOS 和 Linux 全平台，还广泛适配 NVIDIA、AMD、Intel 及苹果 Silicon 等多种硬件架构，并率先支持 SDXL、Flux、SD3 等前沿模型。\n\n无论是希望深入探索算法潜力的研究人员和开发者，还是追求极致创作自由度的设计师与资深 AI 绘画爱好者，ComfyUI 都能提供强大的支持。其独特的模块化架构允许社区不断扩展新功能，使其成为当前最灵活、生态最丰富的开源扩散模型工具之一，帮助用户将创意高效转化为现实。",107662,"2026-04-03T11:11:01",[47,49,48],{"id":224,"name":225,"github_repo":226,"description_zh":227,"stars":228,"difficulty_score":61,"last_commit_at":229,"category_tags":230,"status":62},3704,"NextChat","ChatGPTNextWeb\u002FNextChat","NextChat 是一款轻量且极速的 AI 助手，旨在为用户提供流畅、跨平台的大模型交互体验。它完美解决了用户在多设备间切换时难以保持对话连续性，以及面对众多 AI 模型不知如何统一管理的痛点。无论是日常办公、学习辅助还是创意激发，NextChat 都能让用户随时随地通过网页、iOS、Android、Windows、MacOS 或 Linux 端无缝接入智能服务。\n\n这款工具非常适合普通用户、学生、职场人士以及需要私有化部署的企业团队使用。对于开发者而言，它也提供了便捷的自托管方案，支持一键部署到 Vercel 或 Zeabur 等平台。\n\nNextChat 的核心亮点在于其广泛的模型兼容性，原生支持 Claude、DeepSeek、GPT-4 及 Gemini Pro 等主流大模型，让用户在一个界面即可自由切换不同 AI 能力。此外，它还率先支持 MCP（Model Context Protocol）协议，增强了上下文处理能力。针对企业用户，NextChat 提供专业版解决方案，具备品牌定制、细粒度权限控制、内部知识库整合及安全审计等功能，满足公司对数据隐私和个性化管理的高标准要求。",87618,"2026-04-05T07:20:52",[47,214],{"id":232,"name":233,"github_repo":234,"description_zh":235,"stars":236,"difficulty_score":61,"last_commit_at":237,"category_tags":238,"status":62},2268,"ML-For-Beginners","microsoft\u002FML-For-Beginners","ML-For-Beginners 是由微软推出的一套系统化机器学习入门课程，旨在帮助零基础用户轻松掌握经典机器学习知识。这套课程将学习路径规划为 12 周，包含 26 节精炼课程和 52 道配套测验，内容涵盖从基础概念到实际应用的完整流程，有效解决了初学者面对庞大知识体系时无从下手、缺乏结构化指导的痛点。\n\n无论是希望转型的开发者、需要补充算法背景的研究人员，还是对人工智能充满好奇的普通爱好者，都能从中受益。课程不仅提供了清晰的理论讲解，还强调动手实践，让用户在循序渐进中建立扎实的技能基础。其独特的亮点在于强大的多语言支持，通过自动化机制提供了包括简体中文在内的 50 多种语言版本，极大地降低了全球不同背景用户的学习门槛。此外，项目采用开源协作模式，社区活跃且内容持续更新，确保学习者能获取前沿且准确的技术资讯。如果你正寻找一条清晰、友好且专业的机器学习入门之路，ML-For-Beginners 将是理想的起点。",84991,"2026-04-05T10:45:23",[49,239,240,241,48,242,214,47,243],"数据工具","视频","插件","其他","音频",{"id":245,"name":246,"github_repo":247,"description_zh":248,"stars":249,"difficulty_score":203,"last_commit_at":250,"category_tags":251,"status":62},3128,"ragflow","infiniflow\u002Fragflow","RAGFlow 是一款领先的开源检索增强生成（RAG）引擎，旨在为大语言模型构建更精准、可靠的上下文层。它巧妙地将前沿的 RAG 技术与智能体（Agent）能力相结合，不仅支持从各类文档中高效提取知识，还能让模型基于这些知识进行逻辑推理和任务执行。\n\n在大模型应用中，幻觉问题和知识滞后是常见痛点。RAGFlow 通过深度解析复杂文档结构（如表格、图表及混合排版），显著提升了信息检索的准确度，从而有效减少模型“胡编乱造”的现象，确保回答既有据可依又具备时效性。其内置的智能体机制更进一步，使系统不仅能回答问题，还能自主规划步骤解决复杂问题。\n\n这款工具特别适合开发者、企业技术团队以及 AI 研究人员使用。无论是希望快速搭建私有知识库问答系统，还是致力于探索大模型在垂直领域落地的创新者，都能从中受益。RAGFlow 提供了可视化的工作流编排界面和灵活的 API 接口，既降低了非算法背景用户的上手门槛，也满足了专业开发者对系统深度定制的需求。作为基于 Apache 2.0 协议开源的项目，它正成为连接通用大模型与行业专有知识之间的重要桥梁。",77062,"2026-04-04T04:44:48",[48,49,47,214,242]]