mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-11-18 09:42:31 +00:00
fix(benchmark): declare Pillow for MemLens images
This commit is contained in:
parent
22997460bf
commit
962d5cd840
2 changed files with 8 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ description = "MemLens multimodal memory benchmark plugin for ReMe."
|
|||
readme = "README.md"
|
||||
license = "Apache-2.0"
|
||||
requires-python = ">=3.11"
|
||||
dependencies = ["reme-ai[as]>=0.4.1.11"]
|
||||
dependencies = ["reme-ai[as]>=0.4.1.11", "pillow>=10.0.0"]
|
||||
|
||||
[project.entry-points."reme.plugins"]
|
||||
memlens = "reme_memlens"
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ from importlib.metadata import EntryPoint
|
|||
from io import BytesIO
|
||||
import json
|
||||
from pathlib import Path
|
||||
import tomllib
|
||||
from types import SimpleNamespace
|
||||
from unittest.mock import AsyncMock
|
||||
|
||||
|
|
@ -28,6 +29,12 @@ from reme.steps.file_io.read_image import ReadImageStep
|
|||
from benchmark.memlens import run as memlens
|
||||
|
||||
|
||||
def test_candidate_declares_required_image_dependency():
|
||||
manifest = Path(__file__).resolve().parents[2] / "plugins/memlens/pyproject.toml"
|
||||
project = tomllib.loads(manifest.read_text(encoding="utf-8"))["project"]
|
||||
assert "pillow>=10.0.0" in project["dependencies"]
|
||||
|
||||
|
||||
def test_memlens_subset_lengths_order_and_public_inputs(tmp_path):
|
||||
image = {"file": "photo.png", "blip_caption": "HIDDEN_CAPTION"}
|
||||
row = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue