Hard Hat Detection
Collection
3 items โข Updated
How to use uisikdag/detr-resnet-50-hardhat-detection with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("object-detection", model="uisikdag/detr-resnet-50-hardhat-detection") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoImageProcessor, AutoModelForObjectDetection
processor = AutoImageProcessor.from_pretrained("uisikdag/detr-resnet-50-hardhat-detection")
model = AutoModelForObjectDetection.from_pretrained("uisikdag/detr-resnet-50-hardhat-detection", device_map="auto")No model card