Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Recognition Cannot Get Past Image

未关闭
#1,420 11 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
docker, php, tensorflow, wasm

调研方向

从 lib/Classifiers/Classifier.php 第 389 行附近开始,检查图像 18666 的预览生成反复失败问题。使用报告中的 23 MB、15,600×15,600 JPG 在 WASM 模式下复现,然后验证失败的图像在有限次重试后会被跳过,并且识别会继续进行。

由索引模型根据 Issue 内容生成。

描述

bug priority: normal waiting for more information
Which version of recognize are you using?

10.0.6

Enabled Modes

Object recognition, Face recognition

TensorFlow mode

WASM mode

Downstream App

Photos App

Which Nextcloud version do you have installed?

32.0.1

Which Operating system do you have installed?

Ubuntu 24.04

Which database are you running Nextcloud on?

Postgres?

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

AIO

How much RAM does your server have?

4 GB

What processor Architecture does your CPU have?

x86

Describe the Bug

Recognize errors on one particular image, and cannot move past it. Face and Object recognition halts.

From the Nextcloud Logs:

Allowed memory size of 536870912 bytes exhausted (tried to allocate 65536 bytes) at /var/www/html/custom_apps/recognize/lib/Classifiers/Classifier.php#389
Failed to generate preview of 18666 with dimension 1024 with nextcloud preview manager: No provider successfully handled the preview generation

The above just repeats every 6 hours. Same number 18666.

Expected Behavior

Fail x number of times, put it aside, and then move on.

To Reproduce

Not sure what to tell you. The image 18666 (if I'm identifying it correctly), is quite large: a 23 MB JPG. 15,600x15,600 pixels. It's not under "Photos", is a digital drawing, and doesn't have any faces or objects to recognize.

Debug log

No response

主要语言
PHP
星标
701
派生
70
平均合并
10 天 22 小时
30 天内合并 PR
2

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nextcloud/recognize 的其他 Issue

查看 nextcloud/recognize 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。