You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

105 lines
2.1 KiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

## 安装配置步骤
### 一、前置条件
- 安装$Python$ $3.8+$
- 安装$PyTorch$ $1.12+$
- 安装$Git$
> https://git-scm.com/download/win
### 二、安装Cutie
> **不用代理或者代理使用姿势不正确,慢死你~**
![image-20240424154315973](C:\Users\Administrator\AppData\Roaming\Typora\typora-user-images\image-20240424154315973.png)
![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/202404241543667.png)
#### 下载源码
```
git clone https://github.com/hkchengrex/Cutie.git
```
![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/202404241538892.png)
#### 下载依赖模块
```
cd Cutie
pip install tqdm
pip install omegaconf
pip install hydra-core
pip install PySide6
pip install pyqtdarktheme
pip install opencv-python
pip install scipy
pip install av
pip install Cython
```
#### **下载依赖模型**
```
python scripts/download_models.py
```
![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/202404241543724.png)
#### Install with pip
```
cd Cutie
pip install -e .
```
#### 查看已安装的依赖包
```
pip list
```
#### 启动
```
python interactive_demo.py --video ./examples/example.mp4 --num_objects 1
```
![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/202404241555042.png)
#### 工作成果
![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/202404241558210.png)
### 新机器运行步骤
1、打开$VPN$软件,科学上网。
2、安装$Git-2.38.1-64-bit.exe$,如果安装过略过。
https://git-scm.com/
3、添加环境变量
```shell
setx PATH "%PATH%;G:\AI\Cutie\py39\Scripts" /M
```
4、运行需要$Microsoft$ $Visual$ $C++$ $14.0$ $or$ $greater$,安装$vs_BuildTools.exe$,选择$C++$进行安装,如果安装过略过。
https://visualstudio.microsoft.com/zh-hans/visual-cpp-build-tools/
![](https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/BlogImages/202404251012129.png)
5、执行启动.$bat$