Views
No views yet
austere-moose/ester-sam3-face-partshandler.py endpoint
runtime.transformers 4.48.0facebook/sam3 was added in Transformers v5transformers in the stock endpoint runtime breaks the older
Hugging Face inference toolkit import path../custom_containeraustere-moose1{
2 "inputs": {
3 "image_b64": "<base64 png or jpeg>",
4 "parts": ["forehead", "nose", "left_cheek", "right_cheek", "chin"],
5 "threshold": 0.5,
6 "mask_threshold": 0.5,
7 "min_area_ratio": 0.00005
8 }
9}1{
2 "inputs": {
3 "image_url": "https://..."
4 }
5}1{
2 "model_id": "facebook/sam3",
3 "device": "cuda",
4 "image_size": [1080, 1440],
5 "parts": {
6 "forehead": {
7 "mask_png_b64": "<base64 png or null>",
8 "mask_present": true,
9 "mask_area_ratio": 0.0412,
10 "prompt_runs": [
11 {"prompt": "forehead", "kept_instances": 1}
12 ]
13 }
14 }
15}