# DeOldify **Repository Path**: sh_66/DeOldify ## Basic Information - **Project Name**: DeOldify - **Description**: 黑白变彩色照片的项目 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 103 - **Created**: 2024-06-20 - **Last Updated**: 2024-07-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CV项目08:老照片着色APP ## 项目描述 这是一个简单程序,通过调用接口,来实现照片上色。 调用接口的项目: -[DeOldify](https://github.com/jantic/DeOldify) ## 项目运行效果截图 ![输入图片说明](%E5%9B%BE%E7%89%87%E4%B8%8A%E8%89%B2.png) ## 功能 使用deoldify把黑白照片变成彩色照片。 ## 依赖 - 1.创建虚拟环境 conda create --name colorize_env python=3.10 - 2.激活环境 conda activate colorize_env - 3.安装必要的包 pip install gradio scipy fastprogress torch torchvision opencv-python ffmpeg ffmpeg-python yt-dlp scikit-image ipython - 4.拷贝模型 把预训练模型拷贝到`models`目录下 ## 使用 - 1.请将本代码git clone - 2.跳转至https://github.com/jantic/DeOldify ,同时git clone - 3.将1.克隆下来的colorize_gradio_app.py,放置2.的根目录下。 - 4.运行 colorize_gradio_app.py ## 注意 - numpy版本使用1.24.0版本 ## 个人信息 - 学号: 202152320214 - 年级: 2021 - 专业: 智能科学与技术 - 班级: 2班