Instructions to use RationAI/LSP-DETR with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RationAI/LSP-DETR with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-segmentation", model="RationAI/LSP-DETR", trust_remote_code=True)# Load model directly from transformers import AutoModelForObjectDetection model = AutoModelForObjectDetection.from_pretrained("RationAI/LSP-DETR", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Upload processor
Browse files- processor.py +2 -0
- typing.py +1 -0
processor.py
CHANGED
|
@@ -1,5 +1,7 @@
|
|
| 1 |
from transformers import BaseImageProcessorFast
|
| 2 |
|
|
|
|
|
|
|
| 3 |
|
| 4 |
class LSPDetrImageProcessor(BaseImageProcessorFast):
|
| 5 |
def post_process(self):
|
|
|
|
| 1 |
from transformers import BaseImageProcessorFast
|
| 2 |
|
| 3 |
+
from .typing import A
|
| 4 |
+
|
| 5 |
|
| 6 |
class LSPDetrImageProcessor(BaseImageProcessorFast):
|
| 7 |
def post_process(self):
|
typing.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
type A = int
|