Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MrSyee/SAM-remove-background
/ functions
Functions
13 in github.com/MrSyee/SAM-remove-background
⨍
Functions
13
◇
Types & classes
2
↳
Endpoints
2
↓ 3 callers
Method
run
( self, file: UploadFile, inference_params: Dict[str, Any] )
src/server/tasks/sam.py:36
↓ 2 callers
Function
get_logger
Get logger.
src/server/utils/logger.py:6
↓ 2 callers
Function
get_preprocess_shape
Compute the output size given input size and target long side length.
src/client/utils.py:4
↓ 1 callers
Function
extract_object
Extract object and remove background to inference model.
src/client/app.py:80
↓ 1 callers
Method
get_preprocess_shape
Compute the output size given input size and target long side length.
src/server/tasks/sam.py:108
↓ 1 callers
Method
postprocess
Postprocess the inference results for exporting as API response.
src/server/tasks/sam.py:98
↓ 1 callers
Method
preprocess
Preprocess image to input to encoder. Return: preprocessed: If longest size of target image is 1024,
src/server/tasks/sam.py:64
Method
__init__
(self, triton_client: grpcclient.InferenceServerClient)
src/server/tasks/sam.py:31
Function
create_image_embedding
Create image embedding using SAM encoder API.
src/server/main.py:37
Function
extract_object_by_event
Extract object by click event.
src/client/app.py:132
Function
get_coords
Get coords by click event.
src/client/app.py:140
Function
get_image_embedding
Get image embedding using API.
src/client/app.py:41
Function
healthcheck
Healthcheck.
src/server/main.py:31