Francesco/brain-tumor-m2pbp
Viewer โข Updated โข 9.9k โข 233 โข 3
How to use Aryan-401/tumor-detect-yolo-small with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("object-detection", model="Aryan-401/tumor-detect-yolo-small") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoImageProcessor, AutoModelForObjectDetection
processor = AutoImageProcessor.from_pretrained("Aryan-401/tumor-detect-yolo-small")
model = AutoModelForObjectDetection.from_pretrained("Aryan-401/tumor-detect-yolo-small", device_map="auto")Base model
hustvl/yolos-small