简体中文 | English
本仓库在原项目的基础上,提供了一个基于 Streamlit 的本地可视化界面,并支持将模型打包到本地以便离线/便携使用。
原项目(算法与模型作者):https://github.com/YuchuanTian/AIGC_text_detector
本仓库仅对“使用方式与交互界面”做了工程化改造,核心检测模型与算法完全沿用原项目/对应 Hugging Face 模型。
models/ 目录下存在对应模型,将优先本地加载,适合无网或离线环境。models/)AIGC_detector_zhv3、AIGC_detector_env3)cd "c:\Users\qyf06\Desktop\AIGC_text_detector_portable"
python -m pip install -r requirements.txt
python start.py
或直接运行 Streamlit:
streamlit run app_streamlit.py
打开浏览器访问 http://localhost:8501 即可开始使用。
transformers 自动下载(需要网络)models/ 目录即可离线使用。常用模型(由原项目提供):
yuchuantian/AIGC_detector_zhv3yuchuantian/AIGC_detector_env3使用脚本下载到本地:
python download_models.py
下载完成后,目录大致如下:
models/
AIGC_detector_zhv3/
config.json tokenizer.json model.safetensors ...
AIGC_detector_env3/
config.json tokenizer.json model.safetensors ...
将当前工程和本地模型打包成一个 ZIP,方便在没有网络的环境快速分发:
python create_portable.py
脚本会自动检查并包含 models/ 目录(若不存在会尝试先下载)。
device="cuda" 以启用 GPU(需本机已正确安装 CUDA 版 PyTorch)。python download_models.py 将模型缓存到 models/,或把他人打包好的 models/ 目录直接复制过来。yuchuantian/AIGC_detector_zhv3 与 yuchuantian/AIGC_detector_env3如本仓库对上游内容的引用存在表述不当之处,请在 Issue 中指出,我们会第一时间修正。
简体中文 | English
本仓库在原项目的基础上,提供了一个基于 Streamlit 的本地可视化界面,并支持将模型打包到本地以便离线/便携使用。
原项目(算法与模型作者):https://github.com/YuchuanTian/AIGC_text_detector
本仓库仅对“使用方式与交互界面”做了工程化改造,核心检测模型与算法完全沿用原项目/对应 Hugging Face 模型。
models/ 目录下存在对应模型,将优先本地加载,适合无网或离线环境。models/)AIGC_detector_zhv3、AIGC_detector_env3)cd "c:\Users\qyf06\Desktop\AIGC_text_detector_portable"
python -m pip install -r requirements.txt
python start.py
或直接运行 Streamlit:
streamlit run app_streamlit.py
打开浏览器访问 http://localhost:8501 即可开始使用。
transformers 自动下载(需要网络)models/ 目录即可离线使用。常用模型(由原项目提供):
yuchuantian/AIGC_detector_zhv3yuchuantian/AIGC_detector_env3使用脚本下载到本地:
python download_models.py
下载完成后,目录大致如下:
models/
AIGC_detector_zhv3/
config.json tokenizer.json model.safetensors ...
AIGC_detector_env3/
config.json tokenizer.json model.safetensors ...
将当前工程和本地模型打包成一个 ZIP,方便在没有网络的环境快速分发:
python create_portable.py
脚本会自动检查并包含 models/ 目录(若不存在会尝试先下载)。
device="cuda" 以启用 GPU(需本机已正确安装 CUDA 版 PyTorch)。python download_models.py 将模型缓存到 models/,或把他人打包好的 models/ 目录直接复制过来。yuchuantian/AIGC_detector_zhv3 与 yuchuantian/AIGC_detector_env3如本仓库对上游内容的引用存在表述不当之处,请在 Issue 中指出,我们会第一时间修正。