# face_adjust_homework **Repository Path**: wdy372105/face_adjust_homework ## Basic Information - **Project Name**: face_adjust_homework - **Description**: 使用style_GAN调节图像属性 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 109 - **Created**: 2025-12-17 - **Last Updated**: 2025-12-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #### 介绍 使用 StyleGAN 调节图像属性。 #### 功能 一个 Gradio 项目,通过调节滑动条可以同时调节: - 年龄(Age) - 微笑程度(Smile) #### 运行 1. 安装依赖(在你的虚拟环境/conda 环境中执行): - `pip install gradio numpy torch` 2. 准备模型文件: - 确保存在 `model/stylegan-1024px-new.model` 3. 启动: - `python app.py` #### 说明 - `latent_directions/age.npy` 和 `latent_directions/smile.npy` 分别是年龄与微笑的方向向量。 - 界面中滑块取值范围默认是 `[-0.12, 0.12]`,可同时叠加生效。