工程链接:https://github.com/VamosC/CLIP4STR
下载工程链接工程,下载模型clip4str_base16x16_d70bde1f2d.ckpt和ViT-B-16.pt;
首先根据工程中的README.md进行环境处理:
Requires `Python >= 3.8` and `PyTorch >= 1.12`.
The following commands are tested on a Linux machine with CUDA Driver Version `525.105.17` and CUDA Version `11.3`.
```
conda create --name clip4str python==3.8
conda install pytorch==1.12.0 torchvision==0.13.0 torchaudio==0.12.0 -c pytorch
pip install -r requirements.txt
具体步骤:
1.指定环境,创立虚拟环境
conda create --name /home/fxp/fxp/envs/CLIP4STR python==3.8
2.启动虚拟环境
source activate /home/fxp/fxp/envs/CLIP4STR
3.装指定的应用库
1&#x