-
Notifications
You must be signed in to change notification settings - Fork 147
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
Help, #54
Comments
Did you execute the following command (as described in the README): |
Thank you very much!
I used windows10 system, and i set the parameters in args.py, and runned the spert.py.
…------------------ 原始邮件 ------------------
发件人: "lavis-nlp/spert" ***@***.***>;
发送时间: 2021年7月22日(星期四) 下午5:31
***@***.***>;
***@***.******@***.***>;
主题: Re: [lavis-nlp/spert] Help, (#54)
Did you execute the following command (as described in the README): python ./spert.py train --config configs/example_train.conf?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
In my windows system, i downloaded the git software, and through bash executed the command, but also have problem.
$ python ./spert.py train --config configs/example_train.conf
['train', '--config', 'configs/example_train.conf']
Namespace()
_StoreAction(option_strings=[], dest='train', nargs=None, const=None, default=None, type=<class 'str'>, choices=None, help="Mode: 'train' or 'eval'", metavar=None)
Traceback (most recent call last):
File "./spert.py", line 46, in <module>
if args.mode == 'train':
AttributeError: 'Namespace' object has no attribute 'mode'
…------------------ 原始邮件 ------------------
发件人: "lavis-nlp/spert" ***@***.***>;
发送时间: 2021年7月22日(星期四) 下午5:31
***@***.***>;
***@***.******@***.***>;
主题: Re: [lavis-nlp/spert] Help, (#54)
Did you execute the following command (as described in the README): python ./spert.py train --config configs/example_train.conf?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
There is no need to set the parameters in 'args.py' - just set them in the configuration file (e.g. 'example_train.conf').
I don't know why this error occurs (and never tested SpERT on Windows). Did you alter the code? |
I didn't alter code, and i downloaded conll04 and put it into /data/models/conll04, and in conll04 folder, i can see config.json、pytorch_model.bin and vocab.txt.
and i dowloaded conll04 datasets. I want to train this model, will this be enough? Thank you.
…------------------ 原始邮件 ------------------
发件人: "lavis-nlp/spert" ***@***.***>;
发送时间: 2021年7月22日(星期四) 晚上6:21
***@***.***>;
***@***.******@***.***>;
主题: Re: [lavis-nlp/spert] Help, (#54)
Thank you very much! I used windows10 system, and i set the parameters in args.py, and runned the spert.py.
There is no need to set the parameters in 'args.py' - just set them in the configuration file (e.g. 'example_train.conf').
In my windows system, i downloaded the git software, and through bash executed the command, but also have problem.
I don't know why this error occurs (and never tested SpERT on Windows). Did you alter the code?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I'm afraid I don't know why the code is not running on your setup. I'm using Linux and everything works fine on my end. |
when i run spert.py, it always occurred the following error, and i found some files about this problem, but i didn't solve it, please help me! Thank you very much.
usage: spert.py train
spert.py: error: the following arguments are required: train
The text was updated successfully, but these errors were encountered: