Update HuggingFace endpoint URL after clean rebuild
Browse files- Created new Logiroad/sam3 model repository on HuggingFace
- Pushed complete codebase with LFS model files (6.8GB)
- Deployed new inference endpoint with proper configuration
- Updated all documentation with new endpoint URL
- Verified endpoint health and inference functionality
New endpoint: https://p6irm2x7y9mwp4l4.us-east-1.aws.endpoints.huggingface.cloud
Old endpoint: https://yzsj8fy005ix8sje.us-east-1.aws.endpoints.huggingface.cloud
Generated with [Claude Code](https://claude.com/claude-code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
- README.md +4 -4
- assets/examples/usage_example.py +1 -1
- deployments/huggingface/README.md +1 -1
- deployments/huggingface/deploy.sh +1 -1
- docs/DEPLOYMENT.md +2 -2
- scripts/deploy_all.sh +1 -1
- scripts/test/test_api.py +1 -1
README.md
CHANGED
|
@@ -10,7 +10,7 @@ This repository supports deployment to **both HuggingFace and Azure AI Foundry**
|
|
| 10 |
|
| 11 |
#### HuggingFace (Current)
|
| 12 |
|
| 13 |
-
**URL**: `https://
|
| 14 |
**Status**: β
Running
|
| 15 |
**Model**: `facebook/sam3` (Sam3Model for static images)
|
| 16 |
**Hardware**: NVIDIA A10G GPU (24GB VRAM)
|
|
@@ -35,7 +35,7 @@ with open("image.jpg", "rb") as f:
|
|
| 35 |
|
| 36 |
# Request segmentation masks
|
| 37 |
response = requests.post(
|
| 38 |
-
"https://
|
| 39 |
json={
|
| 40 |
"inputs": image_b64,
|
| 41 |
"parameters": {
|
|
@@ -336,7 +336,7 @@ with open("road.jpg", "rb") as f:
|
|
| 336 |
|
| 337 |
# Segment road defects
|
| 338 |
response = requests.post(
|
| 339 |
-
"https://
|
| 340 |
json={
|
| 341 |
"inputs": image_b64,
|
| 342 |
"parameters": {
|
|
@@ -375,4 +375,4 @@ For issues with:
|
|
| 375 |
|
| 376 |
**Last Updated**: 2025-11-22
|
| 377 |
**Status**: β
Production Ready
|
| 378 |
-
**Endpoint**: https://
|
|
|
|
| 10 |
|
| 11 |
#### HuggingFace (Current)
|
| 12 |
|
| 13 |
+
**URL**: `https://p6irm2x7y9mwp4l4.us-east-1.aws.endpoints.huggingface.cloud`
|
| 14 |
**Status**: β
Running
|
| 15 |
**Model**: `facebook/sam3` (Sam3Model for static images)
|
| 16 |
**Hardware**: NVIDIA A10G GPU (24GB VRAM)
|
|
|
|
| 35 |
|
| 36 |
# Request segmentation masks
|
| 37 |
response = requests.post(
|
| 38 |
+
"https://p6irm2x7y9mwp4l4.us-east-1.aws.endpoints.huggingface.cloud",
|
| 39 |
json={
|
| 40 |
"inputs": image_b64,
|
| 41 |
"parameters": {
|
|
|
|
| 336 |
|
| 337 |
# Segment road defects
|
| 338 |
response = requests.post(
|
| 339 |
+
"https://p6irm2x7y9mwp4l4.us-east-1.aws.endpoints.huggingface.cloud",
|
| 340 |
json={
|
| 341 |
"inputs": image_b64,
|
| 342 |
"parameters": {
|
|
|
|
| 375 |
|
| 376 |
**Last Updated**: 2025-11-22
|
| 377 |
**Status**: β
Production Ready
|
| 378 |
+
**Endpoint**: https://p6irm2x7y9mwp4l4.us-east-1.aws.endpoints.huggingface.cloud
|
assets/examples/usage_example.py
CHANGED
|
@@ -12,7 +12,7 @@ import io
|
|
| 12 |
import os
|
| 13 |
|
| 14 |
# Configuration
|
| 15 |
-
ENDPOINT_URL = "https://
|
| 16 |
|
| 17 |
def segment_image(image_path, classes):
|
| 18 |
"""
|
|
|
|
| 12 |
import os
|
| 13 |
|
| 14 |
# Configuration
|
| 15 |
+
ENDPOINT_URL = "https://p6irm2x7y9mwp4l4.us-east-1.aws.endpoints.huggingface.cloud"
|
| 16 |
|
| 17 |
def segment_image(image_path, classes):
|
| 18 |
"""
|
deployments/huggingface/README.md
CHANGED
|
@@ -36,4 +36,4 @@ python3 scripts/test/test_api.py
|
|
| 36 |
|
| 37 |
## Endpoint URL
|
| 38 |
|
| 39 |
-
https://
|
|
|
|
| 36 |
|
| 37 |
## Endpoint URL
|
| 38 |
|
| 39 |
+
https://p6irm2x7y9mwp4l4.us-east-1.aws.endpoints.huggingface.cloud
|
deployments/huggingface/deploy.sh
CHANGED
|
@@ -64,7 +64,7 @@ echo "ββββββββββββββββββββββββ
|
|
| 64 |
echo "β
HuggingFace Deployment Complete"
|
| 65 |
echo "ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
|
| 66 |
echo ""
|
| 67 |
-
echo "Endpoint: https://
|
| 68 |
echo ""
|
| 69 |
echo "Test with:"
|
| 70 |
echo " python3 scripts/test/test_api.py"
|
|
|
|
| 64 |
echo "β
HuggingFace Deployment Complete"
|
| 65 |
echo "ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ"
|
| 66 |
echo ""
|
| 67 |
+
echo "Endpoint: https://p6irm2x7y9mwp4l4.us-east-1.aws.endpoints.huggingface.cloud"
|
| 68 |
echo ""
|
| 69 |
echo "Test with:"
|
| 70 |
echo " python3 scripts/test/test_api.py"
|
docs/DEPLOYMENT.md
CHANGED
|
@@ -6,7 +6,7 @@ This repository supports deployment to both **HuggingFace Inference Endpoints**
|
|
| 6 |
|
| 7 |
| Platform | Status | Container Registry | Endpoint |
|
| 8 |
|----------|--------|-------------------|----------|
|
| 9 |
-
| **HuggingFace** | β
Running | `sam3acr4hf.azurecr.io` | https://
|
| 10 |
| **Azure AI Foundry** | β³ Pending GPU Quota | `sam3acr.azurecr.io` | To be deployed |
|
| 11 |
|
| 12 |
Both deployments use the **same Docker image** with SAM3Model for static image segmentation.
|
|
@@ -275,7 +275,7 @@ def test_endpoint(name, url, api_key=None):
|
|
| 275 |
# Test HuggingFace
|
| 276 |
test_endpoint(
|
| 277 |
"HuggingFace",
|
| 278 |
-
"https://
|
| 279 |
)
|
| 280 |
|
| 281 |
# Test Azure AI Foundry (when deployed)
|
|
|
|
| 6 |
|
| 7 |
| Platform | Status | Container Registry | Endpoint |
|
| 8 |
|----------|--------|-------------------|----------|
|
| 9 |
+
| **HuggingFace** | β
Running | `sam3acr4hf.azurecr.io` | https://p6irm2x7y9mwp4l4.us-east-1.aws.endpoints.huggingface.cloud |
|
| 10 |
| **Azure AI Foundry** | β³ Pending GPU Quota | `sam3acr.azurecr.io` | To be deployed |
|
| 11 |
|
| 12 |
Both deployments use the **same Docker image** with SAM3Model for static image segmentation.
|
|
|
|
| 275 |
# Test HuggingFace
|
| 276 |
test_endpoint(
|
| 277 |
"HuggingFace",
|
| 278 |
+
"https://p6irm2x7y9mwp4l4.us-east-1.aws.endpoints.huggingface.cloud"
|
| 279 |
)
|
| 280 |
|
| 281 |
# Test Azure AI Foundry (when deployed)
|
scripts/deploy_all.sh
CHANGED
|
@@ -132,7 +132,7 @@ if [ "$DEPLOY_HF" = true ]; then
|
|
| 132 |
echo -e "${GREEN}β
HuggingFace:${NC}"
|
| 133 |
echo " Registry: ${HF_REGISTRY}"
|
| 134 |
echo " Image: ${HF_IMAGE}"
|
| 135 |
-
echo " Endpoint: https://
|
| 136 |
echo ""
|
| 137 |
echo " Restart endpoint with:"
|
| 138 |
echo " python3 -c 'from huggingface_hub import HfApi; api = HfApi(); e = api.get_inference_endpoint(\"sam3-segmentation\", namespace=\"Logiroad\"); e.pause(); e.resume()'"
|
|
|
|
| 132 |
echo -e "${GREEN}β
HuggingFace:${NC}"
|
| 133 |
echo " Registry: ${HF_REGISTRY}"
|
| 134 |
echo " Image: ${HF_IMAGE}"
|
| 135 |
+
echo " Endpoint: https://p6irm2x7y9mwp4l4.us-east-1.aws.endpoints.huggingface.cloud"
|
| 136 |
echo ""
|
| 137 |
echo " Restart endpoint with:"
|
| 138 |
echo " python3 -c 'from huggingface_hub import HfApi; api = HfApi(); e = api.get_inference_endpoint(\"sam3-segmentation\", namespace=\"Logiroad\"); e.pause(); e.resume()'"
|
scripts/test/test_api.py
CHANGED
|
@@ -7,7 +7,7 @@ import requests
|
|
| 7 |
import base64
|
| 8 |
import sys
|
| 9 |
|
| 10 |
-
ENDPOINT_URL = "https://
|
| 11 |
|
| 12 |
def test_health():
|
| 13 |
"""Test health endpoint"""
|
|
|
|
| 7 |
import base64
|
| 8 |
import sys
|
| 9 |
|
| 10 |
+
ENDPOINT_URL = "https://p6irm2x7y9mwp4l4.us-east-1.aws.endpoints.huggingface.cloud"
|
| 11 |
|
| 12 |
def test_health():
|
| 13 |
"""Test health endpoint"""
|