Sam
            SamEmbeddingResponse
¶
    
              Bases: BaseModel
SAM embedding response.
Attributes:
| Name | Type | Description | 
|---|---|---|
embeddings | 
            
                  Union[List[List[List[List[float]]]], Any]
             | 
            
               The SAM embedding.  | 
          
time | 
            
                  float
             | 
            
               The time in seconds it took to produce the embeddings including preprocessing.  | 
          
Source code in inference/core/entities/responses/sam.py
                6 7 8 9 10 11 12 13 14 15 16 17 18 19 20  |  | 
            SamSegmentationResponse
¶
    
              Bases: BaseModel
SAM segmentation response.
Attributes:
| Name | Type | Description | 
|---|---|---|
masks | 
            
                  Union[List[List[List[int]]], Any]
             | 
            
               The set of output masks.  | 
          
low_res_masks | 
            
                  Union[List[List[List[int]]], Any]
             | 
            
               The set of output low-resolution masks.  | 
          
time | 
            
                  float
             | 
            
               The time in seconds it took to produce the segmentation including preprocessing.  | 
          
Source code in inference/core/entities/responses/sam.py
                23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40  |  |