[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"similar-LynnHo--AttGAN-Tensorflow":3,"tool-LynnHo--AttGAN-Tensorflow":64},[4,17,26,40,48,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},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,2,"2026-04-03T11:11:01",[13,14,15],{"id":27,"name":28,"github_repo":29,"description_zh":30,"stars":31,"difficulty_score":23,"last_commit_at":32,"category_tags":33,"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,34,35,36,15,37,38,13,39],"数据工具","视频","插件","其他","语言模型","音频",{"id":41,"name":42,"github_repo":43,"description_zh":44,"stars":45,"difficulty_score":10,"last_commit_at":46,"category_tags":47,"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,38,37],{"id":49,"name":50,"github_repo":51,"description_zh":52,"stars":53,"difficulty_score":10,"last_commit_at":54,"category_tags":55,"status":16},519,"PaddleOCR","PaddlePaddle\u002FPaddleOCR","PaddleOCR 是一款基于百度飞桨框架开发的高性能开源光学字符识别工具包。它的核心能力是将图片、PDF 等文档中的文字提取出来，转换成计算机可读取的结构化数据，让机器真正“看懂”图文内容。\n\n面对海量纸质或电子文档，PaddleOCR 解决了人工录入效率低、数字化成本高的问题。尤其在人工智能领域，它扮演着连接图像与大型语言模型（LLM）的桥梁角色，能将视觉信息直接转化为文本输入，助力智能问答、文档分析等应用场景落地。\n\nPaddleOCR 适合开发者、算法研究人员以及有文档自动化需求的普通用户。其技术优势十分明显：不仅支持全球 100 多种语言的识别，还能在 Windows、Linux、macOS 等多个系统上运行，并灵活适配 CPU、GPU、NPU 等各类硬件。作为一个轻量级且社区活跃的开源项目，PaddleOCR 既能满足快速集成的需求，也能支撑前沿的视觉语言研究，是处理文字识别任务的理想选择。",74913,"2026-04-05T10:44:17",[38,14,13,37],{"id":57,"name":58,"github_repo":59,"description_zh":60,"stars":61,"difficulty_score":23,"last_commit_at":62,"category_tags":63,"status":16},2471,"tesseract","tesseract-ocr\u002Ftesseract","Tesseract 是一款历史悠久且备受推崇的开源光学字符识别（OCR）引擎，最初由惠普实验室开发，后由 Google 维护，目前由全球社区共同贡献。它的核心功能是将图片中的文字转化为可编辑、可搜索的文本数据，有效解决了从扫描件、照片或 PDF 文档中提取文字信息的难题，是数字化归档和信息自动化的重要基础工具。\n\n在技术层面，Tesseract 展现了强大的适应能力。从版本 4 开始，它引入了基于长短期记忆网络（LSTM）的神经网络 OCR 引擎，显著提升了行识别的准确率；同时，为了兼顾旧有需求，它依然支持传统的字符模式识别引擎。Tesseract 原生支持 UTF-8 编码，开箱即用即可识别超过 100 种语言，并兼容 PNG、JPEG、TIFF 等多种常见图像格式。输出方面，它灵活支持纯文本、hOCR、PDF、TSV 等多种格式，方便后续数据处理。\n\nTesseract 主要面向开发者、研究人员以及需要构建文档处理流程的企业用户。由于它本身是一个命令行工具和库（libtesseract），不包含图形用户界面（GUI），因此最适合具备一定编程能力的技术人员集成到自动化脚本或应用程序中",73286,"2026-04-03T01:56:45",[13,14],{"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":78,"owner_website":82,"owner_url":83,"languages":84,"stars":89,"forks":90,"last_commit_at":91,"license":92,"difficulty_score":93,"env_os":94,"env_gpu":95,"env_ram":96,"env_deps":97,"category_tags":106,"github_topics":107,"view_count":10,"oss_zip_url":78,"oss_zip_packed_at":78,"status":16,"created_at":113,"updated_at":114,"faqs":115,"releases":154},437,"LynnHo\u002FAttGAN-Tensorflow","AttGAN-Tensorflow","[TIP'19] AttGAN: Facial Attribute Editing by Only Changing What You Want","AttGAN-Tensorflow 是一个基于 TensorFlow 实现的人脸属性编辑开源项目，源自发表于 IEEE TIP 2019 的研究工作。它能对人脸图像进行精准的语义级编辑——比如添加眼镜、改变发色、调整年龄感等——同时尽可能保留其他无关特征不变，真正做到“只改你想改的部分”。传统方法在修改某一属性时容易影响面部其他区域，而 AttGAN 通过引入注意力机制和对抗训练策略，显著提升了编辑的局部性和可控性。该项目适合计算机视觉领域的研究人员和 AI 开发者使用，尤其适用于对生成模型、人脸编辑或 GAN 技术感兴趣的技术人群。虽然普通用户也可尝试运行示例，但需具备一定 Python 和深度学习环境配置经验。代码支持 CelebA 数据集，并提供了包含多达 40 种属性的高分辨率编辑效果，是探索可控图像生成的实用起点。","\u003Cp align=\"center\"> \u003Cimg src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002FLynnHo_AttGAN-Tensorflow_readme_9db94baff6b4.png\" width=\"36%\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u003Cimg src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002FLynnHo_AttGAN-Tensorflow_readme_bdcf3f952873.png\" width=\"54%\"> \u003C\u002Fp>\n\n\u003Cp align=\"center\"> \u003Cimg src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002FLynnHo_AttGAN-Tensorflow_readme_3070b502f422.jpg\" width=\"92%\"> \u003C\u002Fp>\n\n\u003Ch1 align=\"center\">\n    \u003Ca href=\"https:\u002F\u002Fkdocs.cn\u002Fl\u002Fcpp7J2ZsFUW7\">AttGAN\u003C\u002Fa>\n\u003C\u002Fh1>\n\n\u003Ca href=\"https:\u002F\u002Fkdocs.cn\u002Fl\u002Fcpp7J2ZsFUW7\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FTIP 2019-3A98B9?label=%F0%9F%93%9D&labelColor=FFFDD0\" style=\"height: 28px\" \u002F>\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Farxiv.org\u002Fpdf\u002F1711.10678v1.pdf\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FarXiv%202017-B31B1B?label=%F0%9F%93%9D&labelColor=FFFDD0\" style=\"height: 28px\" \u002F>\u003C\u002Fa>\n\n> **[AttGAN: Facial Attribute Editing by Only Changing What You Want](https:\u002F\u002Fkdocs.cn\u002Fl\u002Fcpp7J2ZsFUW7)** \\\n> [Zhenliang He](https:\u002F\u002Flynnho.github.io)\u003Csup>1,2\u003C\u002Fsup>, [Wangmeng Zuo](https:\u002F\u002Fscholar.google.com\u002Fcitations?user=rUOpCEYAAAAJ)\u003Csup>4\u003C\u002Fsup>, [Meina Kan](https:\u002F\u002Fscholar.google.com\u002Fcitations?user=4AKCKKEAAAAJ)\u003Csup>1\u003C\u002Fsup>, [Shiguang Shan](https:\u002F\u002Fscholar.google.com\u002Fcitations?user=Vkzd7MIAAAAJ)\u003Csup>1,3\u003C\u002Fsup>, [Xilin Chen](https:\u002F\u002Fscholar.google.com\u002Fcitations?user=vVx2v20AAAAJ)\u003Csup>1\u003C\u002Fsup> \\\n> \u003Csup>1\u003C\u002Fsup>Key Lab of Intelligent Information Processing, Institute of Computing Technology, CAS, China \\\n> \u003Csup>2\u003C\u002Fsup>University of Chinese Academy of Sciences, China \\\n> \u003Csup>3\u003C\u002Fsup>CAS Center for Excellence in Brain Science and Intelligence Technology, China \\\n> \u003Csup>4\u003C\u002Fsup>School of Computer Science and Technology, Harbin Institute of Technology, China\n\n\u003Cp align=\"center\"> \u003Cimg src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002FLynnHo_AttGAN-Tensorflow_readme_5a27d3fb1cd4.jpg\" width=\"100%\"> \u003C\u002Fp>\n\n## Related\n\n- Other implementations of AttGAN\n\n    - [AttGAN-PyTorch](https:\u002F\u002Fgithub.com\u002Felvisyjlin\u002FAttGAN-PyTorch) by Yu-Jing Lin\n\n    - [AttGAN-PaddlePaddle](https:\u002F\u002Fgithub.com\u002FPaddlePaddle\u002Fmodels\u002Ftree\u002Frelease\u002F1.7\u002FPaddleCV\u002Fgan) by ceci3 and zhumanyu (**AttGAN is one of the official reproduced models of [PaddlePaddle](https:\u002F\u002Fgithub.com\u002FPaddlePaddle?type=source)**)\n\n- Closely related works\n\n    - **An excellent work built upon our code - [STGAN](https:\u002F\u002Fgithub.com\u002Fcsmliu\u002FSTGAN) (CVPR 2019) by Ming Liu**\n\n    - [Changing-the-Memorability](https:\u002F\u002Fgithub.com\u002Facecreamu\u002FChanging-the-Memorability) (CVPR 2019 MBCCV Workshop) by acecreamu\n\n    - [Fashion-AttGAN](https:\u002F\u002Fgithub.com\u002FChanningPing\u002FFashion_Attribute_Editing) (CVPR 2019 FSS-USAD Workshop) by Qing Ping\n\n- An unofficial [demo video](https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=gnN4ZjEWe-8) of AttGAN by 王一凡\n\n## Exemplar Results\n\n- See [results.md](.\u002Fresults.md) for more results, we try **higher resolution** and **more attributes** (all **40** attributes!!!)\n\n- Inverting 13 attributes respectively\n\n    from left to right: *Input, Reconstruction, Bald, Bangs, Black_Hair, Blond_Hair, Brown_Hair, Bushy_Eyebrows, Eyeglasses, Male, Mouth_Slightly_Open, Mustache, No_Beard, Pale_Skin, Young*\n\n    \u003Cimg src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002FLynnHo_AttGAN-Tensorflow_readme_f3067745adac.jpg\" width=\"95%\">\n\n## Usage\n\n- Environment\n\n    - Python 3.6\n\n    - TensorFlow 1.15\n\n    - OpenCV, scikit-image, tqdm, oyaml\n\n    - *we recommend [Anaconda](https:\u002F\u002Fwww.anaconda.com\u002Fdistribution\u002F#download-section) or [Miniconda](https:\u002F\u002Fdocs.conda.io\u002Fen\u002Flatest\u002Fminiconda.html#linux-installers), then you can create the AttGAN environment with commands below*\n\n        ```console\n        conda create -n AttGAN python=3.6\n\n        source activate AttGAN\n\n        conda install opencv scikit-image tqdm tensorflow-gpu=1.15\n\n        conda install -c conda-forge oyaml\n        ```\n\n    - *NOTICE: if you create a new conda environment, remember to activate it before any other command*\n\n        ```console\n        source activate AttGAN\n        ```\n\n- Data Preparation\n\n    - Option 1: [CelebA](http:\u002F\u002Fopenaccess.thecvf.com\u002Fcontent_iccv_2015\u002Fpapers\u002FLiu_Deep_Learning_Face_ICCV_2015_paper.pdf)-unaligned (higher quality than the aligned data, 10.2GB)\n\n        - download the dataset\n\n            - img_celeba.7z (move to **.\u002Fdata\u002Fimg_celeba\u002Fimg_celeba.7z**): [Google Drive](https:\u002F\u002Fdrive.google.com\u002Fdrive\u002Ffolders\u002F0B7EVK8r0v71pTUZsaXdaSnZBZzg?resourcekey=0-rJlzl934LzC-Xp28GeIBzQ) or [Baidu Netdisk](https:\u002F\u002Fpan.baidu.com\u002Fs\u002F1CRxxhoQ97A5qbsKO7iaAJg) (password rp0s)\n\n            - annotations.zip (move to **.\u002Fdata\u002Fimg_celeba\u002Fannotations.zip**): [Google Drive](https:\u002F\u002Fdrive.google.com\u002Ffile\u002Fd\u002F1xd-d1WRnbt3yJnwh5ORGZI3g-YS-fKM9\u002Fview?usp=sharing)\n\n        - unzip and process the data\n\n            ```console\n            7z x .\u002Fdata\u002Fimg_celeba\u002Fimg_celeba.7z\u002Fimg_celeba.7z.001 -o.\u002Fdata\u002Fimg_celeba\u002F\n\n            unzip .\u002Fdata\u002Fimg_celeba\u002Fannotations.zip -d .\u002Fdata\u002Fimg_celeba\u002F\n\n            python .\u002Fscripts\u002Falign.py\n            ```\n\n    - Option 2: CelebA-HQ (we use the data from [CelebAMask-HQ](https:\u002F\u002Fgithub.com\u002Fswitchablenorms\u002FCelebAMask-HQ), 3.2GB)\n\n        - CelebAMask-HQ.zip (move to **.\u002Fdata\u002FCelebAMask-HQ.zip**): [Google Drive](https:\u002F\u002Fdrive.google.com\u002Fopen?id=1badu11NqxGf6qM3PTTooQDJvQbejgbTv) or [Baidu Netdisk](https:\u002F\u002Fpan.baidu.com\u002Fs\u002F1wN1E-B1bJ7mE1mrn9loj5g)\n\n        - unzip and process the data\n\n            ```console\n            unzip .\u002Fdata\u002FCelebAMask-HQ.zip -d .\u002Fdata\u002F\n\n            python .\u002Fscripts\u002Fsplit_CelebA-HQ.py\n            ```\n\n- Run AttGAN\n\n    - training (see [examples.md](.\u002Fexamples.md) for more training commands)\n\n        ```console\n        \\\\ for CelebA\n        CUDA_VISIBLE_DEVICES=0 \\\n        python train.py \\\n        --load_size 143 \\\n        --crop_size 128 \\\n        --model model_128 \\\n        --experiment_name AttGAN_128\n\n        \\\\ for CelebA-HQ\n        CUDA_VISIBLE_DEVICES=0 \\\n        python train.py \\\n        --img_dir .\u002Fdata\u002FCelebAMask-HQ\u002FCelebA-HQ-img \\\n        --train_label_path .\u002Fdata\u002FCelebAMask-HQ\u002Ftrain_label.txt \\\n        --val_label_path .\u002Fdata\u002FCelebAMask-HQ\u002Fval_label.txt \\\n        --load_size 128 \\\n        --crop_size 128 \\\n        --n_epochs 200 \\\n        --epoch_start_decay 100 \\\n        --model model_128 \\\n        --experiment_name AttGAN_128_CelebA-HQ\n        ```\n\n    - testing\n\n        - **single** attribute editing (inversion)\n\n            ```console\n            \\\\ for CelebA\n            CUDA_VISIBLE_DEVICES=0 \\\n            python test.py \\\n            --experiment_name AttGAN_128\n\n            \\\\ for CelebA-HQ\n            CUDA_VISIBLE_DEVICES=0 \\\n            python test.py \\\n            --img_dir .\u002Fdata\u002FCelebAMask-HQ\u002FCelebA-HQ-img \\\n            --test_label_path .\u002Fdata\u002FCelebAMask-HQ\u002Ftest_label.txt \\\n            --experiment_name AttGAN_128_CelebA-HQ\n            ```\n\n\n        - **multiple** attribute editing (inversion) example\n\n            ```console\n            \\\\ for CelebA\n            CUDA_VISIBLE_DEVICES=0 \\\n            python test_multi.py \\\n            --test_att_names Bushy_Eyebrows Pale_Skin \\\n            --experiment_name AttGAN_128\n            ```\n\n        - attribute sliding example\n\n            ```console\n            \\\\ for CelebA\n            CUDA_VISIBLE_DEVICES=0 \\\n            python test_slide.py \\\n            --test_att_name Pale_Skin \\\n            --test_int_min -2 \\\n            --test_int_max 2 \\\n            --test_int_step 0.5 \\\n            --experiment_name AttGAN_128\n            ```\n\n    - loss visualization\n\n        ```console\n        CUDA_VISIBLE_DEVICES='' \\\n        tensorboard \\\n        --logdir .\u002Foutput\u002FAttGAN_128\u002Fsummaries \\\n        --port 6006\n        ```\n\n    - convert trained model to .pb file\n\n        ```console\n        python to_pb.py --experiment_name AttGAN_128\n        ```\n\n- Using Trained Weights\n\n    - alternative trained weights (move to **.\u002Foutput\u002F\\*.zip**)\n\n        - [AttGAN_128.zip](https:\u002F\u002Fdrive.google.com\u002Ffile\u002Fd\u002F1Oy4F1xtYdxj4iyiLyaEd-dkGIJ0mwo41\u002Fview?usp=sharing) (987.5MB)\n\n            - *including G, D, and the state of the optimizer*\n\n        - [AttGAN_128_generator_only.zip](https:\u002F\u002Fdrive.google.com\u002Ffile\u002Fd\u002F1lcQ-ijNrGD4919eJ5Dv-7ja5rsx5p0Tp\u002Fview?usp=sharing) (161.5MB)\n\n            - *G only*\n\n        - [AttGAN_384_generator_only.zip](https:\u002F\u002Fdrive.google.com\u002Fopen?id=1scaKWcWIpTfsV0yrWCI-wg_JDmDsKKm1) (91.1MB)\n\n\n    - unzip the file (AttGAN_128.zip for example)\n\n        ```console\n        unzip .\u002Foutput\u002FAttGAN_128.zip -d .\u002Foutput\u002F\n        ```\n\n    - testing (see above)\n\n\n- Example for Custom Dataset\n\n    - [AttGAN-Cartoon](https:\u002F\u002Fgithub.com\u002FLynnHo\u002FAttGAN-Cartoon-Tensorflow)\n\n## Citation\n\nIf you find [AttGAN](https:\u002F\u002Fkdocs.cn\u002Fl\u002Fcpp7J2ZsFUW7) useful in your research work, please consider citing:\n\n    @ARTICLE{8718508,\n    author={Z. {He} and W. {Zuo} and M. {Kan} and S. {Shan} and X. {Chen}},\n    journal={IEEE Transactions on Image Processing},\n    title={AttGAN: Facial Attribute Editing by Only Changing What You Want},\n    year={2019},\n    volume={28},\n    number={11},\n    pages={5464-5478},\n    keywords={Face;Facial features;Task analysis;Decoding;Image reconstruction;Hair;Gallium nitride;Facial attribute editing;attribute style manipulation;adversarial learning},\n    doi={10.1109\u002FTIP.2019.2916751},\n    ISSN={1057-7149},\n    month={Nov},}\n","\u003Cp align=\"center\"> \u003Cimg src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002FLynnHo_AttGAN-Tensorflow_readme_9db94baff6b4.png\" width=\"36%\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\u003Cimg src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002FLynnHo_AttGAN-Tensorflow_readme_bdcf3f952873.png\" width=\"54%\"> \u003C\u002Fp>\n\n\u003Cp align=\"center\"> \u003Cimg src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002FLynnHo_AttGAN-Tensorflow_readme_3070b502f422.jpg\" width=\"92%\"> \u003C\u002Fp>\n\n\u003Ch1 align=\"center\">\n    \u003Ca href=\"https:\u002F\u002Fkdocs.cn\u002Fl\u002Fcpp7J2ZsFUW7\">AttGAN\u003C\u002Fa>\n\u003C\u002Fh1>\n\n\u003Ca href=\"https:\u002F\u002Fkdocs.cn\u002Fl\u002Fcpp7J2ZsFUW7\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FTIP 2019-3A98B9?label=%F0%9F%93%9D&labelColor=FFFDD0\" style=\"height: 28px\" \u002F>\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Farxiv.org\u002Fpdf\u002F1711.10678v1.pdf\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FarXiv%202017-B31B1B?label=%F0%9F%93%9D&labelColor=FFFDD0\" style=\"height: 28px\" \u002F>\u003C\u002Fa>\n\n> **[AttGAN: Facial Attribute Editing by Only Changing What You Want（仅修改你想要的面部属性）](https:\u002F\u002Fkdocs.cn\u002Fl\u002Fcpp7J2ZsFUW7)** \\\n> [Zhenliang He](https:\u002F\u002Flynnho.github.io)\u003Csup>1,2\u003C\u002Fsup>, [Wangmeng Zuo](https:\u002F\u002Fscholar.google.com\u002Fcitations?user=rUOpCEYAAAAJ)\u003Csup>4\u003C\u002Fsup>, [Meina Kan](https:\u002F\u002Fscholar.google.com\u002Fcitations?user=4AKCKKEAAAAJ)\u003Csup>1\u003C\u002Fsup>, [Shiguang Shan](https:\u002F\u002Fscholar.google.com\u002Fcitations?user=Vkzd7MIAAAAJ)\u003Csup>1,3\u003C\u002Fsup>, [Xilin Chen](https:\u002F\u002Fscholar.google.com\u002Fcitations?user=vVx2v20AAAAJ)\u003Csup>1\u003C\u002Fsup> \\\n> \u003Csup>1\u003C\u002Fsup>中国科学院计算技术研究所智能信息处理重点实验室，中国 \\\n> \u003Csup>2\u003C\u002Fsup>中国科学院大学，中国 \\\n> \u003Csup>3\u003C\u002Fsup>中国科学院脑科学与智能技术卓越创新中心，中国 \\\n> \u003Csup>4\u003C\u002Fsup>哈尔滨工业大学计算机科学与技术学院，中国\n\n\u003Cp align=\"center\"> \u003Cimg src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002FLynnHo_AttGAN-Tensorflow_readme_5a27d3fb1cd4.jpg\" width=\"100%\"> \u003C\u002Fp>\n\n## 相关项目\n\n- AttGAN 的其他实现\n\n    - [AttGAN-PyTorch](https:\u002F\u002Fgithub.com\u002Felvisyjlin\u002FAttGAN-PyTorch) by Yu-Jing Lin\n\n    - [AttGAN-PaddlePaddle](https:\u002F\u002Fgithub.com\u002FPaddlePaddle\u002Fmodels\u002Ftree\u002Frelease\u002F1.7\u002FPaddleCV\u002Fgan) by ceci3 和 zhumanyu（**AttGAN 是 [PaddlePaddle](https:\u002F\u002Fgithub.com\u002FPaddlePaddle?type=source) 官方复现模型之一**）\n\n- 密切相关的研究工作\n\n    - **基于我们代码的优秀工作 - [STGAN](https:\u002F\u002Fgithub.com\u002Fcsmliu\u002FSTGAN) (CVPR 2019) by Ming Liu**\n\n    - [Changing-the-Memorability](https:\u002F\u002Fgithub.com\u002Facecreamu\u002FChanging-the-Memorability) (CVPR 2019 MBCCV Workshop) by acecreamu\n\n    - [Fashion-AttGAN](https:\u002F\u002Fgithub.com\u002FChanningPing\u002FFashion_Attribute_Editing) (CVPR 2019 FSS-USAD Workshop) by Qing Ping\n\n- 王一凡制作的非官方 [演示视频](https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=gnN4ZjEWe-8)\n\n## 示例结果\n\n- 更多结果请参见 [results.md](.\u002Fresults.md)，我们尝试了**更高分辨率**和**更多属性**（全部 **40** 个属性！！！）\n\n- 分别对 13 个属性进行编辑\n\n    从左到右依次为：*输入图像、重建图像、秃头（Bald）、刘海（Bangs）、黑发（Black_Hair）、金发（Blond_Hair）、棕发（Brown_Hair）、浓眉（Bushy_Eyebrows）、眼镜（Eyeglasses）、男性（Male）、微张嘴（Mouth_Slightly_Open）、胡子（Mustache）、无胡须（No_Beard）、苍白皮肤（Pale_Skin）、年轻（Young）*\n\n    \u003Cimg src=\"https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002FLynnHo_AttGAN-Tensorflow_readme_f3067745adac.jpg\" width=\"95%\">\n\n## 使用方法\n\n- 环境要求\n\n    - Python 3.6\n\n    - TensorFlow 1.15\n\n    - OpenCV、scikit-image、tqdm、oyaml\n\n    - *我们推荐使用 [Anaconda](https:\u002F\u002Fwww.anaconda.com\u002Fdistribution\u002F#download-section) 或 [Miniconda](https:\u002F\u002Fdocs.conda.io\u002Fen\u002Flatest\u002Fminiconda.html#linux-installers)，然后通过以下命令创建 AttGAN 环境*\n\n        ```console\n        conda create -n AttGAN python=3.6\n\n        source activate AttGAN\n\n        conda install opencv scikit-image tqdm tensorflow-gpu=1.15\n\n        conda install -c conda-forge oyaml\n        ```\n\n    - *注意：如果你创建了一个新的 conda 环境，请在执行其他任何命令前先激活该环境*\n\n        ```console\n        source activate AttGAN\n        ```\n\n- 数据准备\n\n    - 选项 1: [CelebA](http:\u002F\u002Fopenaccess.thecvf.com\u002Fcontent_iccv_2015\u002Fpapers\u002FLiu_Deep_Learning_Face_ICCV_2015_paper.pdf)-unaligned（质量高于对齐版本，10.2GB）\n\n        - 下载数据集\n\n            - img_celeba.7z（移至 **.\u002Fdata\u002Fimg_celeba\u002Fimg_celeba.7z**）: [Google Drive](https:\u002F\u002Fdrive.google.com\u002Fdrive\u002Ffolders\u002F0B7EVK8r0v71pTUZsaXdaSnZBZzg?resourcekey=0-rJlzl934LzC-Xp28GeIBzQ) 或 [百度网盘](https:\u002F\u002Fpan.baidu.com\u002Fs\u002F1CRxxhoQ97A5qbsKO7iaAJg)（密码 rp0s）\n\n            - annotations.zip（移至 **.\u002Fdata\u002Fimg_celeba\u002Fannotations.zip**）: [Google Drive](https:\u002F\u002Fdrive.google.com\u002Ffile\u002Fd\u002F1xd-d1WRnbt3yJnwh5ORGZI3g-YS-fKM9\u002Fview?usp=sharing)\n\n        - 解压并处理数据\n\n            ```console\n            7z x .\u002Fdata\u002Fimg_celeba\u002Fimg_celeba.7z\u002Fimg_celeba.7z.001 -o.\u002Fdata\u002Fimg_celeba\u002F\n\n            unzip .\u002Fdata\u002Fimg_celeba\u002Fannotations.zip -d .\u002Fdata\u002Fimg_celeba\u002F\n\n            python .\u002Fscripts\u002Falign.py\n            ```\n\n    - 选项 2: CelebA-HQ（我们使用来自 [CelebAMask-HQ](https:\u002F\u002Fgithub.com\u002Fswitchablenorms\u002FCelebAMask-HQ) 的数据，3.2GB）\n\n        - CelebAMask-HQ.zip（移至 **.\u002Fdata\u002FCelebAMask-HQ.zip**）: [Google Drive](https:\u002F\u002Fdrive.google.com\u002Fopen?id=1badu11NqxGf6qM3PTTooQDJvQbejgbTv) 或 [百度网盘](https:\u002F\u002Fpan.baidu.com\u002Fs\u002F1wN1E-B1bJ7mE1mrn9loj5g)\n\n        - 解压并处理数据\n\n            ```console\n            unzip .\u002Fdata\u002FCelebAMask-HQ.zip -d .\u002Fdata\u002F\n\n            python .\u002Fscripts\u002Fsplit_CelebA-HQ.py\n            ```\n\n- 运行 AttGAN\n\n    - 训练（更多训练命令请参见 [examples.md](.\u002Fexamples.md)）\n\n        ```console\n        \\\\ for CelebA\n        CUDA_VISIBLE_DEVICES=0 \\\n        python train.py \\\n        --load_size 143 \\\n        --crop_size 128 \\\n        --model model_128 \\\n        --experiment_name AttGAN_128\n\n        \\\\ for CelebA-HQ\n        CUDA_VISIBLE_DEVICES=0 \\\n        python train.py \\\n        --img_dir .\u002Fdata\u002FCelebAMask-HQ\u002FCelebA-HQ-img \\\n        --train_label_path .\u002Fdata\u002FCelebAMask-HQ\u002Ftrain_label.txt \\\n        --val_label_path .\u002Fdata\u002FCelebAMask-HQ\u002Fval_label.txt \\\n        --load_size 128 \\\n        --crop_size 128 \\\n        --n_epochs 200 \\\n        --epoch_start_decay 100 \\\n        --model model_128 \\\n        --experiment_name AttGAN_128_CelebA-HQ\n        ```\n\n    - 测试\n\n        - **单个**属性编辑（反演）\n\n            ```console\n            \\\\ for CelebA\n            CUDA_VISIBLE_DEVICES=0 \\\n            python test.py \\\n            --experiment_name AttGAN_128\n\n            \\\\ for CelebA-HQ\n            CUDA_VISIBLE_DEVICES=0 \\\n            python test.py \\\n            --img_dir .\u002Fdata\u002FCelebAMask-HQ\u002FCelebA-HQ-img \\\n            --test_label_path .\u002Fdata\u002FCelebAMask-HQ\u002Ftest_label.txt \\\n            --experiment_name AttGAN_128_CelebA-HQ\n            ```\n\n\n        - **多个**属性编辑（反演）示例\n\n            ```console\n            \\\\ for CelebA\n            CUDA_VISIBLE_DEVICES=0 \\\n            python test_multi.py \\\n            --test_att_names Bushy_Eyebrows Pale_Skin \\\n            --experiment_name AttGAN_128\n            ```\n\n        - 属性滑动（attribute sliding）示例\n\n            ```console\n            \\\\ for CelebA\n            CUDA_VISIBLE_DEVICES=0 \\\n            python test_slide.py \\\n            --test_att_name Pale_Skin \\\n            --test_int_min -2 \\\n            --test_int_max 2 \\\n            --test_int_step 0.5 \\\n            --experiment_name AttGAN_128\n            ```\n\n    - 损失可视化\n\n        ```console\n        CUDA_VISIBLE_DEVICES='' \\\n        tensorboard \\\n        --logdir .\u002Foutput\u002FAttGAN_128\u002Fsummaries \\\n        --port 6006\n        ```\n\n    - 将训练好的模型转换为 .pb 文件\n\n        ```console\n        python to_pb.py --experiment_name AttGAN_128\n        ```\n\n- 使用预训练权重\n\n    - 其他预训练权重（移至 **.\u002Foutput\u002F\\*.zip**）\n\n        - [AttGAN_128.zip](https:\u002F\u002Fdrive.google.com\u002Ffile\u002Fd\u002F1Oy4F1xtYdxj4iyiLyaEd-dkGIJ0mwo41\u002Fview?usp=sharing)（987.5MB）\n\n            - *包含生成器 G、判别器 D 以及优化器的状态*\n\n        - [AttGAN_128_generator_only.zip](https:\u002F\u002Fdrive.google.com\u002Ffile\u002Fd\u002F1lcQ-ijNrGD4919eJ5Dv-7ja5rsx5p0Tp\u002Fview?usp=sharing)（161.5MB）\n\n            - *仅包含生成器 G*\n\n        - [AttGAN_384_generator_only.zip](https:\u002F\u002Fdrive.google.com\u002Fopen?id=1scaKWcWIpTfsV0yrWCI-wg_JDmDsKKm1)（91.1MB）\n\n\n    - 解压文件（以 AttGAN_128.zip 为例）\n\n        ```console\n        unzip .\u002Foutput\u002FAttGAN_128.zip -d .\u002Foutput\u002F\n        ```\n\n    - 测试（参见上文）\n\n\n- 自定义数据集示例\n\n    - [AttGAN-Cartoon](https:\u002F\u002Fgithub.com\u002FLynnHo\u002FAttGAN-Cartoon-Tensorflow)\n\n## 引用\n\n如果您在研究工作中使用了 [AttGAN](https:\u002F\u002Fkdocs.cn\u002Fl\u002Fcpp7J2ZsFUW7)，请考虑引用以下论文：\n\n    @ARTICLE{8718508,\n    author={Z. {He} and W. {Zuo} and M. {Kan} and S. {Shan} and X. {Chen}},\n    journal={IEEE Transactions on Image Processing},\n    title={AttGAN: Facial Attribute Editing by Only Changing What You Want},\n    year={2019},\n    volume={28},\n    number={11},\n    pages={5464-5478},\n    keywords={Face;Facial features;Task analysis;Decoding;Image reconstruction;Hair;Gallium nitride;Facial attribute editing;attribute style manipulation;adversarial learning},\n    doi={10.1109\u002FTIP.2019.2916751},\n    ISSN={1057-7149},\n    month={Nov},}","# AttGAN-Tensorflow 快速上手指南\n\n## 环境准备\n\n- **操作系统**：Linux \u002F macOS（推荐），Windows 可能需额外配置\n- **Python 版本**：3.6\n- **深度学习框架**：TensorFlow 1.15（GPU 版）\n- **其他依赖**：OpenCV、scikit-image、tqdm、oyaml\n- **推荐使用 Conda 管理环境**（可使用 [Miniconda](https:\u002F\u002Fdocs.conda.io\u002Fen\u002Flatest\u002Fminiconda.html#linux-installers) 或 [Anaconda](https:\u002F\u002Fwww.anaconda.com\u002Fdistribution\u002F#download-section)）\n\n> 💡 提示：国内用户建议配置清华源等镜像加速 Conda 和 pip 安装。\n\n## 安装步骤\n\n1. **创建并激活 Conda 环境**\n\n```console\nconda create -n AttGAN python=3.6\nsource activate AttGAN\n```\n\n2. **安装依赖包**\n\n```console\nconda install opencv scikit-image tqdm tensorflow-gpu=1.15\nconda install -c conda-forge oyaml\n```\n\n3. **克隆项目代码**\n\n```console\ngit clone https:\u002F\u002Fgithub.com\u002FLynnHo\u002FAttGAN-Tensorflow.git\ncd AttGAN-Tensorflow\n```\n\n4. **准备数据集（以 CelebA 为例）**\n\n- 下载数据（推荐使用百度网盘，密码 `rp0s`）：\n  - 图像文件 `img_celeba.7z` → 放入 `.\u002Fdata\u002Fimg_celeba\u002F`\n  - 标注文件 `annotations.zip` → 放入 `.\u002Fdata\u002Fimg_celeba\u002F`\n\n- 解压并预处理：\n\n```console\n7z x .\u002Fdata\u002Fimg_celeba\u002Fimg_celeba.7z\u002Fimg_celeba.7z.001 -o.\u002Fdata\u002Fimg_celeba\u002F\nunzip .\u002Fdata\u002Fimg_celeba\u002Fannotations.zip -d .\u002Fdata\u002Fimg_celeba\u002F\npython .\u002Fscripts\u002Falign.py\n```\n\n> 📌 注：若使用 CelebA-HQ，请参考 README 中对应步骤。\n\n5. **（可选）下载预训练模型**\n\n- 下载 [AttGAN_128_generator_only.zip](https:\u002F\u002Fdrive.google.com\u002Ffile\u002Fd\u002F1lcQ-ijNrGD4919eJ5Dv-7ja5rsx5p0Tp\u002Fview?usp=sharing)（仅生成器，161.5MB）\n- 放入 `.\u002Foutput\u002F` 目录并解压：\n\n```console\nunzip .\u002Foutput\u002FAttGAN_128_generator_only.zip -d .\u002Foutput\u002F\n```\n\n## 基本使用\n\n### 单属性编辑（使用预训练模型）\n\n```console\nCUDA_VISIBLE_DEVICES=0 \\\npython test.py \\\n--experiment_name AttGAN_128\n```\n\n### 多属性同时编辑示例\n\n```console\nCUDA_VISIBLE_DEVICES=0 \\\npython test_multi.py \\\n--test_att_names Bushy_Eyebrows Pale_Skin \\\n--experiment_name AttGAN_128\n```\n\n### 属性强度滑动编辑示例\n\n```console\nCUDA_VISIBLE_DEVICES=0 \\\npython test_slide.py \\\n--test_att_name Pale_Skin \\\n--test_int_min -2 \\\n--test_int_max 2 \\\n--test_int_step 0.5 \\\n--experiment_name AttGAN_128\n```\n\n> ✅ 所有结果将保存在 `.\u002Foutput\u002FAttGAN_128\u002Fsample_testing\u002F` 等对应目录中。","某影视后期工作室正在为一部年代剧制作角色年龄变化特效，需要将同一演员在不同年龄段的面部特征（如皱纹、发色、胡须等）进行精准调整，同时保留其原始五官结构和表情。\n\n### 没有 AttGAN-Tensorflow 时\n- 只能依赖传统图像编辑软件手动绘制或使用通用滤镜，难以精准控制单一属性（如仅添加胡须而不改变肤色或发型）。\n- 若使用早期GAN模型，往往导致面部整体失真，例如修改“年轻化”时连带改变了眼睛形状或脸型，破坏角色辨识度。\n- 需要大量人工反复调试参数，单帧图像处理耗时长达数小时，严重影响项目进度。\n- 缺乏对多属性组合编辑的支持，无法高效生成“棕发+戴眼镜+无胡须”等复合效果。\n- 团队需额外聘请专业美工人员配合，人力成本高且风格难以统一。\n\n### 使用 AttGAN-Tensorflow 后\n- 可通过指定属性标签（如 Young=0, Mustache=1）精确编辑目标特征，其余面部区域几乎无扰动，保持角色一致性。\n- 基于预训练模型快速生成高质量结果，单张图像处理仅需几秒，大幅提升制作效率。\n- 支持40种面部属性自由组合，轻松实现复杂年代造型需求，无需逐项手动合成。\n- 开源代码便于集成到现有自动化流水线中，减少对外部美术资源的依赖。\n- 输出结果自然逼真，在高清镜头下仍保持细节真实感，满足影视级视觉要求。\n\nAttGAN-Tensorflow 让影视团队以极低成本实现精准、高效的面部属性编辑，真正做到了“只改想要的部分”。","https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002FLynnHo_AttGAN-Tensorflow_9db94baf.png","LynnHo","Zhenliang He","https:\u002F\u002Foss.gittoolsai.com\u002Favatars\u002FLynnHo_1b9c2d84.png",null,"ICT, CAS","Beijing","lynn_ho@163.com","https:\u002F\u002Flynnho.github.io","https:\u002F\u002Fgithub.com\u002FLynnHo",[85],{"name":86,"color":87,"percentage":88},"Python","#3572A5",100,616,136,"2026-03-26T01:23:13","MIT",4,"Linux, macOS, Windows","推荐 NVIDIA GPU（使用 tensorflow-gpu=1.15），显存未明确说明，CUDA 版本需兼容 TensorFlow 1.15（通常为 CUDA 10.0 或 10.1）","未说明",{"notes":98,"python":99,"dependencies":100},"建议使用 Anaconda 或 Miniconda 创建独立环境；需手动下载 CelebA 或 CelebA-HQ 数据集并进行预处理；训练和测试命令需在激活 conda 环境后执行。","3.6",[101,102,103,104,105],"tensorflow-gpu==1.15","opencv","scikit-image","tqdm","oyaml",[14],[108,109,110,111,112],"attgan","face-attribute-manipulation","face-attribute-transfer","gan","gans","2026-03-27T02:49:30.150509","2026-04-06T05:35:30.167885",[116,121,126,131,136,140,145,150],{"id":117,"question_zh":118,"answer_zh":119,"source_url":120},1673,"在测试时遇到错误：TypeError: Input 'filename' of 'ReadFile' Op has type float32 that does not match expected type of string，如何解决？","该错误通常是因为数据加载时文件路径被错误地转换为浮点数。确保在 data.py 中正确处理图像路径列表和标签列表，不要对 img_paths 做数值操作。如果只使用部分图像（如前20张），应保留原始文件名格式（如 '000001.jpg'），并确保 list_attr_celeba.txt 中对应行数与图像数量一致。","https:\u002F\u002Fgithub.com\u002FLynnHo\u002FAttGAN-Tensorflow\u002Fissues\u002F18",{"id":122,"question_zh":123,"answer_zh":124,"source_url":125},1674,"能否使用 CelebA 上训练好的模型来测试自定义人脸图像？效果如何？","可以尝试，但效果取决于自定义图像是否与 CelebA 数据分布接近（如对齐方式、分辨率等）。建议先使用与 CelebA 相同的预处理流程（如人脸裁剪和对齐）。若要获得更好效果，可参考 STGAN 提供的属性分类器（https:\u002F\u002Fgithub.com\u002Fcsmliu\u002FSTGAN\u002Ftree\u002Fmaster\u002Fatt_classification）来生成正确的属性向量。","https:\u002F\u002Fgithub.com\u002FLynnHo\u002FAttGAN-Tensorflow\u002Fissues\u002F17",{"id":127,"question_zh":128,"answer_zh":129,"source_url":130},1675,"如何测试任意指定的人脸图像（如 097000.jpg）而不是默认从 182637 开始的图像？","修改 test.py 中的数据加载逻辑，移除硬编码的起始索引（如 182637）。具体可删除或注释掉 test.py 中限制图像范围的代码行，并确保你的图像文件名和属性标签已正确加入数据列表。此外，可通过 tf.identity(x_sample, name='new_name') 为输出张量指定名称以便导出模型时识别。","https:\u002F\u002Fgithub.com\u002FLynnHo\u002FAttGAN-Tensorflow\u002Fissues\u002F26",{"id":132,"question_zh":133,"answer_zh":134,"source_url":135},1676,"训练模型时使用的 weight_decay 值是多少？","官方训练模型时使用的 weight_decay 值为 0.0（即未使用权重衰减）。默认配置已足够，无需额外设置。","https:\u002F\u002Fgithub.com\u002FLynnHo\u002FAttGAN-Tensorflow\u002Fissues\u002F38",{"id":137,"question_zh":138,"answer_zh":139,"source_url":135},1677,"训练多少个 epoch 才能看到明显的属性编辑效果？","大约训练 10 个 epoch 就可以初步看到属性编辑效果，完整训练推荐 60 个 epoch。若效果不佳，建议检查损失函数中各部分是否正常工作，尤其是对抗损失和重建损失的平衡。",{"id":141,"question_zh":142,"answer_zh":143,"source_url":144},1678,"如何提取输入人脸图像的 40 个 CelebA 属性？","可使用 STGAN 项目中提供的属性分类器（https:\u002F\u002Fgithub.com\u002Fcsmliu\u002FSTGAN\u002Ftree\u002Fmaster\u002Fatt_classification），该分类器遵循与 AttGAN 相同的属性协议，能准确预测 CelebA 的 40 个二值属性。将待测图像输入该分类器即可获得对应的属性向量。","https:\u002F\u002Fgithub.com\u002FLynnHo\u002FAttGAN-Tensorflow\u002Fissues\u002F14",{"id":146,"question_zh":147,"answer_zh":148,"source_url":149},1679,"在 DTLCGAN 中添加编码器后，如何正确处理噪声 z 和属性条件 c 的采样？","当使用编码器替代随机噪声 z 时，应为每个测试样本使用其自身的编码特征，而非复制同一特征多次。len(c_ipt_sample) 表示每个属性组合下生成的样本数（如 18 张），用于构建决策树可视化。若使用不同图像的编码会导致身份不一致，建议固定身份编码，仅改变属性条件 c 来生成多样本。","https:\u002F\u002Fgithub.com\u002FLynnHo\u002FAttGAN-Tensorflow\u002Fissues\u002F45",{"id":151,"question_zh":152,"answer_zh":153,"source_url":149},1680,"训练时使用多少个属性效果更好？是否建议一次只编辑一个属性？","作者在实验中使用了 13 个视觉上最显著的属性（如 Bangs、Eyeglasses 等）。虽然一次只编辑一个属性更容易训练且效果更明显，但并不一定整体更优。可根据任务需求选择：单属性适合精细控制，多属性适合复杂编辑。",[155],{"id":156,"version":157,"summary_zh":78,"released_at":158},101175,"v1","2020-01-03T06:50:09"]