작성
·
1.1K
0
수정 공지해주신
1강_TF2_Detection_Model_ZOO_example_fasterrcnn_pedestrian_dataset_2022_09_26.ipynb을
실행해 보니 아래와 같은 에러가 뜨는데 어떻게 해야 할지 잘 모르겠습니다.
# TensorFlow Object Detection API를 설치합니다.
# Reference : https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/tf2.md
%%bash
cd models/research/
protoc object_detection/protos/*.proto --python_out=.
cp object_detection/packages/tf2/setup.py .
python -m pip install --upgrade pip
python -m pip install --use-feature=2020-resolver .
Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/
Requirement already satisfied: pip in /usr/local/lib/python3.8/dist-packages (22.3.1)
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Usage:
/usr/bin/python3 -m pip install [options] <requirement specifier> [package-index-options] ...
/usr/bin/python3 -m pip install [options] -r <requirements file> [package-index-options] ...
/usr/bin/python3 -m pip install [options] [-e] <vcs project url> ...
/usr/bin/python3 -m pip install [options] [-e] <local project path> ...
/usr/bin/python3 -m pip install [options] <archive url/path> ...
option --use-feature: invalid choice: '2020-resolver' (choose from 'fast-deps', 'truststore', 'no-binary-enable-wheel-cache')
---------------------------------------------------------------------------
CalledProcessError Traceback (most recent call last)
<ipython-input-3-784c85556773> in <module>
----> 1 get_ipython().run_cell_magic('bash', '', 'cd models/research/\nprotoc object_detection/protos/*.proto --python_out=.\ncp object_detection/packages/tf2/setup.py .\npython -m pip install --upgrade pip\npython -m pip install --use-feature=2020-resolver .\n')
3 frames
<decorator-gen-103> in shebang(self, line, cell)
/usr/local/lib/python3.8/dist-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 runscript(self, p, cell, to_close):
CalledProcessError: Command 'b'cd models/research/\nprotoc object_detection/protos/*.proto --python_out=.\ncp object_detection/packages/tf2/setup.py .\npython -m pip install --upgrade pip\npython -m pip install --use-feature=2020-resolver .\n'' returned non-zero exit status 2.
답변 1
1
안녕하세요~. 반갑습니다.
먼저 수강에 불편을 드려서 죄송합니다ㅠㅠ.
tensorflow 버전이 계속 업데이트되면서 tensorflow objectection api와 호환이 계속 바뀌네요ㅠㅠ.
2022년 11월 11일 기준으로 수정한 아래 colab으로 실습부탁드립니다.
https://colab.research.google.com/drive/1LIMGUFJtCWw3gdgWh3T2aorR4AwogyPS?usp=sharing
좋은 하루되세요~.
감사합니다.
앞선 댓글의 신속한 답변 감사 드립니다.
11/11 일자 파일에서도
라이브러리 임포트 부분에서 아래와 같은 경고가 뜨기 시작하는 것 같은데
없애는 방법이 있을는지요?