Repository navigation
fix(cli): a --model-path folder holding the catalog files is not asked about downloads - #789
Conversation
…is not asked about downloads
|
@claude review PR |
|
Claude finished @kalebbroo's task in 1m 30s —— View job Review of PR #789:
|
…load from a folder; exact-match tests, a note when the download goes elsewhere
|
Addressed the review in the latest push:
🤖 Addressed by Claude Code |
What
hartsy 3d ... --model-path <folder>listed the catalog's files as missing and asked "Download these now?" even when the folder already held every file, because only a checkpoint FILE named with--model-pathexempted the "transformer" asset and the other assets were always looked up under the catalog folder.ModelDownloader.MissingAssets(entry, checkpointFolder)now also counts an asset as present when the named folder is an existing directory holding it under the asset's file name.ModelAcquisition.EnsurePresentuses it. Without--model-path, or with a path that is not a directory, nothing changes.Checked
ModelDownloaderCheckpointFolderTests(3): a folder holding every SAM 3D file leaves nothing missing; a partial folder lists only the absent files; no folder or a non-existent one equals the old result. WithSam3dObjectsWiringTests: 13 passed.--model-pathat a folder holding the seven SAM 3D files no longer prints the download prompt (it previously did, with stdin closed it defaulted to No).Not changed
The catalog folder stays
3D/sam3d-objects(the id, like the other entries). No Models/ changes, no changelog, no version change.