fix: update correct metric in batch_embed_thumbnail (#22501)

batch_embed_thumbnail processes image thumbnails but reports timing
to text_inference_speed instead of image_inference_speed.
This commit is contained in:
ryzendigo 2026-03-17 07:33:40 +08:00 committed by GitHub
parent aea91a91d5
commit 7708523865
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -266,7 +266,7 @@ class Embeddings:
)
duration = datetime.datetime.now().timestamp() - start
self.text_inference_speed.update(duration / len(valid_ids))
self.image_inference_speed.update(duration / len(valid_ids))
return embeddings