You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use the predictor.yaml file in config/ to pretrain the predictor model, I got this error. The original message is:
Traceback (most recent call last):
File "/root/anaconda3/envs/kiwi37/bin/kiwi", line 5, in
main()
File "/root/qbp/qe/OpenKiwi-master/kiwi/main.py", line 21, in main
return kiwi.cli.cli()
File "/root/qbp/qe/OpenKiwi-master/kiwi/cli.py", line 84, in cli
train.train_from_configuration(config_dict)
File "/root/qbp/qe/OpenKiwi-master/kiwi/lib/train.py", line 249, in train_from_configuration
train_info = run(config)
File "/root/qbp/qe/OpenKiwi-master/kiwi/lib/train.py", line 341, in run
system = system_type.from_config(config.system, data_config=config.data)
File "/root/qbp/qe/OpenKiwi-master/kiwi/systems/qe_system.py", line 486, in from_config
config = system_cls.Config(**config.dict())
File "pydantic/main.py", line 362, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 1 validation error for Config
model -> encoder -> encode_source
extra fields not permitted (type=value_error.extra)
As the message shows, I assume it is the error of model -> encoder ->encode_source, but in fact I did not revise the original example predictor.yaml file in this project. In the original file, the value of encode_source is set to "false". I tried to override it to "true", and I get the same error.
How can I find the file demonstrating that how the values in .yaml file should be set ?
The text was updated successfully, but these errors were encountered:
Qbop981001
changed the title
Error Training Predictor: "model -> encoder -> encode_source extra fields not permitted (type=value_error.extra)"
Error Pre-Training Predictor: "model -> encoder -> encode_source extra fields not permitted (type=value_error.extra)"
Jul 12, 2021
When I use the predictor.yaml file in config/ to pretrain the predictor model, I got this error. The original message is:
As the message shows, I assume it is the error of model -> encoder ->encode_source, but in fact I did not revise the original example predictor.yaml file in this project. In the original file, the value of encode_source is set to "false". I tried to override it to "true", and I get the same error.
How can I find the file demonstrating that how the values in .yaml file should be set ?
The text was updated successfully, but these errors were encountered: