xueyouluo / speller-bert

中文纠错
90 stars 12 forks source link

loading model file error #1

Closed kiminh closed 2 years ago

kiminh commented 2 years ago

hi, I've download the pretrained model file on baidu yunpan and change the model save file path to D:\nlpmodeldata\cbert\cbert.

python3.7,tensorflow 1.15.0, windows

run 'python serving.py' and get the error

image

2022-02-24 15:27:00.092167: W tensorflow/core/util/tensor_slice_reader.cc:95] Could not open D:\nlpmodeldata\cbert\cbert: Unknown: NewRandomAccessFile f ailed to Create/Open: D:\nlpmodeldata\cbert\cbert : 拒绝访问。 ; Input/output error 2022-02-24 15:27:00.097491: W tensorflow/core/util/tensor_slice_reader.cc:95] Could not open D:\nlpmodeldata\cbert\cbert: Unknown: NewRandomAccessFile f ailed to Create/Open: D:\nlpmodeldata\cbert\cbert : 拒绝访问。 ; Input/output error 2022-02-24 15:27:00.100192: W tensorflow/core/framework/op_kernel.cc:1651] OP_REQUIRES failed at save_restore_tensor.cc:175 : Data loss: Unable to open table file D:\nlpmodeldata\cbert\cbert: Unknown: NewRandomAccessFile failed to Create/Open: D:\nlpmodeldata\cbert\cbert : 拒绝访问。 ; Input/output error

xueyouluo commented 2 years ago

我看你的解压路径的话,模型路径是D:\nlpmodeldata\cbert\cbert\cbert

kiminh commented 2 years ago

fixed. thx a lot~