TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10 icon indicating copy to clipboard operation
TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10 copied to clipboard

Issue compiling protobuf and installing the object detection package

Open ashwinmudigonda-cmd opened this issue 5 years ago • 4 comments
trafficstars

I am following the steps and am stuck confirming that tensor flow has been successfully installed (Step 2g). When I run the jupyter notebook, I am encountering errors in the "Compile protobufs and install the object_detection package" stage. I have installed Ubuntu for Windows and am able to enter bash shell from a cmd window.

When I step over it, I get errors:

Windows Subsystem for Linux has no installed distributions.
Distributions can be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
---------------------------------------------------------------------------
CalledProcessError                        Traceback (most recent call last)
<ipython-input-4-99b2dbacc58a> in <module>
----> 1 get_ipython().run_cell_magic('bash', '', 'cd models/research/\nprotoc object_detection/protos/*.proto --python_out=.\n')

c:\users\whuser1\anaconda3\envs\tensorflow1\lib\site-packages\IPython\core\interactiveshell.py in run_cell_magic(self, magic_name, line, cell)
   2360             with self.builtin_trap:
   2361                 args = (magic_arg_s, cell)
-> 2362                 result = fn(*args, **kwargs)
   2363             return result
   2364 

c:\users\whuser1\anaconda3\envs\tensorflow1\lib\site-packages\IPython\core\magics\script.py in named_script_magic(line, cell)
    140             else:
    141                 line = script
--> 142             return self.shebang(line, cell)
    143 
    144         # write a basic docstring:

<decorator-gen-111> in shebang(self, line, cell)

c:\users\whuser1\anaconda3\envs\tensorflow1\lib\site-packages\IPython\core\magic.py in <lambda>(f, *a, **k)
    185     # but it's overkill for just that one bit of state.
    186     def magic_deco(arg):
--> 187         call = lambda f, *a, **k: f(*a, **k)
    188 
    189         if callable(arg):

c:\users\whuser1\anaconda3\envs\tensorflow1\lib\site-packages\IPython\core\magics\script.py in shebang(self, line, cell)
    243             sys.stderr.flush()
    244         if args.raise_error and p.returncode!=0:
--> 245             raise CalledProcessError(p.returncode, cell, output=out, stderr=err)
    246 
    247     def _run_script(self, p, cell, to_close):

CalledProcessError: Command 'b'cd models/research/\nprotoc object_detection/protos/*.proto --python_out=.\n'' returned non-zero exit status 4294967295.


Any ideas on how to get out of this?

ashwinmudigonda-cmd avatar Mar 13 '20 21:03 ashwinmudigonda-cmd

Pls try with this tutorial with anaconda.

maacofficial avatar Mar 19 '20 15:03 maacofficial

bump

andresmarcelo99 avatar Mar 23 '20 08:03 andresmarcelo99

I'm having the same and I have not found any solution to this issue.

andresmarcelo99 avatar Mar 23 '20 08:03 andresmarcelo99

You need install: sudo apt install protobuf-compiler

csarmiento03 avatar Aug 23 '21 15:08 csarmiento03