How to use grays-ai/table-detection with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("object-detection", model="grays-ai/table-detection")
# Load model directly from transformers import AutoImageProcessor, AutoModelForObjectDetection processor = AutoImageProcessor.from_pretrained("grays-ai/table-detection") model = AutoModelForObjectDetection.from_pretrained("grays-ai/table-detection")