object_detection package install fails

オープン
#13,558 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python, tensorflow
領域
build-system

調査の方向性

research/object_detection/packages/tf2/setup.py から始め、提供されている Google Colab の手順でインストールを再現します。次に object_detection/builders/model_builder_tf2_test.py を実行して依存関係の失敗を確認し、報告されている protobuf エラーなしでインストールが成功することを検証します。

索引モデルが issue の本文から書いたものです。

説明

models:research type:bug

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • [ +] I am using the latest TensorFlow Model Garden release and TensorFlow 2.
  • [ +] I am reporting the issue to the correct repository. (Model Garden official or research directory)
  • [+ ] I checked to make sure that this issue has not already been filed.

1. The entire URL of the file you are using

https://github.com/tensorflow/models/blob/master/research/object_detection/packages/tf2/setup.py

2. Describe the bug

Setup for object_detection package fails because of incompatible dependencies, even in simple colab with errors of:

TypeError: Descriptors cannot be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.

3. Steps to reproduce

cd models/research/
protoc object_detection/protos/*.proto --python_out=.
cp object_detection/packages/tf2/setup.py .
python -m pip install .

python /content/models/research/object_detection/builders/model_builder_tf2_test.py

https://colab.research.google.com/drive/1krnCXwHeRqROVrXn55_wtHm5NWydJnXk#scrollTo=u3-XpvyWiCSB

6. System information

default google colab notebook like following:
https://colab.research.google.com/drive/1krnCXwHeRqROVrXn55_wtHm5NWydJnXk#scrollTo=u3-XpvyWiCSB

主要言語
Python
スター
77.6k
フォーク
44.8k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

tensorflow/models のほかの issue

tensorflow/models の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。