Upload processor fe47e60 verified
Stuti Agarwal commited on
How to use C-Stuti/table-transformer-detection_10 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("object-detection", model="C-Stuti/table-transformer-detection_10") # Load model directly
from transformers import AutoImageProcessor, AutoModelForObjectDetection
processor = AutoImageProcessor.from_pretrained("C-Stuti/table-transformer-detection_10")
model = AutoModelForObjectDetection.from_pretrained("C-Stuti/table-transformer-detection_10", device_map="auto")