Files
fcb_photo_review/README.md
2024-05-28 08:48:13 +08:00

51 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 福村宝照片审核AI辅助
本项目使用PaddleNLP等技术为照片审核提供初步的信息抽取功能
## 项目启动
1. 安装Python环境可以选择Anaconda安装减少环境冲突
2. Gitea或其他远程仓库克隆项目到本地
3. 安装所需依赖,进入项目根目录执行以下代码
```bash
pip install -r requirement.txt
```
4. 通过main.py启动项目可以在Pycharm启动或进入项目根目录执行以下代码
```bash
python main.py
```
## 开发说明
1. 使用sqlalchemy作为ORM框架需要新增实体类时运行项目根目录下的auto_generator.py
2. 项目运行中奔溃时有发送邮件提醒功能请在config/email.py中的收件人处添加自己的邮箱
## 模型更新
1. 模型目录文件结构(备注static文件夹和.cache_info会在第一次调用模型时自动下载或生成)
```markdown
my_model/
├─ static/
│ ├─ inference.pdiparams
│ ├─ inference.pdiparams.info
│ └─ inference.pdmodel
├─ .cache_info
├─ config.json
├─ model_state.pdparams
├─ sentencepiece.bpe.model
├─ special_tokens_map.json
├─ tokenizer_config.json
└─ vocab.txt
```