[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"similar-lengstrom--fast-style-transfer":3,"tool-lengstrom--fast-style-transfer":64},[4,17,27,35,43,56],{"id":5,"name":6,"github_repo":7,"description_zh":8,"stars":9,"difficulty_score":10,"last_commit_at":11,"category_tags":12,"status":16},3808,"stable-diffusion-webui","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",[13,14,15],"开发框架","图像","Agent","ready",{"id":18,"name":19,"github_repo":20,"description_zh":21,"stars":22,"difficulty_score":23,"last_commit_at":24,"category_tags":25,"status":16},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,2,"2026-04-05T11:33:21",[13,15,26],"语言模型",{"id":28,"name":29,"github_repo":30,"description_zh":31,"stars":32,"difficulty_score":23,"last_commit_at":33,"category_tags":34,"status":16},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",[13,14,15],{"id":36,"name":37,"github_repo":38,"description_zh":39,"stars":40,"difficulty_score":23,"last_commit_at":41,"category_tags":42,"status":16},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",[13,26],{"id":44,"name":45,"github_repo":46,"description_zh":47,"stars":48,"difficulty_score":23,"last_commit_at":49,"category_tags":50,"status":16},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",[14,51,52,53,15,54,26,13,55],"数据工具","视频","插件","其他","音频",{"id":57,"name":58,"github_repo":59,"description_zh":60,"stars":61,"difficulty_score":10,"last_commit_at":62,"category_tags":63,"status":16},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",[15,14,13,26,54],{"id":65,"github_repo":66,"name":67,"description_en":68,"description_zh":69,"ai_summary_zh":69,"readme_en":70,"readme_zh":71,"quickstart_zh":72,"use_case_zh":73,"hero_image_url":74,"owner_login":75,"owner_name":76,"owner_avatar_url":77,"owner_bio":78,"owner_company":79,"owner_location":80,"owner_email":81,"owner_twitter":82,"owner_website":83,"owner_url":84,"languages":85,"stars":94,"forks":95,"last_commit_at":96,"license":97,"difficulty_score":98,"env_os":99,"env_gpu":100,"env_ram":101,"env_deps":102,"category_tags":114,"github_topics":115,"view_count":23,"oss_zip_url":97,"oss_zip_packed_at":97,"status":16,"created_at":120,"updated_at":121,"faqs":122,"releases":153},2553,"lengstrom\u002Ffast-style-transfer","fast-style-transfer","TensorFlow CNN for fast style transfer ⚡🖥🎨🖼","fast-style-transfer 是一款基于 TensorFlow 构建的开源项目，旨在让用户能在几秒内将著名画作的艺术风格迁移到任意照片甚至视频上。它有效解决了传统神经风格迁移算法计算量大、处理速度慢，难以满足实时应用需求的痛点。\n\n无论是希望快速原型验证的开发者、从事计算机视觉研究的研究人员，还是寻求创意灵感的设计师，都能从中受益。虽然普通用户也可通过部署体验其功能，但其核心价值更偏向于技术实现与二次开发。\n\n该项目的独特之处在于巧妙融合了多项前沿技术：它以 Gatys 的神经风格算法为理论基础，采纳了 Johnson 提出的实时转换网络架构，并创新性地引入 Ulyanov 的实例归一化（Instance Normalization）技术替代传统的批归一化。这一改进不仅显著提升了训练稳定性，更让风格迁移速度达到毫秒级（如在 Titan X 显卡上处理一张高清图仅需约 100 毫秒），同时保留了细腻的大尺度风格特征，让艺术创作变得高效而流畅。","## Fast Style Transfer in [TensorFlow](https:\u002F\u002Fgithub.com\u002Ftensorflow\u002Ftensorflow)\n\nAdd styles from famous paintings to any photo in a fraction of a second! [You can even style videos!](#video-stylization)\n\n\u003Cp align = 'center'>\n\u003Cimg src = 'examples\u002Fstyle\u002Fudnie.jpg' height = '246px'>\n\u003Cimg src = 'examples\u002Fcontent\u002Fstata.jpg' height = '246px'>\n\u003Ca href = 'examples\u002Fresults\u002Fstata_udnie.jpg'>\u003Cimg src = 'examples\u002Fresults\u002Fstata_udnie_header.jpg' width = '627px'>\u003C\u002Fa>\n\u003C\u002Fp>\n\u003Cp align = 'center'>\nIt takes 100ms on a 2015 Titan X to style the MIT Stata Center (1024×680) like Udnie, by Francis Picabia.\n\u003C\u002Fp>\n\nOur implementation is based off of a combination of Gatys' [A Neural Algorithm of Artistic Style](https:\u002F\u002Farxiv.org\u002Fabs\u002F1508.06576), Johnson's [Perceptual Losses for Real-Time Style Transfer and Super-Resolution](http:\u002F\u002Fcs.stanford.edu\u002Fpeople\u002Fjcjohns\u002Feccv16\u002F), and Ulyanov's [Instance Normalization](https:\u002F\u002Farxiv.org\u002Fabs\u002F1607.08022). \n\n### Sponsorship\nPlease consider sponsoring my work on this project!\n\n### License\nCopyright (c) 2016 Logan Engstrom. Contact me for commercial use (or rather any use that is not academic research) (email: engstrom at my university's domain dot edu). Free for research use, as long as proper attribution is given and this copyright notice is retained.\n\n## Video Stylization \nHere we transformed every frame in a video, then combined the results. [Click to go to the full demo on YouTube!](https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=xVJwwWQlQ1o) The style here is Udnie, as above.\n\u003Cdiv align = 'center'>\n     \u003Ca href = 'https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=xVJwwWQlQ1o'>\n        \u003Cimg src = 'examples\u002Fresults\u002Ffox_udnie.gif' alt = 'Stylized fox video. Click to go to YouTube!' width = '800px' height = '400px'>\n     \u003C\u002Fa>\n\u003C\u002Fdiv>\n\nSee how to generate these videos [here](#stylizing-video)!\n\n## Image Stylization\nWe added styles from various paintings to a photo of Chicago. Click on thumbnails to see full applied style images.\n\u003Cdiv align='center'>\n\u003Cimg src = 'examples\u002Fcontent\u002Fchicago.jpg' height=\"200px\">\n\u003C\u002Fdiv>\n     \n\u003Cdiv align = 'center'>\n\u003Ca href = 'examples\u002Fstyle\u002Fwave.jpg'>\u003Cimg src = 'examples\u002Fthumbs\u002Fwave.jpg' height = '200px'>\u003C\u002Fa>\n\u003Cimg src = 'examples\u002Fresults\u002Fchicago_wave.jpg' height = '200px'>\n\u003Cimg src = 'examples\u002Fresults\u002Fchicago_udnie.jpg' height = '200px'>\n\u003Ca href = 'examples\u002Fstyle\u002Fudnie.jpg'>\u003Cimg src = 'examples\u002Fthumbs\u002Fudnie.jpg' height = '200px'>\u003C\u002Fa>\n\u003Cbr>\n\u003Ca href = 'examples\u002Fstyle\u002Frain_princess.jpg'>\u003Cimg src = 'examples\u002Fthumbs\u002Frain_princess.jpg' height = '200px'>\u003C\u002Fa>\n\u003Cimg src = 'examples\u002Fresults\u002Fchicago_rain_princess.jpg' height = '200px'>\n\u003Cimg src = 'examples\u002Fresults\u002Fchicago_la_muse.jpg' height = '200px'>\n\u003Ca href = 'examples\u002Fstyle\u002Fla_muse.jpg'>\u003Cimg src = 'examples\u002Fthumbs\u002Fla_muse.jpg' height = '200px'>\u003C\u002Fa>\n\n\u003Cbr>\n\u003Ca href = 'examples\u002Fstyle\u002Fthe_shipwreck_of_the_minotaur.jpg'>\u003Cimg src = 'examples\u002Fthumbs\u002Fthe_shipwreck_of_the_minotaur.jpg' height = '200px'>\u003C\u002Fa>\n\u003Cimg src = 'examples\u002Fresults\u002Fchicago_wreck.jpg' height = '200px'>\n\u003Cimg src = 'examples\u002Fresults\u002Fchicago_the_scream.jpg' height = '200px'>\n\u003Ca href = 'examples\u002Fstyle\u002Fthe_scream.jpg'>\u003Cimg src = 'examples\u002Fthumbs\u002Fthe_scream.jpg' height = '200px'>\u003C\u002Fa>\n\u003C\u002Fdiv>\n\n## Implementation Details\nOur implementation uses TensorFlow to train a fast style transfer network. We use roughly the same transformation network as described in Johnson, except that batch normalization is replaced with Ulyanov's instance normalization, and the scaling\u002Foffset of the output `tanh` layer is slightly different. We use a loss function close to the one described in Gatys, using VGG19 instead of VGG16 and typically using \"shallower\" layers than in Johnson's implementation (e.g. we use `relu1_1` rather than `relu1_2`). Empirically, this results in larger scale style features in transformations.\n## Virtual Environment Setup (Anaconda) - Windows\u002FLinux\nTested on\n| Spec                        |                                                             |\n|-----------------------------|-------------------------------------------------------------|\n| Operating System            | Windows 10 Home                                             |\n| GPU                         | Nvidia GTX 2080 TI                                          |\n| CUDA Version                | 11.0                                                        |\n| Driver Version              | 445.75                                                      |\n### Step 1：Install Anaconda\nhttps:\u002F\u002Fdocs.anaconda.com\u002Fanaconda\u002Finstall\u002F\n### Step 2：Build a virtual environment\nRun the following commands in sequence in Anaconda Prompt:\n```\nconda create -n tf-gpu tensorflow-gpu=2.1.0\nconda activate tf-gpu\nconda install jupyterlab\njupyter lab\n```\nRun the following command in the notebook or just conda install the package:\n```\n!pip install moviepy==1.0.2\n```\nFollow the commands below to use fast-style-transfer\n## Documentation\n### Training Style Transfer Networks\nUse `style.py` to train a new style transfer network. Run `python style.py` to view all the possible parameters. Training takes 4-6 hours on a Maxwell Titan X. [More detailed documentation here](docs.md#stylepy). **Before you run this, you should run `setup.sh`**. Example usage:\n\n    python style.py --style path\u002Fto\u002Fstyle\u002Fimg.jpg \\\n      --checkpoint-dir checkpoint\u002Fpath \\\n      --test path\u002Fto\u002Ftest\u002Fimg.jpg \\\n      --test-dir path\u002Fto\u002Ftest\u002Fdir \\\n      --content-weight 1.5e1 \\\n      --checkpoint-iterations 1000 \\\n      --batch-size 20\n\n### Evaluating Style Transfer Networks\nUse `evaluate.py` to evaluate a style transfer network. Run `python evaluate.py` to view all the possible parameters. Evaluation takes 100 ms per frame (when batch size is 1) on a Maxwell Titan X. [More detailed documentation here](docs.md#evaluatepy). Takes several seconds per frame on a CPU. **Models for evaluation are [located here](https:\u002F\u002Fdrive.google.com\u002Fdrive\u002Ffolders\u002F0B9jhaT37ydSyRk9UX0wwX3BpMzQ?resourcekey=0-Z9LcNHC-BTB4feKwm4loXw&usp=sharing)**. Example usage:\n\n    python evaluate.py --checkpoint path\u002Fto\u002Fstyle\u002Fmodel.ckpt \\\n      --in-path dir\u002Fof\u002Ftest\u002Fimgs\u002F \\\n      --out-path dir\u002Ffor\u002Fresults\u002F\n\n### Stylizing Video\nUse `transform_video.py` to transfer style into a video. Run `python transform_video.py` to view all the possible parameters. Requires `ffmpeg`. [More detailed documentation here](docs.md#transform_videopy). Example usage:\n\n    python transform_video.py --in-path path\u002Fto\u002Finput\u002Fvid.mp4 \\\n      --checkpoint path\u002Fto\u002Fstyle\u002Fmodel.ckpt \\\n      --out-path out\u002Fvideo.mp4 \\\n      --device \u002Fgpu:0 \\\n      --batch-size 4\n\n### Requirements\nYou will need the following to run the above:\n- TensorFlow 0.11.0\n- Python 2.7.9, Pillow 3.4.2, scipy 0.18.1, numpy 1.11.2\n- If you want to train (and don't want to wait for 4 months):\n  - A decent GPU\n  - All the required NVIDIA software to run TF on a GPU (cuda, etc)\n- ffmpeg 3.1.3 if you want to stylize video\n\n### Citation\n```\n  @misc{engstrom2016faststyletransfer,\n    author = {Logan Engstrom},\n    title = {Fast Style Transfer},\n    year = {2016},\n    howpublished = {\\url{https:\u002F\u002Fgithub.com\u002Flengstrom\u002Ffast-style-transfer\u002F}},\n    note = {commit xxxxxxx}\n  }\n```\n\n### Attributions\u002FThanks\n- This project could not have happened without the advice (and GPU access) given by [Anish Athalye](http:\u002F\u002Fwww.anishathalye.com\u002F). \n  - The project also borrowed some code from Anish's [Neural Style](https:\u002F\u002Fgithub.com\u002Fanishathalye\u002Fneural-style\u002F)\n- Some readme\u002Fdocs formatting was borrowed from Justin Johnson's [Fast Neural Style](https:\u002F\u002Fgithub.com\u002Fjcjohnson\u002Ffast-neural-style)\n- The image of the Stata Center at the very beginning of the README was taken by [Juan Paulo](https:\u002F\u002Fjuanpaulo.me\u002F)\n\n### Related Work\n- Michael Ramos ported this network [to use CoreML on iOS](https:\u002F\u002Fmedium.com\u002F@rambossa\u002Fdiy-prisma-fast-style-transfer-app-with-coreml-and-tensorflow-817c3b90dacd)\n","## [TensorFlow](https:\u002F\u002Fgithub.com\u002Ftensorflow\u002Ftensorflow) 中的快速风格迁移\n\n只需短短几秒钟，就能将名画的风格应用到任何照片上！[你甚至还可以为视频添加风格！](#video-stylization)\n\n\u003Cp align = 'center'>\n\u003Cimg src = 'examples\u002Fstyle\u002Fudnie.jpg' height = '246px'>\n\u003Cimg src = 'examples\u002Fcontent\u002Fstata.jpg' height = '246px'>\n\u003Ca href = 'examples\u002Fresults\u002Fstata_udnie.jpg'>\u003Cimg src = 'examples\u002Fresults\u002Fstata_udnie_header.jpg' width = '627px'>\u003C\u002Fa>\n\u003C\u002Fp>\n\u003Cp align = 'center'>\n在 2015 年款 Titan X 显卡上，将 MIT Stata 中心（1024×680）的图像风格化为弗朗西斯·皮卡比亚的《Udnie》，仅需 100 毫秒。\n\u003C\u002Fp>\n\n我们的实现基于以下几种方法的结合：Gatys 的《艺术风格的神经算法》（https:\u002F\u002Farxiv.org\u002Fabs\u002F1508.06576）、Johnson 的《用于实时风格迁移和超分辨率的感知损失》（http:\u002F\u002Fcs.stanford.edu\u002Fpeople\u002Fjcjohns\u002Feccv16\u002F）以及 Ulyanov 的《实例归一化》（https:\u002F\u002Farxiv.org\u002Fabs\u002F1607.08022）。\n\n### 赞助\n请考虑赞助我在该项目上的工作！\n\n### 许可证\n版权所有 © 2016 Logan Engstrom。如需商业用途（或任何非学术研究用途），请与我联系（邮箱：engstrom@my university's domain.edu）。本项目可供研究使用，但必须注明原作者，并保留此版权声明。\n\n## 视频风格化\n在这里，我们对视频中的每一帧进行了风格化处理，然后将结果合并成完整的视频。[点击前往 YouTube 上的完整演示！](https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=xVJwwWQlQ1o) 此处使用的风格同样是上面提到的《Udnie》。\n\u003Cdiv align = 'center'>\n     \u003Ca href = 'https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=xVJwwWQlQ1o'>\n        \u003Cimg src = 'examples\u002Fresults\u002Ffox_udnie.gif' alt = '风格化的狐狸视频。点击前往 YouTube！' width = '800px' height = '400px'>\n     \u003C\u002Fa>\n\u003C\u002Fdiv>\n\n有关如何生成这些视频的详细信息，请参阅 [这里](#stylizing-video)！\n\n## 图片风格化\n我们将多幅名画的风格应用到了一张芝加哥的照片上。点击缩略图即可查看应用了相应风格的完整图片。\n\u003Cdiv align='center'>\n\u003Cimg src = 'examples\u002Fcontent\u002Fchicago.jpg' height=\"200px\">\n\u003C\u002Fdiv>\n     \n\u003Cdiv align = 'center'>\n\u003Ca href = 'examples\u002Fstyle\u002Fwave.jpg'>\u003Cimg src = 'examples\u002Fthumbs\u002Fwave.jpg' height = '200px'>\u003C\u002Fa>\n\u003Cimg src = 'examples\u002Fresults\u002Fchicago_wave.jpg' height = '200px'>\n\u003Cimg src = 'examples\u002Fresults\u002Fchicago_udnie.jpg' height = '200px'>\n\u003Ca href = 'examples\u002Fstyle\u002Fudnie.jpg'>\u003Cimg src = 'examples\u002Fthumbs\u002Fudnie.jpg' height = '200px'>\u003C\u002Fa>\n\u003Cbr>\n\u003Ca href = 'examples\u002Fstyle\u002Frain_princess.jpg'>\u003Cimg src = 'examples\u002Fthumbs\u002Frain_princess.jpg' height = '200px'>\u003C\u002Fa>\n\u003Cimg src = 'examples\u002Fresults\u002Fchicago_rain_princess.jpg' height = '200px'>\n\u003Cimg src = 'examples\u002Fresults\u002Fchicago_la_muse.jpg' height = '200px'>\n\u003Ca href = 'examples\u002Fstyle\u002Fla_muse.jpg'>\u003Cimg src = 'examples\u002Fthumbs\u002Fla_muse.jpg' height = '200px'>\u003C\u002Fa>\n\n\u003Cbr>\n\u003Ca href = 'examples\u002Fstyle\u002Fthe_shipwreck_of_the_minotaur.jpg'>\u003Cimg src = 'examples\u002Fthumbs\u002Fthe_shipwreck_of_the_minotaur.jpg' height = '200px'>\u003C\u002Fa>\n\u003Cimg src = 'examples\u002Fresults\u002Fchicago_wreck.jpg' height = '200px'>\n\u003Cimg src = 'examples\u002Fresults\u002Fchicago_the_scream.jpg' height = '200px'>\n\u003Ca href = 'examples\u002Fstyle\u002Fthe_scream.jpg'>\u003Cimg src = 'examples\u002Fthumbs\u002Fthe_scream.jpg' height = '200px'>\u003C\u002Fa>\n\u003C\u002Fdiv>\n\n## 实现细节\n我们的实现使用 TensorFlow 来训练一个快速风格迁移网络。我们采用了与 Johnson 文中描述的大致相同的转换网络，只是用 Ulyanov 的实例归一化替换了批归一化，并且对输出 `tanh` 层的缩放和偏移进行了细微调整。我们使用的损失函数接近 Gatys 的描述，但使用的是 VGG19 而不是 VGG16，并且通常会选择比 Johnson 实现中更“浅层”的卷积层（例如，我们使用 `relu1_1` 而不是 `relu1_2`）。从经验上看，这样做会使风格特征在转换结果中显得更加宏观。\n\n## 虚拟环境设置（Anaconda）—— Windows\u002FLinux\n测试环境：\n| 规格                        |                                                             |\n|-----------------------------|-------------------------------------------------------------|\n| 操作系统                    | Windows 10 家庭版                                           |\n| GPU                         | Nvidia GTX 2080 TI                                          |\n| CUDA 版本                   | 11.0                                                        |\n| 驱动程序版本                | 445.75                                                      |\n### 第一步：安装 Anaconda\nhttps:\u002F\u002Fdocs.anaconda.com\u002Fanaconda\u002Finstall\u002F\n### 第二步：创建虚拟环境\n在 Anaconda Prompt 中依次运行以下命令：\n```\nconda create -n tf-gpu tensorflow-gpu=2.1.0\nconda activate tf-gpu\nconda install jupyterlab\njupyter lab\n```\n或者直接在笔记本中运行以下命令来安装相关包：\n```\n!pip install moviepy==1.0.2\n```\n按照以下步骤即可使用快速风格迁移功能。\n## 文档\n### 训练风格迁移网络\n使用 `style.py` 可以训练新的风格迁移网络。运行 `python style.py` 即可查看所有可用参数。在 Maxwell Titan X 上，训练大约需要 4–6 小时。[更详细的文档请见这里](docs.md#stylepy)。**在运行此脚本之前，请先运行 `setup.sh`**。示例用法：\n\n    python style.py --style path\u002Fto\u002Fstyle\u002Fimg.jpg \\\n      --checkpoint-dir checkpoint\u002Fpath \\\n      --test path\u002Fto\u002Ftest\u002Fimg.jpg \\\n      --test-dir path\u002Fto\u002Ftest\u002Fdir \\\n      --content-weight 1.5e1 \\\n      --checkpoint-iterations 1000 \\\n      --batch-size 20\n\n### 评估风格迁移网络\n使用 `evaluate.py` 可以评估风格迁移网络。运行 `python evaluate.py` 即可查看所有可用参数。在 Maxwell Titan X 上，每帧的评估耗时约 100 毫秒（当批次大小为 1 时）。[更详细的文档请见这里](docs.md#evaluatepy)。在 CPU 上，每帧则需要数秒时间。**用于评估的模型可以在此处找到**（https:\u002F\u002Fdrive.google.com\u002Fdrive\u002Ffolders\u002F0B9jhaT37ydSyRk9UX0wwX3BpMzQ?resourcekey=0-Z9LcNHC-BTB4feKwm4loXw&usp=sharing）。示例用法：\n\n    python evaluate.py --checkpoint path\u002Fto\u002Fstyle\u002Fmodel.ckpt \\\n      --in-path dir\u002Fof\u002Ftest\u002Fimgs\u002F \\\n      --out-path dir\u002Ffor\u002Fresults\u002F\n\n### 为视频添加风格\n使用 `transform_video.py` 可以将风格应用到视频中。运行 `python transform_video.py` 即可查看所有可用参数。此功能需要 `ffmpeg`。[更详细的文档请见这里](docs.md#transform_videopy)。示例用法：\n\n    python transform_video.py --in-path path\u002Fto\u002Finput\u002Fvid.mp4 \\\n      --checkpoint path\u002Fto\u002Fstyle\u002Fmodel.ckpt \\\n      --out-path out\u002Fvideo.mp4 \\\n      --device \u002Fgpu:0 \\\n      --batch-size 4\n\n### 系统要求\n要运行上述内容，您需要：\n- TensorFlow 0.11.0\n- Python 2.7.9、Pillow 3.4.2、scipy 0.18.1、numpy 1.11.2\n- 如果您想进行训练（并且不想等待 4 个月）：\n  - 一块性能不错的 GPU\n  - 运行 TensorFlow GPU 版本所需的所有 NVIDIA 软件（CUDA 等）\n- 如果您想为视频添加风格，则还需要 ffmpeg 3.1.3\n\n### 引用\n```\n  @misc{engstrom2016faststyletransfer,\n    author = {Logan Engstrom},\n    title = {快速风格迁移},\n    year = {2016},\n    howpublished = {\\url{https:\u002F\u002Fgithub.com\u002Flengstrom\u002Ffast-style-transfer\u002F}},\n    note = {commit xxxxxxx}\n  }\n```\n\n### 致谢\n- 本项目离不开 [Anish Athalye](http:\u002F\u002Fwww.anishathalye.com\u002F) 提供的建议（以及 GPU 使用权限）。\n  - 该项目还借鉴了 Anish 的 [Neural Style](https:\u002F\u002Fgithub.com\u002Fanishathalye\u002Fneural-style\u002F) 中的部分代码。\n- 部分 README 和文档格式参考了 Justin Johnson 的 [Fast Neural Style](https:\u002F\u002Fgithub.com\u002Fjcjohnson\u002Ffast-neural-style)。\n- README 开头的斯塔塔中心图片由 [Juan Paulo](https:\u002F\u002Fjuanpaulo.me\u002F) 拍摄。\n\n### 相关工作\n- Michael Ramos 将该网络移植到 iOS 上，使用 CoreML 实现：[自制 Prisma 快速风格迁移应用，结合 CoreML 和 TensorFlow](https:\u002F\u002Fmedium.com\u002F@rambossa\u002Fdiy-prisma-fast-style-transfer-app-with-coreml-and-tensorflow-817c3b90dacd)","# fast-style-transfer 快速上手指南\n\n`fast-style-transfer` 是一个基于 TensorFlow 的高效风格迁移工具，能在毫秒级时间内将著名画作的艺术风格应用到照片或视频中。\n\n## 环境准备\n\n### 系统要求\n- **操作系统**: Windows 10 \u002F Linux\n- **GPU**: 推荐 NVIDIA GPU (如 GTX 2080 Ti 或更高)，需支持 CUDA\n- **CUDA 版本**: 11.0 (根据具体显卡驱动调整)\n- **驱动版本**: 445.75 或更高\n\n### 前置依赖\n- Python 2.7.9 (原文要求，但建议在新环境中使用兼容的 Python 3 版本配合 TensorFlow 2.x)\n- TensorFlow 2.1.0 (GPU 版本)\n- 其他库：Pillow, scipy, numpy, moviepy, ffmpeg (视频处理必备)\n\n> **注意**：若需进行视频风格化，请确保系统已安装 `ffmpeg`。\n\n## 安装步骤\n\n推荐使用 Anaconda 构建隔离的虚拟环境。\n\n### 1. 安装 Anaconda\n访问 [Anaconda 官网](https:\u002F\u002Fdocs.anaconda.com\u002Fanaconda\u002Finstall\u002F) 下载并安装。\n*国内用户可考虑使用清华源或中科大源加速后续包下载。*\n\n### 2. 创建并激活虚拟环境\n打开终端（Linux\u002FMac）或 Anaconda Prompt（Windows），依次执行以下命令：\n\n```bash\n# 创建名为 tf-gpu 的环境并安装 TensorFlow GPU 版\nconda create -n tf-gpu tensorflow-gpu=2.1.0\n\n# 激活环境\nconda activate tf-gpu\n\n# 安装 Jupyter Lab 用于交互开发\nconda install jupyterlab\n\n# 启动 Jupyter Lab\njupyter lab\n```\n\n### 3. 安装额外依赖\n在 Jupyter Notebook 单元格中运行，或直接在终端运行：\n\n```bash\npip install moviepy==1.0.2\n```\n\n*(可选) 配置国内镜像源加速 pip 安装：*\n```bash\npip install moviepy==1.0.2 -i https:\u002F\u002Fpypi.tuna.tsinghua.edu.cn\u002Fsimple\n```\n\n### 4. 初始化项目\n在使用训练脚本前，请先运行项目根目录下的设置脚本：\n```bash\n.\u002Fsetup.sh\n```\n*(Windows 用户若无 bash 环境，请检查 `setup.sh` 内容手动执行相应操作，或直接跳过此步尝试运行主程序)*\n\n## 基本使用\n\n### 场景一：评估\u002F应用已有模型（推荐新手）\n直接使用预训练模型将风格应用到图片。你需要先下载预训练模型（[Google Drive 链接](https:\u002F\u002Fdrive.google.com\u002Fdrive\u002Ffolders\u002F0B9jhaT37ydSyRk9UX0wwX3BpMzQ?resourcekey=0-Z9LcNHC-BTB4feKwm4loXw&usp=sharing)）。\n\n```bash\npython evaluate.py --checkpoint path\u002Fto\u002Fstyle\u002Fmodel.ckpt \\\n  --in-path dir\u002Fof\u002Ftest\u002Fimgs\u002F \\\n  --out-path dir\u002Ffor\u002Fresults\u002F\n```\n- `--checkpoint`: 预训练模型文件路径 (.ckpt)\n- `--in-path`: 输入图片所在文件夹\n- `--out-path`: 输出结果保存文件夹\n\n*注：在 Titan X GPU 上处理单张图片仅需约 100ms。*\n\n### 场景二：训练新的风格模型\n如果你想用自己的图片作为风格来源，需要训练新网络。准备一张风格图（如 `style.jpg`）和一张测试图。\n\n```bash\npython style.py --style path\u002Fto\u002Fstyle\u002Fimg.jpg \\\n  --checkpoint-dir checkpoint\u002Fpath \\\n  --test path\u002Fto\u002Ftest\u002Fimg.jpg \\\n  --test-dir path\u002Fto\u002Ftest\u002Fdir \\\n  --content-weight 1.5e1 \\\n  --checkpoint-iterations 1000 \\\n  --batch-size 20\n```\n- 训练耗时：在 Maxwell Titan X 上约需 4-6 小时。\n- 生成模型后，可使用“场景一”的方法进行推理。\n\n### 场景三：视频风格化\n将风格迁移应用到视频文件（需安装 ffmpeg）。\n\n```bash\npython transform_video.py --in-path path\u002Fto\u002Finput\u002Fvid.mp4 \\\n  --checkpoint path\u002Fto\u002Fstyle\u002Fmodel.ckpt \\\n  --out-path out\u002Fvideo.mp4 \\\n  --device \u002Fgpu:0 \\\n  --batch-size 4\n```","一家数字营销机构的设计团队需要为某艺术展的线上宣传片快速生成多种不同画风的视觉素材，以测试观众对特定艺术风格（如印象派、表现主义）的反馈。\n\n### 没有 fast-style-transfer 时\n- **渲染耗时极长**：传统神经风格迁移算法处理单张高清图片需数分钟，若要对视频逐帧处理，渲染一部短片可能需要数天甚至数周。\n- **硬件门槛过高**：为了缩短等待时间，团队必须租用昂贵的云端 GPU 集群或依赖高性能工作站，大幅推高了项目预算。\n- **创意迭代受阻**：由于生成一张效果图的时间成本太高，设计师不敢轻易尝试多种风格组合，导致创意方案单一，难以满足客户多样化的需求。\n- **视频动态效果差**：若强行将静态风格迁移应用于视频，往往因帧间不一致导致画面出现严重的闪烁和噪点，后期修复工作量巨大。\n\n### 使用 fast-style-transfer 后\n- **实时生成效率**：借助基于 TensorFlow 的优化网络，fast-style-transfer 能在普通显卡（如 Titan X）上以约 100 毫秒的速度完成一张高清图的风格化，视频处理也能流畅进行。\n- **降低部署成本**：该工具对硬件要求相对亲民，团队直接在现有的开发机上即可运行，无需额外投入昂贵的计算资源。\n- **激发创意潜能**：设计师可以在几秒钟内预览芝加哥街景融合《神奈川冲浪里》或《呐喊》等不同名画风格的效果，迅速筛选出最佳视觉方案。\n- **视频风格统一**：fast-style-transfer 专为视频风格化设计，能保持帧间稳定性，直接输出无闪烁的艺术风格视频，极大减少了后期修图工作。\n\nfast-style-transfer 通过将艺术风格迁移的速度提升数个数量级，让创作者能从漫长的等待中解放出来，真正实现“所想即所见”的高效创意工作流。","https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Flengstrom_fast-style-transfer_b5cff0e5.png","lengstrom","Logan Engstrom","https:\u002F\u002Foss.gittoolsai.com\u002Favatars\u002Flengstrom_20bd8fd1.jpg","CS PhD student at @MIT","MIT","Cambridge, MA","engstrom@mit.edu","logan_engstrom","http:\u002F\u002Floganengstrom.com\u002F","https:\u002F\u002Fgithub.com\u002Flengstrom",[86,90],{"name":87,"color":88,"percentage":89},"Python","#3572A5",99.3,{"name":91,"color":92,"percentage":93},"Shell","#89e051",0.7,10974,2566,"2026-04-02T08:34:03",null,4,"Windows, Linux","训练必需：NVIDIA GPU (测试环境为 GTX 2080 Ti, Titan X)，需安装对应 CUDA (测试环境为 11.0，文档提及需 0.11.0 兼容驱动)；推理可在 CPU 运行但速度较慢","未说明",{"notes":103,"python":104,"dependencies":105},"该项目基于较旧的 TensorFlow 版本 (0.11.0)，但提供的虚拟环境搭建步骤使用了 TensorFlow 2.1.0。视频风格化功能必须安装 ffmpeg。训练过程耗时较长 (约 4-6 小时)，建议使用高性能 GPU。商业使用需联系作者授权。","2.7.9 (文档要求), 虚拟环境示例使用 TensorFlow 2.1.0 (隐含 Python 3.x)",[106,107,108,109,110,111,112,113],"tensorflow-gpu==2.1.0","tensorflow==0.11.0","Pillow==3.4.2","scipy==0.18.1","numpy==1.11.2","moviepy==1.0.2","jupyterlab","ffmpeg==3.1.3",[13],[116,117,118,119],"style-transfer","neural-style","neural-networks","deep-learning","2026-03-27T02:49:30.150509","2026-04-06T05:37:43.841508",[123,128,133,138,143,148],{"id":124,"question_zh":125,"answer_zh":126,"source_url":127},11797,"运行时报错 'AttributeError: module object has no attribute imread' 怎么办？","这是因为 scipy 1.2.0+ 版本已弃用 imread 函数。解决方法有两种：\n1. 降级 scipy 版本：运行 `pip install scipy==1.1.0` 或使用 conda 安装 `conda install scipy=1.1.0`。\n2. 修改代码：将代码中的 `scipy.misc.imread` 替换为 `imageio.imread`（需先安装 imageio 库）。","https:\u002F\u002Fgithub.com\u002Flengstrom\u002Ffast-style-transfer\u002Fissues\u002F106",{"id":129,"question_zh":130,"answer_zh":131,"source_url":132},11798,"训练或评估时出现显存不足（OOM \u002F Running Out of Memory）错误如何解决？","显存不足通常是因为输入图片分辨率过高或 batch_size 设置过大。解决方案包括：\n1. 减小输入图片的尺寸，使用较小的图片进行测试或训练。\n2. 降低 `--batch-size` 参数的值（例如设为 1 或更小）。\n3. 对于 GTX 750 Ti 等小显存显卡，必须大幅减小图片分辨率才能避免崩溃。","https:\u002F\u002Fgithub.com\u002Flengstrom\u002Ffast-style-transfer\u002Fissues\u002F9",{"id":134,"question_zh":135,"answer_zh":136,"source_url":137},11799,"训练完成后找不到 .ckpt 模型文件，或者无法找到具体的 fns.ckpt 文件怎么办？","训练完成后生成的文件可能包含 `checkpoint`, `fns.ckpt-xxxxx.index`, `fns.ckpt-xxxxx.data` 等，而不是单一的 `fns.ckpt`。在运行评估脚本（evaluate.py）时，不需要指定具体的 .ckpt 文件名，只需将 `--checkpoint-dir` 参数指向包含这些文件的目录即可，脚本会自动读取该目录下的最新检查点。","https:\u002F\u002Fgithub.com\u002Flengstrom\u002Ffast-style-transfer\u002Fissues\u002F39",{"id":139,"question_zh":140,"answer_zh":141,"source_url":142},11800,"训练约 5000 次迭代后，风格迁移输出的图像变成全黑是怎么回事？","这通常是由于当前代码主分支（head）存在 bug 导致的。解决方案是回退到之前的稳定版本提交。请执行以下命令回退代码：`git revert` 或直接检出特定提交哈希 `55809f4eafbe7d22632ac8fa254632ec41386d57`，然后重新运行训练。","https:\u002F\u002Fgithub.com\u002Flengstrom\u002Ffast-style-transfer\u002Fissues\u002F40",{"id":144,"question_zh":145,"answer_zh":146,"source_url":147},11801,"项目是否支持 TensorFlow 2.0？如何升级？","官方仓库已经合并了支持 TensorFlow 2.0 的代码。用户可以使用 TensorFlow 自带的升级工具（TF2 upgrade tool）将旧代码转换为 TF2 兼容版本。主要改动包括处理 `.value` 属性等兼容性调整。建议直接拉取最新代码或参考相关的 PR 合并记录。","https:\u002F\u002Fgithub.com\u002Flengstrom\u002Ffast-style-transfer\u002Fissues\u002F225",{"id":149,"question_zh":150,"answer_zh":151,"source_url":152},11802,"训练过程中损失值（Loss）不下降，特别是风格损失（Style Loss）保持不变怎么办？","如果训练多次迭代后损失值不下降，请检查以下配置：\n1. 确认 `--batch-size` 设置是否合理（尝试调整为 10 或其他值）。\n2. 检查是否使用了正确的数据集（如 COCO train2014）。\n3. 确认学习率和权重参数（content-weight, style-weight）是否设置得当。如果问题依旧，可能是数据预处理或超参数选择问题，建议参考社区中关于特定风格图片的训练经验调整参数。","https:\u002F\u002Fgithub.com\u002Flengstrom\u002Ffast-style-transfer\u002Fissues\u002F88",[]]