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