bgshih / aster

Recognizing cropped text in natural images.
MIT License
726 stars 195 forks source link

ERROR:protoc aster/protos/*.proto --python_out=. #34

Open kellycvcv opened 5 years ago

kellycvcv commented 5 years ago

aster/protos/rnn_cell.proto:7:3: Expected "required", "optional", or "repeated". aster/protos/rnn_cell.proto:7:24: Missing field number. aster/protos/hyperparams.proto:44:3: Expected "required", "optional", or "repeated". aster/protos/hyperparams.proto:44:27: Missing field number. aster/protos/hyperparams.proto:64:3: Expected "required", "optional", or "repeated". aster/protos/hyperparams.proto:64:27: Missing field number. aster/protos/bidirectional_rnn.proto: Import "aster/protos/rnn_cell.proto" was not found or had errors. aster/protos/bidirectional_rnn.proto: Import "aster/protos/hyperparams.proto" was not found or had errors. aster/protos/bidirectional_rnn.proto:9:12: "RnnCell" is not defined. aster/protos/bidirectional_rnn.proto:10:12: "Regularizer" is not defined. aster/protos/bidirectional_rnn.proto:12:12: "Hyperparams" is not defined.

xiaoaoran commented 5 years ago

The same error, did you solve it?

LinanYaooo commented 5 years ago

Not a hard issue, I solved it by jump to the outer directory(the folder outside aster), then simply execute the command again, the reason is because the import code implemented in rnn_cell.proto and others was wirtten in fixed path.

Lemonyue commented 5 years ago

@LinanYaooo I jump to the outer directory but didn not solve the probelm,why?

donglin8506 commented 5 years ago

@Lemonyue I found that after downloading this project, the project'name is 'aster-master' instead of 'aster', but 'aster' in .proto . So modify project'name to 'aster', and then run "protoc aster/protoc/.proto --python_out=." , it's useful.