protoc object_detection/protos/*.proto: No such file or directory

后端 未结 16 2972
时光说笑
时光说笑 2020-12-14 10:47

I am following the example found here. But whenever I enter the command \"C:/Program Files/protoc/bin/protoc\" object_detection/protos/.proto --python_out=. I get an e

16条回答
  •  北海茫月
    2020-12-14 11:24

    I'm going to post this on all these questions I can find so people know. I have to write these directions for myself and others later anyways.

    The following does and does not work in a way:

    protoc object_detection/protos/*.proto --python_out=.
    

    The *.proto designating all files does not work for the compiler. If you are using version 3.5, you have to specify each individual file.

    So here it what it would look like:

    1. Run cmd
    2. change your directory to the research folder you downloaded(may differ):

      cd /d C:\Users\yourusername\Desktop\TensorFlow\models-master\models-master\research
      
    3. Get the location of the protroc.exe file that you downloaded

      C:\Users\yourusername\Desktop\TensorFlow\protoc-3.5.1-win32\bin\protoc 
      
    4. Go to the protos folder so you know what files you need to do individually

      C:\Users\yourusername\Desktop\TensorFlow\models-master\models-master\research\object_detection\protos
      
    5. Now start spamming every individual .proto item in that folder in cmd:

      C:\Users\yourusername\Desktop\TensorFlow\protoc-3.5.1-win32\bin\protoc object_detection/protos/anchor_generator.proto --python_out=.
      C:\Users\yourusername\Desktop\TensorFlow\protoc-3.5.1-win32\bin\protoc object_detection/protos/argmax_matcher.proto --python_out=.
      C:\Users\yourusername\Desktop\TensorFlow\protoc-3.5.1-win32\bin\protoc object_detection/protos/bipartite_matcher.proto --python_out=.
      ....and so on until you finish all items in the protos folder
      
    6. Or you could call it a day and get 3.4 and run:

      C:\Users\yourusername\Projects\TensorFlow\protoc-3.5.1-win32\bin\protoc object_detection/protos/*.proto --python_out=.
      

    Let me know if I can clarify some more. I try to be very clear so idiots like me can understand.

提交回复
热议问题