mirror of
https://github.com/storytold/effectcraft.git
synced 2026-10-31 07:38:24 +00:00
sam2: integration tests in one binary (tests/it/main.rs)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
18b6308225
commit
ee6830fefb
4 files changed
+5
-1
No files matched your search
File renamed without changes.
@@ -0,0 +1,4 @@
|
||||
//! The crate's integration tests, one binary (each module is a former `tests/<name>.rs`).
|
||||
|
||||
mod figure;
|
||||
mod reference;
|
||||
File renamed without changes.
@@ -134,7 +134,7 @@ A single object's results need no pending buffer.
|
||||
## How it works
|
||||
`crates/sam2` is a Rust port (on [candle](https://github.com/huggingface/candle), native only) of the Hugging Face
|
||||
`transformers` SAM 2 implementation, Apache-2.0 (see its `NOTICE`). Every stage is checked against PyTorch by
|
||||
`crates/sam2/tests/reference.rs` (they skip without the weights; reference tensors come from
|
||||
`crates/sam2/tests/it/reference.rs` (they skip without the weights; reference tensors come from
|
||||
`tools/sam2_reference.py` and `tools/sam2_video_reference.py`):
|
||||
|
||||
| Stage | Max abs error vs PyTorch |
|
||||
|
||||
Reference in new issue
Block a user