Error API Cloud Video Intelligence - Requested model could not be loaded
メンテナーはふだん 5 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 28/100
- issue の種類
- ドキュメント
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- python
- 領域
- cloud, documentation
調査の方向性
test.py と、リンクされている Video Intelligence のストリーミング動画分類ドキュメントから始め、次に StreamingVideoIntelligenceServiceClient の例とそのモデル設定を確認します。「Requested model could not be loaded」というレスポンスを再現し、AutoML モデルとエンドポイントについて文書化された要件を検証します。サンプルとドキュメントに必要なセットアップが明確に記載されるか、示されている使用方法が修正されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
In which file did you encounter the issue?
import io
from google.cloud import videointelligence_v1p3beta1 as videointelligence
# path = 'path_to_file'
# project_id = 'gcp_project_id'
# model_id = 'automl_classification_model_id'
client = videointelligence.StreamingVideoIntelligenceServiceClient()
model_path = "projects/{}/locations/us-central1/models/{}".format(
project_id, model_id
)
# Here we use classification as an example.
automl_config = videointelligence.StreamingAutomlClassificationConfig(
model_name=model_path
)
video_config = videointelligence.StreamingVideoConfig(
feature=videointelligence.StreamingFeature.STREAMING_AUTOML_CLASSIFICATION,
automl_classification_config=automl_config,
)
# config_request should be the first in the stream of requests.
config_request = videointelligence.StreamingAnnotateVideoRequest(
video_config=video_config
)
# Set the chunk size to 5MB (recommended less than 10MB).
chunk_size = 5 * 1024 * 1024
# Load file content.
# Note: Input videos must have supported video codecs. See
# https://cloud.google.com/video-intelligence/docs/streaming/streaming#supported_video_codecs
# for more details.
stream = []
with io.open(path, "rb") as video_file:
while True:
data = video_file.read(chunk_size)
if not data:
break
stream.append(data)
def stream_generator():
yield config_request
for chunk in stream:
yield videointelligence.StreamingAnnotateVideoRequest(input_content=chunk)
requests = stream_generator()
# streaming_annotate_video returns a generator.
# The default timeout is about 300 seconds.
# To process longer videos it should be set to
# larger than the length (in seconds) of the stream.
responses = client.streaming_annotate_video(requests, timeout=600)
for response in responses:
# Check for errors.
if response.error.message:
print(response.error.message)
break
for label in response.annotation_results.label_annotations:
for frame in label.frames:
print(
"At {:3d}s segment, {:5.1%} {}".format(
frame.time_offset.seconds,
frame.confidence,
label.entity.entity_id,
)
)
Describe the issue
https://cloud.google.com/video-intelligence/docs/streaming/video-classification
I am conducting a series of tests on AutoML, using the code provided in the official documentation, and I am encountering an issue. After training the model with VortexAI, completing the process, and retrieving the Model ID, the Python APIs consistently return 'Requested model could not be loaded.' Honestly, the demos are poorly written, and the exceptions in the code are very implicit. Some demos don't work, and you have to make corrections in certain areas to get them to function properly.
python3 ./test.py
"Requested model could not be loaded."
The model was specifically trained for Video Intelligence in the VortexAI section and, in turn, did not function correctly. In the documentation, it's not clear whether the model necessarily requires an Endpoint. Both the code and the documentation have a comprehension issue.
- 主要言語
- Jupyter Notebook
- スター
- 8.1k
- フォーク
- 6.7k
- 平均マージ
- 4日 12時間
- マージ済み PR(30日)
- 9
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
GoogleCloudPlatform/python-docs-samples のほかの issue
-
samples
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
GoogleCloudPlatform/python-docs-samples#14609 ·
メンテナーはふだん 5 日以内に返信
-
samples
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
GoogleCloudPlatform/python-docs-samples#14610 ·
メンテナーはふだん 5 日以内に返信
-
samples
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
GoogleCloudPlatform/python-docs-samples#14611 ·
メンテナーはふだん 5 日以内に返信
-
chore(generative_ai) Update model references for generative_ai samples再び着手できるかも @XrossFox が 153 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンsamples
GoogleCloudPlatform/python-docs-samples#14117 · 担当者 1 名 ·
メンテナーはふだん 5 日以内に返信
-
Fix Pipeline dependency issues for geospatial-classification/serving_app再び着手できるかも @XrossFox が 165 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンsamples
GoogleCloudPlatform/python-docs-samples#14091 · 担当者 1 名 ·
メンテナーはふだん 5 日以内に返信
GoogleCloudPlatform/python-docs-samples の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
googleapis/google-cloud-dart#366 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
kedacore/keda#8225 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug status/needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
prowler-cloud/prowler#12887 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area-deployment triage:bot-seen triage:needs-human
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
microsoft/aspire#20533 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
modelcontextprotocol/python-sdk#3590 ·
メンテナーはふだん 1 日以内に返信