Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Assigning unknown face causes high CPU usage

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
docker, php, postgresql, tensorflow

調査の方向性

まず、Recognize 5.0.3、Nextcloud 27.1.6、Docker、PostgreSQLを使用した報告済みの環境で、未知の顔の割り当て手順を再現し、同時にCPUとメモリの使用量をプロファイリングします。顔の割り当てフローを追跡し、1つの顔を割り当てる場合と複数の顔を割り当てる場合を比較します。長時間にわたるリソース使用量の急増やOOM-killerによる失敗なしに割り当てが完了すれば完了です。

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

説明

bug priority: normal
Which version of recognize are you using?

5.0.3

Enabled Modes

Object recognition, Face recognition, Video recognition, Music recognition

TensorFlow mode

Normal mode

Downstream App

Memories App

Which Nextcloud version do you have installed?

27.1.6

Which Operating system do you have installed?

Docker running in Debian 12

Which database are you running Nextcloud on?

Postgresql 16

Which Docker container are you using to run Nextcloud? (if applicable)

nextcloud:27-fpm

How much RAM does your server have?

4GiB

What processor Architecture does your CPU have?

x86_64

Describe the Bug

When I go to the unassigned faces (e.g. with id NULL) and I try to assign a face to a person (either existing or not). The CPU spikes to 100% for a long time and memory usage goes up a lot. This gets worse the more faces I add. Usually with 6-10 faces it takes almost 7 minutes to get back to normal and sometimes linux's OOM killer kicks in.

Expected Behavior

A face is assigned without much resource consumption.

To Reproduce
  1. Scan some images and have unrecognized faces
  2. Go to unknown faces
  3. Assign one of the images to a face.
  4. Either check task manager or wait a bit as the system becomes unresponsive.
Debug log

No response

主要言語
PHP
スター
699
フォーク
68
平均マージ
18時間 34分
マージ済み PR(30日)
2

環境構築

はじめの一歩

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

nextcloud/recognize のほかの issue

nextcloud/recognize の issue をすべて見る

似ている issue

PHP の issue をもっと見る

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

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