nicknochnack / TFODCourse

957 stars 924 forks source link

command not found #165

Open youutubee opened 6 months ago

youutubee commented 6 months ago

Install Tensorflow Object Detection

if os.name=='posix':
!apt-get install protobuf-compiler !cd Tensorflow/models/research && protoc object_detection/protos/*.proto --python_out=. && cp object_detection/packages/tf2/setup.py . && python -m pip install .

if os.name=='nt': url="https://github.com/protocolbuffers/protobuf/releases/download/v3.15.6/protoc-3.15.6-win64.zip" wget.download(url) !move protoc-3.15.6-win64.zip {paths['PROTOC_PATH']} !cd {paths['PROTOC_PATH']} && tar -xf protoc-3.15.6-win64.zip os.environ['PATH'] += os.pathsep + os.path.abspath(os.path.join(paths['PROTOC_PATH'], 'bin'))
!cd Tensorflow/models/research && protoc object_detection/protos/*.proto --python_out=. && copy object_detection\packages\tf2\setup.py setup.py && python setup.py build && python setup.py install !cd Tensorflow/models/research/slim && pip install -e .

below error in running the above code im using a mac m1 machine

zsh:1: command not found: apt-get zsh:1: command not found: protoc

PriyanshuPharrow commented 5 months ago

@youutubee Seems like you are on Z Shell and not on bash, for that you might have to use brew for installing stuff e.g. brew install wget or anything to your liking.

davemaster commented 5 months ago

wget must be installed in python environment

then before be used, call "import wget"