exo-explore/exo · error · ValueError
Invalid size format: '{size_str}'. Expected 'WIDTHxHEIGHT' (
Error message
Invalid size format: '{size_str}'. Expected 'WIDTHxHEIGHT' (e.g., '1024x1024') What it means
Error "Invalid size format: '{size_str}'. Expected 'WIDTHxHEIGHT' (e.g., '1024x1024')" thrown in exo-explore/exo.
Source
Thrown at src/exo/worker/engines/image/generate.py:41
from exo.shared.types.memory import Memory
from exo.worker.engines.image.distributed_model import DistributedImageModel
def parse_size(size_str: ImageSize) -> tuple[int, int]:
"""Parse size parameter like '1024x1024' to (width, height) tuple."""
if size_str == "auto":
return (1024, 1024)
try:
parts = size_str.split("x")
if len(parts) == 2:
width, height = int(parts[0]), int(parts[1])
if width > 0 and height > 0:
return (width, height)
except (ValueError, AttributeError):
pass
raise ValueError(
f"Invalid size format: '{size_str}'. Expected 'WIDTHxHEIGHT' (e.g., '1024x1024')"
)
def warmup_image_generator(model: DistributedImageModel) -> Image.Image | None:
"""Warmup the image generator with a small image."""
with tempfile.TemporaryDirectory() as tmpdir:
# Create a small dummy image for warmup (needed for edit models)
dummy_image = Image.new("RGB", (256, 256), color=(128, 128, 128))
dummy_path = Path(tmpdir) / "warmup.png"
dummy_image.save(dummy_path)
warmup_params = AdvancedImageParams(num_inference_steps=2)
for result in model.generate(
prompt="Warmup",
height=256,
width=256,View on GitHub (pinned to 21a54c5ea0)
When it happens
Trigger: Thrown at src/exo/worker/engines/image/generate.py:41 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of exo-explore/exo@21a54c5ea0 (2026-08-26).
Data as JSON: /api/errors/82cb50dd5e8466b6.
Report an issue: GitHub.