Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用sh文件复现时,修改DATA_DIR, BERT_DIR, OUTPUT_DIR后依旧无法运行 #124

Open
128Ghe980 opened this issue Jun 16, 2023 · 2 comments

Comments

@128Ghe980
Copy link

使用msra.sh
错误信息:
404 Client Error: Not Found for url: https://huggingface.co/D:/Program%20Files/Git/pretrainmodel/chinese-roberta-wwm-ext/resolve/main/config.json

REPO_PATH=D:/PycharmWorkplace/NER/mrc-for-flat-nested-ner-master
export PYTHONPATH="D:/PycharmWorkplace/NER/mrc-for-flat-nested-ner-master"

我的DATA_DIR:
DATA_DIR=/data/zh_msra

我的BERT_DIR:
/pretrainmodel/chinese-roberta-wwm-ext
(在项目文件夹下)

我的OUTPUT_DIR:
OUTPUT_DIR=/output/zh_msra/zh_msra_bertlarge_lr${LR}20200913_dropout${DROPOUT}_maxlen${MAXLEN}

主要是这个“D:/Program%20Files/Git/”不知道怎么出来的

@Pyolar
Copy link

Pyolar commented Oct 30, 2023

解决没,我这也不行

@Ding-Chian
Copy link

我的经验告诉我需要使用完整的路径
REPO_PATH=/d/python_project/mrc-for-flat-nested-ner-master
DATA_DIR=/d/python_project/mrc-for-flat-nested-ner-master/data/zh_msra
BERT_DIR=/d/python_model/bert-base-chinese
OUTPUT_DIR=/d/python_project/mrc-for-flat-nested-ner-master/data/zh_msra_bertlarge_lr${LR}20200913_dropout${DROPOUT}_maxlen${MAXLEN}
我的路径都是从D盘开始,否则它会在你的相对路径的基础上添加Git的路径,拼接之后因为这个路径是不存在所以会报错

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants