File size: 1,093 Bytes
8e1a029
 
 
 
 
 
 
 
6fc464e
 
8e1a029
6fc464e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
license: mit
sdk: docker
title: Lang-SAM Deployment
colorFrom: blue
pinned: false
short_description: 'Contains endpoints for Lang-SAM (Language-Segment Anything) '
---
# Lang-SAM Deployment

Contains deployment of the Lang-SAM (Language-Segment Anything) model along with SAM2 for advanced image segmentation capabilities. The project provides a FastAPI backend with a web interface for easy interaction.

## Features

- Language-guided image segmentation using Lang-SAM
- Advanced segmentation capabilities with SAM2
- FastAPI backend with CORS support
- OpenAI integration for product name processing

## API Endpoints

- `GET /`: Health check endpoint
- `POST /segment/langsam`: Image segmentation endpoint. Accepts Image URL and text input (product name).
- `POST /segment/sam2`: Image segmentation endpoint. Accepts Image and point input from the UI.
- `POST /openai/chat`: Product name processing endpoint


- Lang-SAM: [GitHub Repository](https://github.com/luca-medeiros/lang-segment-anything)
- SAM2: [Original Implementation](https://github.com/facebookresearch/segment-anything)