尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证正在加载完整 README。 以下为已保存的摘录。
A web app that identifies insects in photos with the Pyinsect 2.8 model (390 classes) and
reports invasive species. The older Pyinsect 2.7 model is still available at /2.7/.
This repo is public, so it holds no reports and no tokens. Reports (one .json and one .jpg
per find) live in reports/ of a separate private repo that only the relay can read and write.查看完整 README ↗A web app that identifies insects in photos with the Pyinsect 2.8 model (390 classes) and
reports invasive species. The older Pyinsect 2.7 model is still available at /2.7/.
| Where | What it does |
|---|---|
This repo on GitHub Pages (/) | Identify: pick photos, the model runs in the browser |
relay/worker.js on Cloudflare | Receives reports and saves them to a private repo |
https://<worker>/<secret word>/ | The reports page: password-protected, refreshes every 15 s |
This repo is public, so it holds no reports and no tokens. Reports (one .json and one .jpg
per find) live in reports/ of a separate private repo that only the relay can read and write.
index.html, README.md, assets/, model/, relay/) to its root. Then Settings →
Pages → Deploy from a branch → main → / (root). The site is live a minute later at
https://<your-username>.github.io/<repository>/.pyinsect-reports-data). Tick "Add a README" so it isn't empty.pyinsect-relay, Deploy.relay/worker.js, set REPORTS_REPO near the top to
<your-username>/<private reports repo>. Then Edit code, replace everything with the
contents of relay/worker.js, Deploy. (The reports repo is set in the code, not as a
Cloudflare setting, so it can't accidentally point at a public repo.) Also put your site's
address (https://<your-username>.github.io) in SITE_ORIGINS, and your site's full link in
SITE near the bottom (the reports page loads the AI check from there).GITHUB_TOKEN, Secret: the token from step 3VIEW_PASSWORD, Secret: the password for the reports pageVIEW_PATH, Secret: a secret word for the page address (letters, digits, -, _)https://pyinsect-relay.<something>.workers.dev) in
RELAY_URL at the top of assets/reports.js.https://pyinsect-relay.<something>.workers.dev/<VIEW_PATH>/. Share that
link and the password only with people who should see reports.nothing-found/, not reports/,
and never on the public map. Public map squares are about 200 m; the team sees a spot rounded to about 75 m.reports/, never change or delete existing ones.VIEW_PASSWORD / VIEW_PATH in Cloudflare.
Everyone then has to use the new link and password.invasive in assets/models/pyinsect-*.js and INVASIVE in
relay/worker.js. Change both, then paste worker.js into Cloudflare again
(Edit code → Deploy).relay/worker.js, so it keeps
working if the site moves or is renamed.model/insect_model.onnx and update classes (and size) in
its settings file in assets/models/. convert_to_onnx.py in the app folder converts a .pth and writes its class
list to assets/models/models.json.