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.
35 lines
607 B
35 lines
607 B
5 months ago
|
## 1.创建虚拟环境并安装相关依赖
|
||
|
|
||
|
#创建虚拟环境
|
||
|
|
||
|
conda create -n pytorch_1.8 python=3.8
|
||
|
|
||
|
#进入虚拟环境
|
||
|
|
||
|
conda activate pytorch_1.8
|
||
|
|
||
|
#安装项目依赖包
|
||
|
|
||
|
python -m pip install opencv-python -i https://pypi.tuna.tsinghua.edu.cn/simple/
|
||
|
|
||
|
python -m pip install matplotlib -i https://pypi.tuna.tsinghua.edu.cn/simple/
|
||
|
|
||
|
pip install gradio==3.47.1
|
||
|
|
||
|
(缺少哪个包就类似方法安装哪个包即可)
|
||
|
|
||
|
|
||
|
|
||
|
## 2.运行项目脚本
|
||
|
|
||
|
#进入到项目虚拟环境
|
||
|
|
||
|
conda activate pytorch_1.8
|
||
|
|
||
|
#cd 到项目根目录
|
||
|
|
||
|
cd Imag_Enhanc_License_recog-main/
|
||
|
|
||
|
#运行项目
|
||
|
|
||
|
python demo_ui_main.py
|