<annotation>
    <folder>OXIIIT</folder>
    <filename>american_bulldog_137.jpg</filename>
    <source>
        <database>OXFORD-IIIT Pet Dataset</database>
        <annotation>OXIIIT</annotation>
        <image>flickr</image>
    </source>
    <size>
        <width>500</width>
        <height>333</height>
        <depth>3</depth>
    </size>
    <segmented>0</segmented>
    <object>
        <name>dog</name>
        <pose>Frontal</pose>
        <truncated>0</truncated>
        <occluded>0</occluded>
        <bndbox>
            <xmin>225</xmin>
            <ymin>80</ymin>
            <xmax>315</xmax>
            <ymax>170</ymax>
        </bndbox>
        <difficult>0</difficult>
    </object>
</annotation>


[에러 메세지]

object_detection/protos/anchor_generator.proto:11:3: Expected "required", "optional", or "repeated".

object_detection/protos/anchor_generator.proto:11:32: Missing field number.


[에러 원인]

protoc ver 3.3. 설치 필요


[해결 방안]

tensorflow$ mkdir protoc_3.3

tensorflow$ cd protoc_3.3
tensorflow/protoc_3.3$ wget https://github.com/google/protobuf/releases/download/v3.3.0/protoc-3.3.0-linux-x86_64.zip
tensorflow/protoc_3.3$ chmod 775 protoc-3.3.0-linux-x86_64.zip
tensorflow/protoc_3.3$ unzip protoc-3.3.0-linux-x86_64.zip
tensorflow/protoc_3.3$ cd ../models/
tensorflow/protoc_3.3$ ../protoc_3.3/bin/protoc object_detection/protos/*.proto --python_out=.



[참고]

https://github.com/tensorflow/models/issues/1834



+ Recent posts