Skip to content

Flipping logic for lfs install, README edits - #3

Merged
ackermanar merged 5 commits into
mainfrom
dev
Sep 21, 2026
Merged

ackermanar merged 5 commits into
mainfrom
dev

Conversation

@tyrwh

@tyrwh tyrwh commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

General first-pass edits across the README

Existing logic for LFS file install was to exclude the large BiRefNet weights in the .lfsconfig and override that exclusion with git lfs pull --include [weights.pth] when the user requests it.

I could not get that override to work correctly, either on my Macbook or on an Ubuntu docker image. The man pages for git lfs suggest that it should work, not sure what the problem is.

Instead, I flipped the logic around in weights.py and in the .lfsconfig. Instead of the lfsconfig excluding the file and the commands including it, the two relevant lines in the lfsconfig are commented out and the weights fetching tools will always run git lfs pull --exclude [weights.pth] by default, unless the user specifies that they want to retrieve the BiRefNet weights

tyrwh and others added 4 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
@tyrwh
tyrwh requested a review from ackermanar August 19, 2026 15:39
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
ackermanar merged commit bd88cff into main Sep 21, 2026
0 of 2 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.

2 participants