Topic4APIR / docs /wish /LATEST.md
ZevonLew's picture
Upload 104 files
e51808a verified
|
Raw History Blame Contribute Delete
9.7 kB

2026-10-22:自然图片OCR图库

OCR分组改为“Natural images/自然图片”,保留原手写便条,增加7张内置图像生成工具生成的生活场景图:公路牌、候车厅、公交站、商店营业时间、咖啡店菜单、超市价签和图书馆导引。全库50例(7face/18gesture/25OCR),自然图片8例;手势boundary分组显示为“Unsupported gestures/未支持的手势”。模型、推理参数、原有图片、课件和讲稿不变。图库版本20261022-natural-1,仍是Static Space、仓库相对路径、按需加载,不访问Dataset。新图原始PNG在外层assets,网页使用原分辨率JPEG副本。

English: The OCR group Natural images keeps the handwritten note and adds seven AI-generated everyday text scenes. There are now 50 cases: 7 face, 18 gesture and 25 OCR, including eight natural-image cases. The gesture group is called Unsupported gestures. Models, existing images and teaching slides are unchanged. Assets remain in this Static Space repository; scene images load only when selected. This local update does not publish the hosted Space.


当前课程入口(2026-10-20)

Space已更名为 ZevonLew/AI_Powered_Image_Recognition;学生指南为 https://zevonlew-ai-powered-image-recognition.static.hf.space/how-to-start.html。当前Static运行方式和模型不变。下方历史部署记录中的旧仓库名只用于追溯,不能作为现行链接。

2026-10-20:当前为Static Space(优先于下方历史记录)

用户明确要求采用 wr92-course/test 的静态部署方式,不从Dataset访问图片;此次不改造手势图形兼容。当前发布号 20261020-static-1,README为 sdk: static、app_file: index.html。删除Python/Gradio/ZeroGPU服务入口,图片、原权重和运行库均保存在本Space仓库,通过相对路径和Hub大文件规则分发。三任务均在浏览器中运行,上传图片不发送服务器;手势仍要求WebGL2,不存在CPU回退接口。

首页不预加载识别引擎/权重;人脸双图并行并逐张显示。样例网络等待不锁定任务、样例或上传;20秒图片超时、重试、取消与序号检查避免旧请求覆盖新输入。保留模型机制、阈值含义、CORS、face-api普通Promise连接、上传Blob生命周期、43例目录、英文/中文切换及结果导出。

当前交付为 AI-Powered_Image_Recognition_HF_Static.zip;构建入口是外层 source/package_space.py,部署步骤见 DEPLOY_STATIC.md。旧Gradio/Docker及四文件补丁要求只反映历史,不能据此恢复后端。真实线上版本需要用户上传后再次核对;本轮不推送远程,不修改PPT。

English: the user selected a pure Static Space with assets in this Space repository, no Dataset access and no gesture compatibility rewrite. All recognition runs in the browser; WebGL2 is still required for gestures. The current Static package supersedes backend and patch delivery instructions below. Local tests and hosted deployment are separate evidence layers.


以下为先前记录,部署事实以当前README和代码为准

2026-10-14:62页课程与43案例图库更新

用户要求恢复参考稿六类Extension、合并重复页、三类真实模型框架和更多原创正常/困难图。课程目录contentBuild20261014-course-3扩展到43例(7face/18gesture/18OCR),默认英文与中文切换不变。基础作业仍为一个任务、两次运行、一页报告;四条简单Extension用现有控件与人工核对,比较额外方法/训练是高级选做。

index.html/app.js/style.css新增分组与目录,sample_catalog.js包含原创小预览;server.py仅新增静态公开白名单。app.py、recognizers.js、权重、依赖、ZeroGPU启动登记、测高和Blob修复保持原样。现版本须上传完整课程更新包或完整Gradio包,旧四文件UI/OCR包不足。43例实际本地Chrome/Gradio测试及上传、分组、语言、390px、JSON回归完成;不推断总体准确率,未发布远程。

English:62-slide teaching revision restores six optional extensions and three source-checked model frameworks. The43-case synthetic gallery adds grouping and real recorded difficulties. The beginner core, native Gradio, startup/model contracts and prior fixes remain. Deployment needs all gallery/update files; no remote publication or scientific performance claim is implied.

先前记录(按原日期保留)

当前课程项目意图 / Current Wish

2026-10-14学生版教学要求:课件直接面向学生,不出现“Suggested rubric”等教师草案措辞。基础作业使用现成网页和内置样例:任选一任务、固定输入、只改一个设置运行两次,提交两张截图与四至六句组成的一页报告。无需账号、编程、安装、部署或训练,结果不变亦有效。论文、官方指南和仓库用于可选深入阅读。最终入口与二维码统一为https://huggingface.co/spaces/ZevonLew/Image_Recognition,模型和运行代码沿用现有版本。

Student-facing requirements, 2026-10-14: one built-in sample on the ready-made website, two runs with one changed setting, and a one-page report with two screenshots and four to six sentences. No account, coding, installation, deployment or training is required; unchanged output is valid. Papers, guides and repositories are optional deeper reading. The final entry and QR point to ZevonLew/Image_Recognition; runtime code/models remain unchanged.

最新用户约束:不再使用Docker,不要求PRO订阅或改硬件,给出可直接上传的简单版本。采用原生Gradio SDK以app.py启动现有课程页面和CPU手势服务;模型、参数、样例、双语与导出保留。完整包带requirements.txt和packages.txt,由平台自动安装。可以保留现有ZeroGPU配置;启动必须登记按需CUDA维护接口并发送报告,但普通识别和页面加载不调用GPU。现阶段需解决课程内层滚动条、上传OCR的Failed to fetch以及首页等待:已有运行中的Gradio版使用AI-Powered_Image_Recognition_HF_UI_OCR_Fix.zip四文件补丁,首次部署使用AI-Powered_Image_Recognition_HF_Gradio.zip。以下Docker兼容记录仅为历史。

Current direction: a simple native Gradio SDK upload, without Docker, a PRO requirement or hardware downgrade. app.py starts the same course UI and CPU gesture service; tasks/models/settings remain aligned with the slides. Dependencies install automatically. Keep existing ZeroGPU hardware; register an optional CUDA maintenance API and send its startup report. Normal recognition never invokes that API. The current four-file UI/OCR patch addresses the second scrollbar, uploaded-image OCR failure and slow initial library loading; the complete Gradio archive serves first deployments. Older Docker records below are history.

历史兼容方向(已由上面的Gradio版本取代):用户反馈浏览器缺少WebGL2,并要求方便、无需自行设计的方案。课程任务和模型保持一致,当时交付Docker CPU兼容版:人脸/OCR仍在浏览器;手势图形故障时自动在本Space的CPU上用同一模型识别。界面在运行前说明手势图片可能发送到Space,后端内存处理、不保存;无需学生修改Chrome设置或购买GPU。旧9文件补丁不再是当前交付物。

Historical compatibility direction: the earlier Docker CPU package introduced the same-model gesture fallback when browser graphics fail. The current Gradio package preserves that behavior, discloses image transfer and does not persist inputs/results. The user does not need to design a backend or change browser settings; updating the public Space still requires upload and build.

更新:2026-10-13。依据用户明确要求,将克隆的目标检测教学起点改造成AI-Powered Image Recognition课程项目。旧源文件已在外层课程目录backup/20261013-112855备份,Git来源历史保留。

中文

为入门学生提供人脸验证、静态手势识别、英文印刷体OCR三个真实浏览器实验。学生依次选择输入、运行预训练模型、读懂输出、改变一个设置并导出证据。UI默认英文,可单独切换中文;HF卡片中文在前、英文在后。基础作业无需训练。

课件与应用使用相同任务、模型、参数和样例。用户已部署ZevonLew/Image_Recognition;后续浏览器修复使用线上资源与本地响应覆盖验证,待用户上传补丁后改变公开版本。本流程没有向远程仓库推送。课件最后一页已采用最终ZevonLew/Image_Recognition入口。生成样例用于教学,不是性能基准。

English

Provide three real browser experiments: face verification, static gesture recognition and printed-English OCR. Keep inputs, model calls, output interpretation and controlled comparisons visible. The app defaults to English with a separate Chinese switch; the HF card remains Chinese first and English second.

Slides and app share tasks, models, settings and samples. The user deployed ZevonLew/Image_Recognition. The browser fix is validated using live resources and local response overlays; upload the patch to change the public version. This workflow has not pushed to a remote repository. The configured course link is now the final ZevonLew/Image_Recognition Space. Generated examples are teaching inputs, not an accuracy benchmark. Training is optional.