Skip to content

Dev - #4

Merged
ackermanar merged 13 commits into
mainfrom
dev
Sep 23, 2026
Merged

Dev#4
ackermanar merged 13 commits into
mainfrom
dev

Conversation

@ackermanar

Copy link
Copy Markdown
Collaborator

Added agents for main and updated numpy dependencies

tyrwh and others added 11 commits July 31, 2026 09:59
First-round edits to README, prior to attempting installation
Initial README edits, edited to resolve conflicts with dev branch
Ported from main (fbb3c09) onto dev at e7904eb.

Agent instructions and docs
- AGENTS.md: public agent guide, the single source of truth; CLAUDE.md
  imports it. docs/faq.md: human FAQ, linked from the README.
- .gitignore: commit CLAUDE.md and AGENTS.md; ignore *.local.md.
- README, FAQ, AGENTS: Git LFS is an install prerequisite (a clone made
  without it yields a 134-byte pointer stub, not the model), RF-DETR arrives
  with the clone, and `mats fetch-weights` is the repair path. Repair uses
  `git lfs pull --exclude=weights/birefnet_leaf.pth`, which stays RF-DETR-only
  whether or not .lfsconfig's fetchexclude is active.
- README: reconciled with the restructure from PR #2; its headings and TOC are
  kept, and the hand-edited doctor/fetch paragraph is preserved verbatim.

Also carried over from fbb3c09 (app work, unrelated to the docs)
- src/mats/app/Home.py, branding.py, src/mats/core.py, pyproject.toml,
  tests/test_home_app.py

Known and not addressed here
- .lfsconfig has fetchexclude commented out on dev, so a clone now fetches
  BiRefNet (2.65 GB) as well as RF-DETR.
- tests/test_weights.py::test_status_missing_for_excluded_checkout_pointer
  already fails on dev before this commit (message reworded in PR #2).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@ackermanar

Copy link
Copy Markdown
Collaborator Author

Pulling dev into main with new birefnet ease of integration.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

The checkpoint source selection issue and contradictory documentation should be addressed before approval.

Review effort: Lite
Findings: None

What changed in this PR

Updates Git LFS handling for the optional BiRefNet checkpoint and improves dependency-gated tests and documentation.

Changes:

  • Makes BiRefNet fetching opt-in with checkpoint-specific commands.
  • Expands RF-DETR and BiRefNet fetch tests.
  • Skips NumPy-dependent tests when NumPy is unavailable.
  • Updates setup and LFS guidance.
File Summary
tests/​test_weights.py Tests checkpoint-specific LFS fetch behavior.
tests/​test_home_app.py Gates tests on NumPy availability; PR scope description does not match the provided changes. (nit, 1 vote)
src/​mats/​weights.py Adds checkpoint fetch logic; hard-coded --source lfs may fail outside Git LFS checkouts. (moderate, 1 vote)
src/​mats/​app/​pages/​2_BiRefNet_Setup.py Updates the manual BiRefNet fetch command.
README.md Updates project guidance; bare git lfs pull instructions conflict with the new exclusion behavior. (nit, 1 vote)
docs/​weights.md Documents opt-in BiRefNet fetching; related download guidance remains inconsistent. (nit, 1 vote)
.lfsconfig Enables BiRefNet fetch exclusion, requiring corresponding documentation updates. (nit, 1 vote)
.gitattributes Updates LFS guidance.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Several user-facing instructions contradict the new LFS behavior, and the stated NumPy dependency update is absent.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 2 Low severity

Open (2)
Previously missed (1)

In code that hasn't changed since last review

Low severity NumPy dependency declaration remains unchanged

tests/​test_home_app.py:7

The PR description says NumPy dependencies were updated, but this only skips the app tests when NumPy is unavailable; pyproject.toml:38 still has the same unversioned numpy dependency. Please either make the intended dependency change in the package/environment declarations or revise the PR description so it matches the actual change.

Comment thread .lfsconfig
Comment thread docs/weights.md

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

The implementation, tests, configuration, and documentation consistently enforce explicit BiRefNet downloads.

Review effort: Balanced
Findings: 2 Low severity

Open (2)

@ackermanar

Copy link
Copy Markdown
Collaborator Author

@tyrwh would you be able to review and approve this branch for merge?

@ackermanar
ackermanar requested a review from tyrwh September 22, 2026 14:57

@tyrwh tyrwh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving review

@ackermanar ackermanar closed this Sep 22, 2026
@ackermanar ackermanar reopened this Sep 22, 2026
@ackermanar
ackermanar requested a review from tyrwh September 22, 2026 16:19

@tyrwh tyrwh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trying review again

@tyrwh tyrwh closed this Sep 23, 2026
@tyrwh tyrwh reopened this Sep 23, 2026
@tyrwh
tyrwh self-requested a review September 23, 2026 14:00

@tyrwh tyrwh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Third time's the charm

@ackermanar
ackermanar merged commit 190132d into main Sep 23, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants