From 453d484526a029fefeb8a32cde1acb4bc87d0e6b Mon Sep 17 00:00:00 2001 From: stuartgo Date: Tue, 9 Dec 2025 18:12:00 +0100 Subject: [PATCH] use array instead of image --- anansyTypes/structures/symbol.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/anansyTypes/structures/symbol.py b/anansyTypes/structures/symbol.py index 4cfb4e8..e450689 100644 --- a/anansyTypes/structures/symbol.py +++ b/anansyTypes/structures/symbol.py @@ -1,10 +1,12 @@ from dataclasses import dataclass from typing import Optional -from PIL import Image - - +import numpy as np +from pydantic_tensor import Tensor +from typing import Any, Literal +import torch @dataclass class Symbol: id: int label: str - image: Optional[Image.Image] + image: Tensor[ np.ndarray[Any, Any],tuple, Literal["int32", "int64"]] +