mirror of
https://github.com/SikongJueluo/Mini-Nav.git
synced 2026-03-12 12:25:32 +08:00
refactor(benchmarks): modularize benchmark system with config-driven execution
This commit is contained in:
@@ -1,26 +1,21 @@
|
||||
"""Tests for compressor modules (SAM, DINO, HashCompressor, Pipeline)."""
|
||||
|
||||
import tempfile
|
||||
from pathlib import Path
|
||||
from unittest.mock import MagicMock, patch
|
||||
|
||||
import pytest
|
||||
import torch
|
||||
from PIL import Image
|
||||
|
||||
from configs import cfg_manager
|
||||
from compressors import (
|
||||
BinarySign,
|
||||
DinoCompressor,
|
||||
HashCompressor,
|
||||
SegmentCompressor,
|
||||
SAMHashPipeline,
|
||||
create_pipeline_from_config,
|
||||
SegmentCompressor,
|
||||
bits_to_hash,
|
||||
hash_to_bits,
|
||||
create_pipeline_from_config,
|
||||
hamming_distance,
|
||||
hamming_similarity,
|
||||
hash_to_bits,
|
||||
)
|
||||
from configs import cfg_manager
|
||||
from PIL import Image
|
||||
|
||||
|
||||
class TestHashCompressor:
|
||||
|
||||
Reference in New Issue
Block a user