|
|
@@ -0,0 +1,31 @@
|
|
|
+# 1. 环境
|
|
|
+## 1.1 [Git 如何在推送仓库时切换不同用户(GitHub账户)](https://geek-docs.com/git/git-questions/72_git_how_do_i_switch_between_different_usersgithub_accounts_when_pushing_repositories.html)
|
|
|
+
|
|
|
+```
|
|
|
+git clone https://gitee.com/zhch158_admin/MinerU.git -c user.name=zhch158_admin -c user.email=zhch158@sina.com
|
|
|
+
|
|
|
+git config --local user.name "zhch158_admin"
|
|
|
+git config --local user.email "zhch158@sina.com"
|
|
|
+```
|
|
|
+
|
|
|
+## 1.2 python 安装依赖包
|
|
|
+```
|
|
|
+conda activate py311
|
|
|
+pip install pyMuPDF
|
|
|
+
|
|
|
+```
|
|
|
+
|
|
|
+## 1.3 huggiingface 下载模型
|
|
|
+```
|
|
|
+huggingface-cli login
|
|
|
+cd ~/zhch/models
|
|
|
+ln -s /home/dev/models/hf_home/hub/models--stepfun-ai--GOT-OCR2_0/snapshots/cf6b7386bc89a54f09785612ba74cb12de6fa17c stepfun-ai--GOT-OCR2_0
|
|
|
+```
|
|
|
+
|
|
|
+.env
|
|
|
+```
|
|
|
+NLTK_DATA="$HOME/nltk_data"
|
|
|
+HF_HOME="$HOME/models/hf_home"
|
|
|
+HF_ENDPOINT=https://hf-mirror.com
|
|
|
+HF_HUB_OFFLINE=0
|
|
|
+```
|