docs: update CLAUDE.md for SAM21 + fix httpx import order

- Note that tests now exist and run with uv run pytest.
- Add SAM21 to the upstream services table.
- Add sam21() to the _deps factory list.
- Add a convention bullet about the SAM21 vs bbox frame asymmetry so
  future contributors don't add nuwa_to_cv_frame to the SAM21 branch.
- Move 'import httpx' into the third-party imports block.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Adriano Dal PastroandClaude Opus 4.7 committed 2026-05-11 15:49:11 +02:00
1 parent cc19f73b96
commit 7624327487
2 files changed
+5 -4

No files matched your search

+1 -2
View File
@@ -6,6 +6,7 @@ import logging
from typing import Any, Optional
import cv2
import httpx
import numpy as np
import time
from dataclasses import asdict
@@ -13,8 +14,6 @@ from fastapi import APIRouter, HTTPException
from pydantic import BaseModel, Field
from ..calibration import CalibrationStore
import httpx
from ..clients import G1Unavailable, NuwaError, Sam21Error, Sam21Unavailable
from ..config import get_config
from ..geometry import transform_points