[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"similar-xunhuang1995--AdaIN-style":3,"tool-xunhuang1995--AdaIN-style":61},[4,18,26,36,44,53],{"id":5,"name":6,"github_repo":7,"description_zh":8,"stars":9,"difficulty_score":10,"last_commit_at":11,"category_tags":12,"status":17},4358,"openclaw","openclaw\u002Fopenclaw","OpenClaw 是一款专为个人打造的本地化 AI 助手，旨在让你在自己的设备上拥有完全可控的智能伙伴。它打破了传统 AI 助手局限于特定网页或应用的束缚，能够直接接入你日常使用的各类通讯渠道，包括微信、WhatsApp、Telegram、Discord、iMessage 等数十种平台。无论你在哪个聊天软件中发送消息，OpenClaw 都能即时响应，甚至支持在 macOS、iOS 和 Android 设备上进行语音交互，并提供实时的画布渲染功能供你操控。\n\n这款工具主要解决了用户对数据隐私、响应速度以及“始终在线”体验的需求。通过将 AI 部署在本地，用户无需依赖云端服务即可享受快速、私密的智能辅助，真正实现了“你的数据，你做主”。其独特的技术亮点在于强大的网关架构，将控制平面与核心助手分离，确保跨平台通信的流畅性与扩展性。\n\nOpenClaw 非常适合希望构建个性化工作流的技术爱好者、开发者，以及注重隐私保护且不愿被单一生态绑定的普通用户。只要具备基础的终端操作能力（支持 macOS、Linux 及 Windows WSL2），即可通过简单的命令行引导完成部署。如果你渴望拥有一个懂你",349277,3,"2026-04-06T06:32:30",[13,14,15,16],"Agent","开发框架","图像","数据工具","ready",{"id":19,"name":20,"github_repo":21,"description_zh":22,"stars":23,"difficulty_score":10,"last_commit_at":24,"category_tags":25,"status":17},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,"2026-04-05T11:01:52",[14,15,13],{"id":27,"name":28,"github_repo":29,"description_zh":30,"stars":31,"difficulty_score":32,"last_commit_at":33,"category_tags":34,"status":17},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 真正成长为懂上",160784,2,"2026-04-19T11:32:54",[14,13,35],"语言模型",{"id":37,"name":38,"github_repo":39,"description_zh":40,"stars":41,"difficulty_score":32,"last_commit_at":42,"category_tags":43,"status":17},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 都能提供强大的支持。其独特的模块化架构允许社区不断扩展新功能，使其成为当前最灵活、生态最丰富的开源扩散模型工具之一，帮助用户将创意高效转化为现实。",109154,"2026-04-18T11:18:24",[14,15,13],{"id":45,"name":46,"github_repo":47,"description_zh":48,"stars":49,"difficulty_score":32,"last_commit_at":50,"category_tags":51,"status":17},6121,"gemini-cli","google-gemini\u002Fgemini-cli","gemini-cli 是一款由谷歌推出的开源 AI 命令行工具，它将强大的 Gemini 大模型能力直接集成到用户的终端环境中。对于习惯在命令行工作的开发者而言，它提供了一条从输入提示词到获取模型响应的最短路径，无需切换窗口即可享受智能辅助。\n\n这款工具主要解决了开发过程中频繁上下文切换的痛点，让用户能在熟悉的终端界面内直接完成代码理解、生成、调试以及自动化运维任务。无论是查询大型代码库、根据草图生成应用，还是执行复杂的 Git 操作，gemini-cli 都能通过自然语言指令高效处理。\n\n它特别适合广大软件工程师、DevOps 人员及技术研究人员使用。其核心亮点包括支持高达 100 万 token 的超长上下文窗口，具备出色的逻辑推理能力；内置 Google 搜索、文件操作及 Shell 命令执行等实用工具；更独特的是，它支持 MCP（模型上下文协议），允许用户灵活扩展自定义集成，连接如图像生成等外部能力。此外，个人谷歌账号即可享受免费的额度支持，且项目基于 Apache 2.0 协议完全开源，是提升终端工作效率的理想助手。",100752,"2026-04-10T01:20:03",[52,13,15,14],"插件",{"id":54,"name":55,"github_repo":56,"description_zh":57,"stars":58,"difficulty_score":32,"last_commit_at":59,"category_tags":60,"status":17},4721,"markitdown","microsoft\u002Fmarkitdown","MarkItDown 是一款由微软 AutoGen 团队打造的轻量级 Python 工具，专为将各类文件高效转换为 Markdown 格式而设计。它支持 PDF、Word、Excel、PPT、图片（含 OCR）、音频（含语音转录）、HTML 乃至 YouTube 链接等多种格式的解析，能够精准提取文档中的标题、列表、表格和链接等关键结构信息。\n\n在人工智能应用日益普及的今天，大语言模型（LLM）虽擅长处理文本，却难以直接读取复杂的二进制办公文档。MarkItDown 恰好解决了这一痛点，它将非结构化或半结构化的文件转化为模型“原生理解”且 Token 效率极高的 Markdown 格式，成为连接本地文件与 AI 分析 pipeline 的理想桥梁。此外，它还提供了 MCP（模型上下文协议）服务器，可无缝集成到 Claude Desktop 等 LLM 应用中。\n\n这款工具特别适合开发者、数据科学家及 AI 研究人员使用，尤其是那些需要构建文档检索增强生成（RAG）系统、进行批量文本分析或希望让 AI 助手直接“阅读”本地文件的用户。虽然生成的内容也具备一定可读性，但其核心优势在于为机器",93400,"2026-04-06T19:52:38",[52,14],{"id":62,"github_repo":63,"name":64,"description_en":65,"description_zh":66,"ai_summary_zh":66,"readme_en":67,"readme_zh":68,"quickstart_zh":69,"use_case_zh":70,"hero_image_url":71,"owner_login":72,"owner_name":73,"owner_avatar_url":74,"owner_bio":75,"owner_company":76,"owner_location":77,"owner_email":78,"owner_twitter":78,"owner_website":79,"owner_url":80,"languages":81,"stars":90,"forks":91,"last_commit_at":92,"license":93,"difficulty_score":94,"env_os":95,"env_gpu":96,"env_ram":97,"env_deps":98,"category_tags":106,"github_topics":107,"view_count":32,"oss_zip_url":78,"oss_zip_packed_at":78,"status":17,"created_at":113,"updated_at":114,"faqs":115,"releases":150},9752,"xunhuang1995\u002FAdaIN-style","AdaIN-style","Arbitrary Style Transfer in Real-time with Adaptive Instance Normalization","AdaIN-style 是一款能够实现实时任意风格迁移的开源算法，源自 ICCV 2017 的口头报告论文。它核心解决了传统风格迁移技术的一大痛点：以往的方法通常只能针对单一或有限的几种预设风格进行训练，而 AdaIN-style 打破了这一限制，允许用户将任何一张参考图片的艺术风格（如梵高的笔触、马蒂斯的色彩）瞬间迁移到任意内容照片上，无需针对新风格重新训练模型。\n\n该工具最大的技术亮点在于引入了“自适应实例归一化”（AdaIN）层。通过动态计算风格图像的特征统计量来调整内容图像的特征分布，它在保持极高灵活性的同时，将处理速度提升了约 720 倍。在 Pascal Titan X 显卡上，它对 512x512 分辨率图像的处理速度可达每秒 15 帧，真正实现了实时应用。此外，用户可以通过简单的参数调整内容保留度与风格化程度之间的平衡。\n\nAdaIN-style 非常适合计算机视觉研究人员、AI 开发者以及需要快速原型验证的设计师使用。虽然其原始代码基于 Torch 框架，但其核心思想已被广泛移植到 PyTorch 等现代平台，是理解和学习高效风格迁移技术的经典范例。","# AdaIN-style\nThis repository contains the code (in [Torch](http:\u002F\u002Ftorch.ch\u002F)) for the paper:\n\n[**Arbitrary Style Transfer in Real-time with Adaptive Instance Normalization**](https:\u002F\u002Farxiv.org\u002Fabs\u002F1703.06868)\n\u003Cbr>\n[Xun Huang](http:\u002F\u002Fwww.cs.cornell.edu\u002F~xhuang\u002F),\n[Serge Belongie](http:\u002F\u002Fblogs.cornell.edu\u002Ftechfaculty\u002Fserge-belongie\u002F)\n\u003Cbr>\nICCV 2017 (**Oral**)\n\nThis paper proposes the first real-time style transfer algorithm that can transfer *arbitrary* new styles, in contrast to [a single style](https:\u002F\u002Farxiv.org\u002Fabs\u002F1603.03417) or [32 styles](https:\u002F\u002Farxiv.org\u002Fabs\u002F1610.07629). Our algorithm runs at 15 FPS with 512x512 images on a Pascal Titan X. This is around 720x speedup compared with the [original algorithm](https:\u002F\u002Farxiv.org\u002Fabs\u002F1508.06576) of Gatys et al., without sacrificing any flexibility. We accomplish this with a novel *adaptive instance normalization* (AdaIN) layer, which is similar to [instance normalization](https:\u002F\u002Farxiv.org\u002Fabs\u002F1701.02096) but with affine parameters adaptively computed from the feature representations of an arbitrary style image.\n\u003Cp align='center'>\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_15ce62c0c703.jpg' width=\"600px\">\n\u003C\u002Fp>\n\n## Examples\n\u003Cp align='center'>\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_56760c4a4ebb.jpg' width=\"140px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_7db42f8670e3.jpg' width=\"140px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_913203d23fc8.jpg' width=\"140px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_5c974ad33fbb.jpg' width=\"140px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_f1783f70db73.jpg' width=\"140px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_e7ed1661fda0.jpg' width=\"140px\">\n\u003C\u002Fp>\n\n\u003Cp align='center'>\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_bc9d8890be0b.jpg' width=\"140px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_64edfa68727a.jpg' width=\"140px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_18cf0801a6db.jpg' width=\"140px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_1df2f521e020.jpg' width=\"140px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_9c6be9bac3af.png' width=\"140px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_a6d0bbfbab6f.jpg' width=\"140px\">\n\u003C\u002Fp>\n\n\u003Cp align='center'>\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_a47acfd00955.jpg' width=\"140px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_417ed2f80d9d.jpg' width=\"140px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_53ed4e125f94.jpg' width=\"140px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_e630f1f0d059.jpg' width=\"140px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_0be4d52002be.jpg', width=\"140px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_c97dbbf67f5a.jpg' width=\"140px\">\n\u003C\u002Fp>\n\n## Dependencies\n* [torch7](https:\u002F\u002Fgithub.com\u002Ftorch\u002Ftorch7)\n\nOptionally:\n* CUDA and cuDNN\n* [cunn](https:\u002F\u002Fgithub.com\u002Ftorch\u002Fcunn)\n* [torch.cudnn](https:\u002F\u002Fgithub.com\u002Fsoumith\u002Fcudnn.torch)\n* [ffmpeg](https:\u002F\u002Fffmpeg.org\u002F) (for video)\n\n\n## Download\n```\nbash models\u002Fdownload_models.sh\n```\n\nThis command will download a pre-trained decoder as well as a modified VGG-19 network. Our style transfer network consists of the first few layers of VGG, an AdaIN layer, and the provided decoder.\n\n## Usage\n### Basic usage\nUse `-content` and `-style` to provide the respective path to the content and style image, for example:\n```\nth test.lua -content input\u002Fcontent\u002Fcornell.jpg -style input\u002Fstyle\u002Fwoman_with_hat_matisse.jpg\n```\n\nYou can also run the code on directories of content and style images using `-contentDir` and `-styleDir`. It will save every possible combination of content and styles to the output directory.\n\n```\nth test.lua -contentDir input\u002Fcontent -styleDir input\u002Fstyle\n```\nSome other options:\n* `-crop`: Center crop both content and style images beforehand.\n* `-contentSize`: New (minimum) size for the content image. Keeping the original size if set to 0.\n* `-styleSize`: New (minimum) size for the content image. Keeping the original size if set to 0.\n\nTo see all available options, type:\n```\nth test.lua -help\n```\n\n### Content-style trade-off\nUse `-alpha` to adjust the degree of stylization. It should be a value between 0 and 1 (default). Example usage:\n```\nth test.lua -content input\u002Fcontent\u002Fchicago.jpg -style input\u002Fstyle\u002Fasheville.jpg -alpha 0.5 -crop\n```\n\nBy changing `-alpha`, you should be able to reproduce the following results.\n\n\u003Cp align='center'>\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_7dae4e199642.jpg' height=\"160px\">\n\u003C\u002Fp>\n\n### Transfer style but not color\nAdd `-preserveColor` to preserve the color of the content image. Example usage: \n```\nth test.lua -content https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_158e50ac7e8e.jpg -style https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_9b8fac55142e.jpg -contentSize 0 -styleSize 0 -preserveColor\n```\n\n\u003Cp align='center'>\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_158e50ac7e8e.jpg' height=\"200px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_9b8fac55142e.jpg' height=\"200px\">\n\u003C\u002Fp>\n\u003Cp align='center'>\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_9fd7a7cefc77.jpg' height=\"370px\">\n\u003C\u002Fp>\n\n### Style interpolation\nIt is possible to interpolate between several styles using `-styleInterpWeights ` that controls the relative weight of each style. Note that you also to need to provide the same number of style images separated be commas. Example usage:\n```\nth test.lua -content input\u002Fcontent\u002Favril.jpg \\\n-style input\u002Fstyle\u002Fpicasso_self_portrait.jpg,input\u002Fstyle\u002Fimpronte_d_artista.jpg,input\u002Fstyle\u002Ftrial.jpg,input\u002Fstyle\u002Fantimonocromatismo.jpg \\\n-styleInterpWeights 1,1,1,1 -crop\n```\nYou should be able to reproduce the following results shown in our paper by changing `-styleInterpWeights `.\n\n\u003Cp align='center'>\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_1a7cc242e121.jpg' height=\"500px\">\n\u003C\u002Fp>\n\n### Spatial control\nUse `-mask` to provide the path to a binary foreground mask. You can transfer the foreground and background of the content image to different styles. Note that you also to need to provide two style images separated be comma, in which the first one is applied to foreground and the second one is applied to background. Example usage:\n```\nth test.lua -content input\u002Fcontent\u002Fblonde_girl.jpg -style input\u002Fstyle\u002Fwoman_in_peasant_dress_cropped.jpg,input\u002Fstyle\u002Fmondrian_cropped.jpg \\\n-mask input\u002Fmask\u002Fmask.png -contentSize 0 -styleSize 0\n```\n\n\u003Cp align='center'>\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_a58787e5eee0.jpg' height=\"300px\">\n\u003C\u002Fp>\n\n### Video Stylization\nUse `styVid.sh` to process videos, example usage:\n```\nth testVid.lua -contentDir videoprocessing\u002F${filename} -style ${styleimage} -outputDir videoprocessing\u002F${filename}-${stylename}\n```\nThis generates 1 mp4 for each image present in ```style-dir-path```. Other video formats are also supported. To change other parameters like alpha, edit line 53 of ```styVid.sh```. An example video with some results can be seen [here](https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=vVkufidT0fc&t=1s) on youtube.\n\n## Training\n\n1. Download [MSCOCO images](http:\u002F\u002Fmscoco.org\u002Fdataset\u002F#download) and [Wikiart images](https:\u002F\u002Fwww.kaggle.com\u002Fc\u002Fpainter-by-numbers).\n2. Use `th train.lua -contentDir COCO_TRAIN_DIR -styleDir WIKIART_TRAIN_DIR` to start training with default hyperparameters. Replace `COCO_TRAIN_DIR` with the path to COCO training images and `WIKIART_TRAIN_DIR` with the path to Wikiart training images. The default hyperparameters are the same as the ones used to train `decoder-content-similar.t7`. To reproduce the results from `decoder.t7`, add `-styleWeight 1e-1`.\n\n## Citation\n\nIf you find this code useful for your research, please cite the paper:\n\n```\n@inproceedings{huang2017adain,\n  title={Arbitrary Style Transfer in Real-time with Adaptive Instance Normalization},\n  author={Huang, Xun and Belongie, Serge},\n  booktitle={ICCV},\n  year={2017}\n}\n```\n## Acknowledgement\n\nThis project is inspired by many existing style transfer methods and their open-source implementations, including:\n* [Image Style Transfer Using Convolutional Neural Networks](http:\u002F\u002Fwww.cv-foundation.org\u002Fopenaccess\u002Fcontent_cvpr_2016\u002Fhtml\u002FGatys_Image_Style_Transfer_CVPR_2016_paper.html), Gatys et al. [[code](https:\u002F\u002Fgithub.com\u002Fjcjohnson\u002Fneural-style) (by [Johnson](http:\u002F\u002Fcs.stanford.edu\u002Fpeople\u002Fjcjohns\u002F))]\n* [Perceptual Losses for Real-Time Style Transfer and Super-Resolution](https:\u002F\u002Farxiv.org\u002Fabs\u002F1603.08155), [Johnson](http:\u002F\u002Fcs.stanford.edu\u002Fpeople\u002Fjcjohns\u002F) et al. [[code](https:\u002F\u002Fgithub.com\u002Fjcjohnson\u002Ffast-neural-style)]\n* [Improved Texture Networks: Maximizing Quality and Diversity in Feed-forward Stylization and Texture Synthesis](https:\u002F\u002Farxiv.org\u002Fabs\u002F1701.02096), [Ulyanov](https:\u002F\u002Fdmitryulyanov.github.io\u002Fabout\u002F) et al. [[code](https:\u002F\u002Fgithub.com\u002FDmitryUlyanov\u002Ftexture_nets)]\n* [A Learned Representation For Artistic Style](https:\u002F\u002Fopenreview.net\u002Fforum?id=BJO-BuT1g&noteId=BJO-BuT1g), [Dumoulin](http:\u002F\u002Fvdumoulin.github.io\u002F) et al. [[code](https:\u002F\u002Fgithub.com\u002Ftensorflow\u002Fmagenta\u002Ftree\u002Fmaster\u002Fmagenta\u002Fmodels\u002Fimage_stylization)]\n* [Fast Patch-based Style Transfer of Arbitrary Style](https:\u002F\u002Farxiv.org\u002Fabs\u002F1612.04337), Chen and [Schmidt](http:\u002F\u002Fwww.cs.ubc.ca\u002F~schmidtm\u002F) [[code](https:\u002F\u002Fgithub.com\u002Frtqichen\u002Fstyle-swap)]\n* [Controlling Perceptual Factors in Neural Style Transfer](https:\u002F\u002Farxiv.org\u002Fabs\u002F1611.07865), Gatys et al. [[code](https:\u002F\u002Fgithub.com\u002Fleongatys\u002FNeuralImageSynthesis)]\n\n## Contact\n\nIf you have any questions or suggestions about the paper, feel free to reach me (xh258@cornell.edu).\n","# AdaIN风格\n本仓库包含论文的代码（基于 [Torch](http:\u002F\u002Ftorch.ch\u002F)）：\n\n[**实时任意风格迁移：自适应实例归一化**](https:\u002F\u002Farxiv.org\u002Fabs\u002F1703.06868)\n\u003Cbr>\n[Xun Huang](http:\u002F\u002Fwww.cs.cornell.edu\u002F~xhuang\u002F)，\n[Serge Belongie](http:\u002F\u002Fblogs.cornell.edu\u002Ftechfaculty\u002Fserge-belongie\u002F)\n\u003Cbr>\nICCV 2017 (**口头报告**)\n\n本文提出了一种首个能够迁移*任意*新风格的实时风格迁移算法，不同于仅能迁移[单一风格](https:\u002F\u002Farxiv.org\u002Fabs\u002F1603.03417)或[32种风格](https:\u002F\u002Farxiv.org\u002Fabs\u002F1610.07629)的方法。我们的算法在 Pascal Titan X 显卡上处理 512×512 分辨率图像时，可达到 15 FPS 的速度。与 Gatys 等人的[原始算法](https:\u002F\u002Farxiv.org\u002Fabs\u002F1508.06576)相比，这一速度提升了约 720 倍，且未牺牲任何灵活性。我们通过一种新颖的 *自适应实例归一化* (AdaIN) 层实现了这一点，该层类似于[实例归一化](https:\u002F\u002Farxiv.org\u002Fabs\u002F1701.02096)，但其仿射参数是根据任意风格图像的特征表示自适应计算得出的。\n\u003Cp align='center'>\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_15ce62c0c703.jpg' width=\"600px\">\n\u003C\u002Fp>\n\n## 示例\n\u003Cp align='center'>\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_56760c4a4ebb.jpg' width=\"140px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_7db42f8670e3.jpg' width=\"140px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_913203d23fc8.jpg' width=\"140px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_5c974ad33fbb.jpg' width=\"140px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_f1783f70db73.jpg' width=\"140px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_e7ed1661fda0.jpg' width=\"140px\">\n\u003C\u002Fp>\n\n\u003Cp align='center'>\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_bc9d8890be0b.jpg' width=\"140px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_64edfa68727a.jpg' width=\"140px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_18cf0801a6db.jpg' width=\"140px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_1df2f521e020.jpg' width=\"140px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_9c6be9bac3af.png' width=\"140px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_a6d0bbfbab6f.jpg' width=\"140px\">\n\u003C\u002Fp>\n\n\u003Cp align='center'>\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_a47acfd00955.jpg' width=\"140px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_417ed2f80d9d.jpg' width=\"140px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_53ed4e125f94.jpg' width=\"140px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_e630f1f0d059.jpg' width=\"140px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_0be4d52002be.jpg' width=\"140px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_c97dbbf67f5a.jpg' width=\"140px\">\n\u003C\u002Fp>\n\n## 依赖项\n* [torch7](https:\u002F\u002Fgithub.com\u002Ftorch\u002Ftorch7)\n\n可选：\n* CUDA 和 cuDNN\n* [cunn](https:\u002F\u002Fgithub.com\u002Ftorch\u002Fcunn)\n* [torch.cudnn](https:\u002F\u002Fgithub.com\u002Fsoumith\u002Fcudnn.torch)\n* [ffmpeg](https:\u002F\u002Fffmpeg.org\u002F)（用于视频）\n\n\n## 下载\n```\nbash models\u002Fdownload_models.sh\n```\n\n此命令将下载一个预训练的解码器以及一个经过修改的 VGG-19 网络。我们的风格迁移网络由 VGG 的前几层、一个 AdaIN 层和提供的解码器组成。\n\n## 使用方法\n### 基本用法\n使用 `-content` 和 `-style` 分别指定内容图像和风格图像的路径，例如：\n```\nth test.lua -content input\u002Fcontent\u002Fcornell.jpg -style input\u002Fstyle\u002Fwoman_with_hat_matisse.jpg\n```\n\n你也可以使用 `-contentDir` 和 `-styleDir` 在内容和风格图像的目录上运行代码。它会将内容和风格的所有可能组合保存到输出目录中。\n\n```\nth test.lua -contentDir input\u002Fcontent -styleDir input\u002Fstyle\n```\n其他一些选项：\n* `-crop`：预先对内容和风格图像进行中心裁剪。\n* `-contentSize`：内容图像的新（最小）尺寸。若设置为 0，则保持原始尺寸。\n* `-styleSize`：风格图像的新（最小）尺寸。若设置为 0，则保持原始尺寸。\n\n要查看所有可用选项，请输入：\n```\nth test.lua -help\n```\n\n### 内容-风格权衡\n使用 `-alpha` 调整风格化的程度。其值应在 0 到 1 之间（默认值）。示例用法：\n```\nth test.lua -content input\u002Fcontent\u002Fchicago.jpg -style input\u002Fstyle\u002Fasheville.jpg -alpha 0.5 -crop\n```\n\n通过调整 `-alpha`，你应该能够重现以下结果。\n\n\u003Cp align='center'>\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_7dae4e199642.jpg' height=\"160px\">\n\u003C\u002Fp>\n\n### 迁移风格但不迁移颜色\n添加 `-preserveColor` 以保留内容图像的颜色。示例用法：\n```\nth test.lua -content https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_158e50ac7e8e.jpg -style https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_9b8fac55142e.jpg -contentSize 0 -styleSize 0 -preserveColor\n```\n\n\u003Cp align='center'>\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_158e50ac7e8e.jpg' height=\"200px\">\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_9b8fac55142e.jpg' height=\"200px\">\n\u003C\u002Fp>\n\u003Cp align='center'>\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_9fd7a7cefc77.jpg' height=\"370px\">\n\u003C\u002Fp>\n\n### 风格插值\n可以使用 `-styleInterpWeights` 在多个风格之间进行插值，该参数控制每个风格的相对权重。请注意，你也需要提供相同数量的风格图像，并用逗号分隔。示例用法：\n```\nth test.lua -content input\u002Fcontent\u002Favril.jpg \\\n-style input\u002Fstyle\u002Fpicasso_self_portrait.jpg,input\u002Fstyle\u002Fimpronte_d_artista.jpg,input\u002Fstyle\u002Ftrial.jpg,input\u002Fstyle\u002Fantimonocromatismo.jpg \\\n-styleInterpWeights 1,1,1,1 -crop\n```\n\n通过改变 `-styleInterpWeights`，你应该能够重现我们论文中展示的结果。\n\n\u003Cp align='center'>\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_1a7cc242e121.jpg' height=\"500px\">\n\u003C\u002Fp>\n\n### 空间控制\n使用 `-mask` 指定二值前景掩码的路径。你可以将内容图像的前景和背景分别迁移到不同的风格。请注意，你也需要提供两幅风格图像，并用逗号分隔，其中第一幅应用于前景，第二幅应用于背景。示例用法：\n```\nth test.lua -content input\u002Fcontent\u002Fblonde_girl.jpg -style input\u002Fstyle\u002Fwoman_in_peasant_dress_cropped.jpg,input\u002Fstyle\u002Fmondrian_cropped.jpg \\\n-mask input\u002Fmask\u002Fmask.png -contentSize 0 -styleSize 0\n```\n\n\u003Cp align='center'>\n  \u003Cimg src='https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_readme_a58787e5eee0.jpg' height=\"300px\">\n\u003C\u002Fp>\n\n### 视频风格化\n使用 `styVid.sh` 处理视频，示例用法：\n```\nth testVid.lua -contentDir videoprocessing\u002F${filename} -style ${styleimage} -outputDir videoprocessing\u002F${filename}-${stylename}\n```\n这会为 ```style-dir-path``` 中的每张图像生成 1 个 mp4 文件。也支持其他视频格式。如需更改其他参数，如 alpha，可编辑 `styVid.sh` 的第 53 行。一个包含部分结果的示例视频可在 YouTube 上观看：[这里](https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=vVkufidT0fc&t=1s)。\n\n## 训练\n\n1. 下载 [MSCOCO 图像](http:\u002F\u002Fmscoco.org\u002Fdataset\u002F#download) 和 [Wikiart 图像](https:\u002F\u002Fwww.kaggle.com\u002Fc\u002Fpainter-by-numbers)。\n2. 使用 `th train.lua -contentDir COCO_TRAIN_DIR -styleDir WIKIART_TRAIN_DIR` 启动训练，采用默认超参数。将 `COCO_TRAIN_DIR` 替换为 COCO 训练图像的路径，`WIKIART_TRAIN_DIR` 替换为 Wikiart 训练图像的路径。默认超参数与用于训练 `decoder-content-similar.t7` 的超参数相同。若要重现 `decoder.t7` 的结果，可添加 `-styleWeight 1e-1`。\n\n## 引用\n\n如果您在研究中使用了此代码，请引用以下论文：\n\n```\n@inproceedings{huang2017adain,\n  title={实时任意风格迁移：基于自适应实例归一化},\n  author={Huang, Xun 和 Belongie, Serge},\n  booktitle={ICCV},\n  year={2017}\n}\n```\n\n## 致谢\n\n本项目受到众多现有风格迁移方法及其开源实现的启发，其中包括：\n* [基于卷积神经网络的图像风格迁移](http:\u002F\u002Fwww.cv-foundation.org\u002Fopenaccess\u002Fcontent_cvpr_2016\u002Fhtml\u002FGatys_Image_Style_Transfer_CVPR_2016_paper.html)，Gatys 等人 [[代码](https:\u002F\u002Fgithub.com\u002Fjcjohnson\u002Fneural-style)（由 [Johnson](http:\u002F\u002Fcs.stanford.edu\u002Fpeople\u002Fjcjohns\u002F) 提供）]\n* [用于实时风格迁移和超分辨率的感知损失](https:\u002F\u002Farxiv.org\u002Fabs\u002F1603.08155)，[Johnson](http:\u002F\u002Fcs.stanford.edu\u002Fpeople\u002Fjcjohns\u002F) 等人 [[代码](https:\u002F\u002Fgithub.com\u002Fjcjohnson\u002Ffast-neural-style)]\n* [改进的纹理网络：在前馈式风格化与纹理合成中最大化质量和多样性](https:\u002F\u002Farxiv.org\u002Fabs\u002F1701.02096)，[Ulyanov](https:\u002F\u002Fdmitryulyanov.github.io\u002Fabout\u002F) 等人 [[代码](https:\u002F\u002Fgithub.com\u002FDmitryUlyanov\u002Ftexture_nets)]\n* [艺术风格的可学习表征](https:\u002F\u002Fopenreview.net\u002Fforum?id=BJO-BuT1g&noteId=BJO-BuT1g)，[Dumoulin](http:\u002F\u002Fvdumoulin.github.io\u002F) 等人 [[代码](https:\u002F\u002Fgithub.com\u002Ftensorflow\u002Fmagenta\u002Ftree\u002Fmaster\u002Fmagenta\u002Fmodels\u002Fimage_stylization)]\n* [任意风格的快速基于块的风格迁移](https:\u002F\u002Farxiv.org\u002Fabs\u002F1612.04337)，Chen 和 [Schmidt](http:\u002F\u002Fwww.cs.ubc.ca\u002F~schmidtm\u002F) [[代码](https:\u002F\u002Fgithub.com\u002Frtqichen\u002Fstyle-swap)]\n* [神经风格迁移中感知因素的控制](https:\u002F\u002Farxiv.org\u002Fabs\u002F1611.07865)，Gatys 等人 [[代码](https:\u002F\u002Fgithub.com\u002Fleongatys\u002FNeuralImageSynthesis)]\n\n## 联系方式\n\n如您对本文有任何疑问或建议，欢迎随时联系我（xh258@cornell.edu）。","# AdaIN-style 快速上手指南\n\nAdaIN-style 是一种基于自适应实例归一化（Adaptive Instance Normalization）的实时任意风格迁移算法。它能够在不牺牲灵活性的前提下，以极快的速度将任意艺术风格迁移到内容图像上。\n\n## 环境准备\n\n本项目基于 **Torch7** 框架开发，建议在 Linux 或 macOS 环境下运行。若需加速推理，推荐配置 NVIDIA GPU 及相关 CUDA 环境。\n\n### 系统要求\n*   **操作系统**: Linux \u002F macOS\n*   **核心框架**: [Torch7](http:\u002F\u002Ftorch.ch\u002F)\n*   **可选加速**: CUDA, cuDNN\n\n### 依赖安装\n请确保已安装 Torch7。若使用 GPU 加速，还需安装以下 Lua 包：\n*   `cunn` (CUDA support for Torch)\n*   `torch.cudnn` (cuDNN bindings)\n*   `ffmpeg` (如需处理视频风格迁移)\n\n> **注意**：由于 Torch7 社区维护状态及国内网络环境，安装过程可能较为复杂。建议参考国内开发者整理的 Torch7 安装教程或使用 Docker 镜像进行环境部署。\n\n## 安装步骤\n\n### 1. 克隆项目代码\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fxunhuang1995\u002FAdaIN-style.git\ncd AdaIN-style\n```\n\n### 2. 下载预训练模型\n运行官方提供的脚本下载预训练的解码器（decoder）和修改后的 VGG-19 网络。\n```bash\nbash models\u002Fdownload_models.sh\n```\n*注：若下载速度慢，可手动访问项目 Release 页面或通过其他渠道获取 `.t7` 模型文件并放入 `models\u002F` 目录。*\n\n## 基本使用\n\n### 单张图像风格迁移\n使用 `th test.lua` 命令，通过 `-content` 指定内容图路径，`-style` 指定风格图路径。\n\n**示例命令：**\n```bash\nth test.lua -content input\u002Fcontent\u002Fcornell.jpg -style input\u002Fstyle\u002Fwoman_with_hat_matisse.jpg\n```\n执行后，生成的风格化图像将保存在输出目录中。\n\n### 常用参数说明\n*   `-alpha`: 控制风格化程度（0 到 1 之间，默认为 1）。值越小，保留越多原始内容特征。\n    ```bash\n    th test.lua -content input\u002Fcontent\u002Fchicago.jpg -style input\u002Fstyle\u002Fasheville.jpg -alpha 0.5\n    ```\n*   `-preserveColor`: 保留内容图像的原始颜色，仅迁移纹理风格。\n    ```bash\n    th test.lua -content input\u002Fcontent\u002Fnewyork.jpg -style input\u002Fstyle\u002Fbrushstrokes.jpg -preserveColor\n    ```\n*   `-contentSize` \u002F `-styleSize`: 调整输入图像的尺寸（设为 0 保持原尺寸）。\n*   `-help`: 查看所有可用选项。\n    ```bash\n    th test.lua -help\n    ```\n\n### 批量处理\n支持对文件夹内的图片进行全组合风格迁移：\n```bash\nth test.lua -contentDir input\u002Fcontent -styleDir input\u002Fstyle\n```","一家数字营销机构的设计师需要在短时间内为某旅游品牌生成数十张具有不同艺术风格的宣传海报，以测试市场反应。\n\n### 没有 AdaIN-style 时\n- **风格受限严重**：传统算法通常只能支持单一预设风格或有限的几十种风格，无法灵活匹配客户指定的任意小众画作（如特定的现代主义素描）。\n- **渲染速度极慢**：基于优化的原始算法处理一张高清图需数分钟，批量生成上百张组合图需耗时数小时甚至过夜，严重拖慢提案进度。\n- **调整成本高昂**：若客户想微调“风格化程度”，必须重新运行漫长的计算过程，无法在现场会议中实时展示不同效果。\n- **硬件资源浪费**：长时间占用高性能 GPU 进行串行计算，导致团队其他成员无法使用服务器资源进行模型训练。\n\n### 使用 AdaIN-style 后\n- **任意风格即时迁移**：设计师可上传任何参考图（如马蒂斯的画作或手绘草图），AdaIN-style 能立即提取其特征并应用到内容图上，无风格限制。\n- **实时生成效率**：在 Titan X 显卡上处理 512x512 图像仅需约 0.07 秒（15 FPS），原本需要整晚的批量任务现在几分钟内即可完成。\n- **参数动态调节**：通过调整 `-alpha` 参数，设计师能在秒级时间内实时预览从“保留原貌”到“完全风格化”的连续变化，轻松满足客户个性化需求。\n- **工作流大幅简化**：支持直接对文件夹批处理，自动输出所有内容与风格的组合结果，让团队能将精力集中在创意筛选而非等待渲染上。\n\nAdaIN-style 通过将任意风格迁移的速度提升 720 倍，彻底打破了创意验证的时间瓶颈，让实时艺术创作成为可能。","https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fxunhuang1995_AdaIN-style_56760c4a.jpg","xunhuang1995","Xun Huang","https:\u002F\u002Foss.gittoolsai.com\u002Favatars\u002Fxunhuang1995_c2b9d653.jpg","Research Scientist@Adobe","Adobe","Pittsburgh",null,"xunhuang.me","https:\u002F\u002Fgithub.com\u002Fxunhuang1995",[82,86],{"name":83,"color":84,"percentage":85},"Lua","#000080",96.3,{"name":87,"color":88,"percentage":89},"Shell","#89e051",3.7,1561,199,"2026-04-07T19:17:40","MIT",5,"Linux, macOS","可选但推荐。需要 NVIDIA GPU 以启用 CUDA\u002FcuDNN 加速（如 Pascal Titan X），未明确具体显存大小和 CUDA 版本要求。","未说明",{"notes":99,"python":100,"dependencies":101},"该工具基于旧的 Torch7 (Lua) 框架，而非现代 Python PyTorch。运行命令使用 'th' 而非 'python'。首次运行需执行脚本下载预训练的解码器和修改版的 VGG-19 网络模型。支持实时任意风格迁移，在 Pascal Titan X 上处理 512x512 图像可达 15 FPS。","不适用 (基于 Lua\u002FTorch7)",[102,103,104,105],"torch7","cunn (可选，用于 CUDA)","torch.cudnn (可选，用于 cuDNN)","ffmpeg (可选，用于视频处理)",[14],[108,109,110,111,112],"style-transfer","neural-style","generative-art","generative-model","deep-learning","2026-03-27T02:49:30.150509","2026-04-20T04:06:31.730784",[116,121,126,131,136,141,146],{"id":117,"question_zh":118,"answer_zh":119,"source_url":120},43795,"如何在没有 GPU 的情况下运行测试代码（遇到 'cudnn' not found 错误）？","需要在命令行参数中显式指定不使用 GPU。请添加 `-gpu -1` 参数。例如：`th test.lua -content input\u002Fcontent\u002Fcornell.jpg -style input\u002Fstyle\u002Fwoman_with_hat_matisse.jpg -gpu -1`。","https:\u002F\u002Fgithub.com\u002Fxunhuang1995\u002FAdaIN-style\u002Fissues\u002F19",{"id":122,"question_zh":123,"answer_zh":124,"source_url":125},43796,"安装时遇到 'unsup' 模块找不到的错误如何解决？","如果不需要使用“保留颜色风格迁移”（color-preserved style transfer）功能，可以通过修改代码绕过此依赖。请在 `lib\u002Futils.lua` 文件中注释掉第 2 行以及第 51-64 行。这样代码的其他部分即可正常运行。","https:\u002F\u002Fgithub.com\u002Fxunhuang1995\u002FAdaIN-style\u002Fissues\u002F3",{"id":127,"question_zh":128,"answer_zh":129,"source_url":130},43797,"生成的图像效果过于抽象或细节丢失严重（如面部像鬼魂），如何改善？","这通常是因为风格化程度过高导致内容未得到良好保留。可以尝试以下方法：1. 调低 `-alpha` 参数的值；2. 提高内容图像的分辨率；3. 下载并使用训练时风格权重较小的解码器模型（命令：`wget -c https:\u002F\u002Fs3.amazonaws.com\u002Fxunhuang-public\u002Fadain\u002Fdecoder-content-similar.t7`）；4. 更换一张风格图像。","https:\u002F\u002Fgithub.com\u002Fxunhuang1995\u002FAdaIN-style\u002Fissues\u002F1",{"id":132,"question_zh":133,"answer_zh":134,"source_url":135},43798,"项目是否提供了训练代码？","是的，维护者已更新并提供了训练代码，可以直接在仓库中获取。","https:\u002F\u002Fgithub.com\u002Fxunhuang1995\u002FAdaIN-style\u002Fissues\u002F9",{"id":137,"question_zh":138,"answer_zh":139,"source_url":140},43799,"是否有 Python (TensorFlow) 版本的实现或 AdaIN 算法的伪代码解释？","社区成员已经提供了 TensorFlow 的实现版本供参考。你可以查看以下仓库：https:\u002F\u002Fgithub.com\u002Fdiggerdu\u002FVincent 或 https:\u002F\u002Fgithub.com\u002Feridgd\u002FAdaIN-TF。","https:\u002F\u002Fgithub.com\u002Fxunhuang1995\u002FAdaIN-style\u002Fissues\u002F28",{"id":142,"question_zh":143,"answer_zh":144,"source_url":145},43800,"如何获取预训练网络的权重文件以便在非 Lua 环境（如 C#）中使用？","维护者已响应需求，将预训练网络的权重转换为了 JSON 或二进制格式，以便在其他语言环境中集成使用。","https:\u002F\u002Fgithub.com\u002Fxunhuang1995\u002FAdaIN-style\u002Fissues\u002F34",{"id":147,"question_zh":148,"answer_zh":149,"source_url":135},43801,"整个流程中哪些部分是可学习的？AdaIN 本身有参数吗？","在整个流水线中，唯一可学习的网络是 VGG 解码器（Decoder）。AdaIN（自适应实例归一化）是一个确定性函数，正如论文第 5 节所述，它没有任何可学习的参数。",[]]