Ultralytics에서 지원하는 모델

Ultralytics는 다양한 모델을 지원하며, 각 모델은 객체 감지, 인스턴스 분할, 시맨틱 분할, 깊이 추정, 이미지 분류, 포즈 추정, 방향성 바운딩 박스와 같은 특정 작업에 맞게 설계되었습니다.

Ultralytics YOLO26 비교 그래프

새 프로젝트에는 YOLO26부터 시작하세요. 최신 Ultralytics 릴리스이며 7개 작업을 모두 지원하는 유일한 모델입니다. YOLO11은 성숙한 대안으로, 5개 작업 각각에 대해 사전 학습된 체크포인트를 제공합니다. 프롬프트 기반 분할(SAM 3), 오픈 보캐뷸러리 감지(YOLOE, YOLO-World) 또는 Transformer 감지기(RT-DETR가 필요한 경우에만 특화된 모델 제품군을 선택하세요.

YOLO27 — 출시 예정

YOLO27은 올해 후반 출시를 목표로 최종 R&D 단계에 있으며, 출시일은 정해지지 않았습니다. 아키텍처, 계획된 7개 작업, 예비 벤치마크를 미리 확인하세요. 모델 가중치와 패키지 지원은 아직 제공되지 않으므로, 현재 프로젝트에는 YOLO26을 사용하세요.

이 표에는 출시된 모델과 아키텍처 참조가 나와 있으며, 각 모델의 작업, 지원되는 train, val, predict, export 모드, 권장 사용 사례를 확인할 수 있습니다. Track은 별도로 표시하지 않습니다. Detect, Segment, Pose, OBB 모델에서는 predict 위에서 실행되며, SAM 2와 SAM 3은 자체 비디오 predictor를 통해 추적합니다. Benchmark도 별도로 표시하지 않습니다. 자체 지원을 추가하는 대신 여러 형식에 걸쳐 export와 val을 실행하기 때문입니다.

모델작업모드다음 용도에 적합합니다
YOLO26 🚀 신규감지, 분할, 시맨틱, 깊이, 분류, 포즈, OBB학습, 검증, 예측, 내보내기새 프로젝트: 선택적 NMS-free 추론, 엣지 최적화 배포, 가장 폭넓은 작업 지원
YOLO12감지, 분할, 분류, 포즈, OBB학습, 검증, 예측, 내보내기어텐션 중심의 커뮤니티 릴리스 벤치마킹; 사전 학습 가중치는 감지만 지원
YOLO11감지, 분할, 분류, 포즈, OBB학습, 검증, 예측, 내보내기지원하는 모든 작업에 사전 학습된 체크포인트를 제공하는 안정적인 프로덕션 워크로드
YOLOv10감지학습, 검증, 예측, 내보내기칭화대학교의 NMS-free 감지 연구
YOLOv9감지, 분할학습, 검증, 예측, 내보내기Ultralytics YOLOv5 코드베이스에 구현된 프로그래밍 가능 경사 정보(PGI)
YOLOv8감지, 분할, 분류, 포즈, OBB학습, 검증, 예측, 내보내기기존 YOLOv8 파이프라인과 널리 구축된 서드파티 통합
YOLOv7감지예측업스트림에서 학습한 YOLOv7 내보내기 모델 실행: 패키지는 호환되는 ONNX 또는 TensorRT 모델로 예측하며, 네이티브 체크포인트로는 예측하지 않습니다.
YOLOv6감지학습, 검증, 예측, 내보내기YAML에서 Meituan의 아키텍처 학습; Ultralytics는 YOLOv6 .pt 체크포인트를 호스팅하지 않습니다.
YOLOv5감지학습, 검증, 예측, 내보내기기존 Ultralytics 프로젝트; 최신 릴리스는 업데이트된 YOLOv5u 체크포인트를 로드합니다.
YOLOv4없음없음아키텍처 참조 전용: Alexey Bochkovskiy의 Darknet 네이티브 모델은 패키지에서 지원되지 않습니다.
YOLOv3감지학습, 검증, 예측, 내보내기Joseph Redmon의 원래 아키텍처를 사용하는 기존 프로젝트; 최신 릴리스는 업데이트된 YOLOv3u 체크포인트를 로드합니다.
SAM 3 🚀 신규분할예측텍스트 또는 이미지 예시를 바탕으로 이미지와 동영상에서 개념을 프롬프트 기반으로 분할하는 Meta의 기술입니다. sam3.pt 및 SAM 3.1 sam3.1_multiplex.pt(이미지)을 사용하려면 Hugging Face에서 액세스 승인을 받아야 합니다.
SAM 2분할예측동영상 프레임 전반에 걸쳐 객체를 추적하는 Meta의 프롬프트 기반 분할 기술
SAM분할예측자동 어노테이션을 포함하는 Meta의 기존 프롬프트 기반 분할 기술
MobileSAM분할예측모바일 및 기타 리소스 제약 기기에서의 프롬프트 기반 분할(경희대학교)
FastSAM분할검증, 예측, 내보내기SAM 지연 시간이 병목일 때 사용하는 CNN 기반 프롬프트 분할(중국과학원)
YOLO-NAS감지검증, 예측, 내보내기추론 및 내보내기에 사용할 수 있도록 유지되는 Deci의 NAS 최적화 감지기; NVIDIA 인수 이후 Deci는 더 이상 이를 유지 관리하지 않습니다.
RT-DETR감지학습, 검증, 예측, 내보내기Baidu의 실시간 DETR 감지기: 하이브리드 Transformer 인코더를 갖춘 합성곱 백본
YOLO-World감지학습, 검증, 예측, 내보내기텍스트 프롬프트를 이용한 오픈 보캐뷸러리 감지(Tencent AI Lab); 내보내려면 -worldv2 체크포인트가 필요합니다.
YOLOE감지, 분할학습, 검증, 예측, 내보내기텍스트, 시각 정보 또는 프롬프트 없는 추론을 사용한 오픈 보캐뷸러리 감지 및 분할
대규모 언어 모델

Ultralytics는 텍스트와 이미지를 이해하기 위한 대규모 언어 및 비전 언어 모델에 OpenAI 호환 인터페이스를 제공하는 LLM도 함께 제공합니다. LLM 자체 작업이나 모드는 없으므로 위 표에는 포함되지 않지만, 모든 YOLO 파이프라인과 연동되며 OpenAI 및 다른 클라우드 공급자나 완전히 로컬인 온프레미스 서버에서 실행됩니다.



시청: 몇 줄의 코드만으로 Ultralytics YOLO 모델을 실행합니다.

시작하기: 사용 예제#

아래 예제에서는 간단한 YOLO 학습과 추론을 보여줍니다.

아래 예제에서는 COCO로 사전 학습된 YOLO26n 모델을 사용해 객체 감지를 수행하고, COCO8 예제 데이터셋으로 학습합니다. 위에 나열된 Segment, Semantic, Depth, Classify, Pose 및 OBB 작업에도 동일한 API를 적용할 수 있습니다.

예제

PyTorch 사전 학습된 *.pt 모델을 YOLO(), SAM(), NAS(), RTDETR() 클래스에 전달하여 Python에서 모델 인스턴스를 생성할 수 있습니다(YOLO() 및 RTDETR()도 *.yaml 구성 파일을 허용합니다).

from ultralytics import YOLO

# COCO로 사전 학습된 YOLO26n 모델을 불러옵니다
model = YOLO("yolo26n.pt")

# 모델 정보 표시(선택 사항)
model.info()

# COCO8 예제 데이터셋으로 100 에포크 동안 모델 학습
results = model.train(data="coco8.yaml", epochs=100, imgsz=640)

# 'bus.jpg' 이미지에서 YOLO26n 모델로 추론을 실행합니다
results = model("path/to/bus.jpg")

새 모델 기여하기#

Ultralytics는 새로운 모델의 기여를 환영합니다. 모델을 추가하려면 다음을 수행하세요.

  1. 저장소 포크: 먼저 Ultralytics GitHub 저장소를 포크하세요.

  2. 포크 복제: 포크한 저장소를 로컬 머신에 복제하고 작업할 새 브랜치를 만드세요.

  3. 모델 구현: 기여 가이드에 명시된 코딩 표준과 지침에 따라 모델을 추가하세요.

  4. 철저한 테스트: 모델을 단독으로 테스트하고 전체 파이프라인의 일부로도 테스트하세요.

  5. Pull Request 생성: 모델이 만족스러운 상태가 되면 검토를 위해 메인 저장소에 pull request를 생성하세요.

  6. 코드 검토 및 병합: 검토 후 모델이 기준을 충족하면 메인 저장소에 병합됩니다.

자주 묻는 질문#

  • 최신 출시 Ultralytics YOLO 모델은 2026년 1월에 출시된 YOLO26입니다. YOLO26은 선택적으로 NMS가 필요 없는 엔드 투 엔드 추론을 지원하고, 엣지 배포에 최적화되어 있으며, 감지, 인스턴스 분할, 시맨틱 분할, 깊이 추정, 분류, 포즈 추정, OBB 및 오픈 보캐뷸러리 버전을 지원합니다. 안정적인 프로덕션 워크로드에는 YOLO26과 YOLO11 모두 권장되는 선택지입니다.

    YOLO27은 현재 최종 R&D 단계에 있는 차기 모델 제품군입니다. 아직 제공되지 않으며 출시일도 정해지지 않았습니다.

  • 몇 줄의 Python 코드 또는 단일 CLI 명령으로 사용자 지정 데이터에 YOLO 모델을 학습시킬 수 있습니다:

    예제
    from ultralytics import YOLO
    
    # YOLO 모델 로드
    model = YOLO("yolo26n.pt")  # 또는 다른 YOLO 모델
    
    # 사용자 지정 데이터셋으로 모델 학습
    results = model.train(data="custom_data.yaml", epochs=100, imgsz=640)

    자세한 지침은 Train 문서 페이지를 방문하세요.

  • Ultralytics는 YOLOv3, YOLOv5, YOLOv6, YOLOv8, YOLOv9, YOLOv10, YOLO11, YOLO12, YOLO26과 SAM 제품군(SAM 3, SAM 2, SAM, MobileSAM 및 FastSAM), YOLO-NAS, RT-DETR, YOLO-World, YOLOE를 기본적으로 지원합니다. 패키지는 YOLOv4 또는 YOLOv7용 가중치나 YAML을 제공하지 않습니다. YOLOv4는 아키텍처 참고 자료로만 문서화되어 있으며, YOLOv7은 내보낸 ONNX 또는 TensorRT 모델로 실행됩니다. 각 모델에서 사용할 수 있는 작업과 모드는 주요 모델을 참조하세요.

  • Ultralytics Platform은 데이터셋 어노테이션, YOLO 머신러닝 모델의 학습, 배포 및 관리를 위한 노코드 엔드투엔드 환경입니다. 클라우드 학습, 데이터셋 관리 기능과 초보자부터 숙련된 개발자까지 모두 사용할 수 있는 인터페이스를 제공합니다.

  • Ultralytics YOLO 모델은 객체 탐지, 인스턴스 분할, 시맨틱 분할, 깊이 추정, 분류, 포즈 추정, 회전 객체 탐지를 포함한 작업을 수행할 수 있습니다. 최신 모델인 YOLO26은 이 7개 작업 모두와 오픈 보캐뷸러리 탐지를 지원합니다.

댓글44

질문을 하거나 결과를 공유하거나 다른 사람을 도와주세요.

  1. Sudharsanam-1GitHub

    hello ! For detecting 31 Chinese symbols (16 true and 15 fake), how many classes should be used in the model? Is it more efficient to detect the true symbols using only true class , or should we also include the fake symbols as separate classes?

    1. Glenn JocherUltralytics(수정됨)

      Use as many classes as you need to distinguish at inference: if you only care about authenticity, train a 2‑class detector (“true”, “fake”); if you need per‑symbol IDs, use 31 classes (one per symbol)—explicitly labeling “fake” typically reduces false positives versus leaving them unlabeled; you can start with YOLO26 detect and your dataset YAML as usual:

      yolo detect train data=symbols.yaml model=yolo26s.pt imgsz=960 epochs=100

      Model overview and task setup are in the YOLO26 models documentation and the Detection task guide.

  2. Rohith-John-kctGitHub

    Hi. Could you please suggest which YOLO model works best for both detecting and segmenting 15 Chinese symbols? Also, how many images would be ideal to include in the dataset?

    1. Glenn JocherUltralytics(수정됨)

      Use a single Ultralytics YOLO26 Segment model—it outputs both boxes and masks—start with yolo26s-seg for a good speed/accuracy balance, and scale up to -m/-l if needed; for 15 symbols, begin with roughly 100–200 labeled images per class (2k–5k total instances) and increase until validation mAP stabilizes, and use a larger input size for small characters (e.g., imgsz=960–1280):

      yolo segment train data=your_symbols.yaml model=yolo26s-seg.pt imgsz=960 epochs=100

      Model details: see the YOLO26 overview in the YOLO26 models documentation; segmentation specifics and best practices are in the Instance Segmentation task guide.

  3. Ranjith3436GitHub

    Hi Guys!, Could you please clarify how you select best.pt ? what is the parameter use for that? how early Stop works? sometime val/loss is going to high but earlystop doesn't stop training for classification?

    1. Glenn JocherUltralytics(수정됨)

      best.pt is the epoch with the highest validation “fitness” metric; for detection it’s mAP50-95 (seg and pose add their mask/keypoint mAP50-95), for classification it’s the mean of top‑1 and top‑5 accuracy, and Early Stop watches the same fitness (not val_loss) and stops after patience epochs without improvement (set via patience). Rising val_loss won’t trigger stopping if that fitness is still improving; see how fitness/metrics are computed in the Insights on Model Evaluation and Fine-Tuning guide: https://docs.ultralytics.com/guides/model-evaluation-insights/.

    1. Glenn JocherUltralytics(수정됨)

      Ultralytics supports the original RT-DETR models (rtdetr-l and rtdetr-x) for training, validation, prediction and export, but RT-DETRv2 weights and architecture are not integrated. See the RT-DETR documentation for supported models and usage; for new projects, also consider YOLO26.

  4. matteobonaGitHub

    Hi, Is it possibile to use a yolo-pose model (with a custom dataset and training) to detect simultaneously a class of objects with keypoints inside and a different class with no keypoints?. For example I need to detect a football pitch with some keypoints inside of it and the football players as simple bounding boxes. Is there a way to use a unique model instead of using two separate models (yolo-pose + yolo-detect)? for example putting at 0 0 0 any keypoints related to the players (but I think that this solution may confuse the model during the training)

    1. Glenn JocherUltralytics

      Yes, you can train a single YOLO-pose model to detect both classes. For objects without keypoints (players), simply set all keypoint coordinates to zero in your dataset annotations. The model will learn to ignore these zero-value keypoints while still detecting bounding boxes for both classes. For implementation details, see the Pose Estimation task documentation on handling mixed annotations.

      This approach is efficient and avoids the complexity of running two separate models, though we recommend thorough validation to ensure keypoint absence doesn't degrade detection performance for non-keypoint classes.

  5. hemanthmandava945GitHub

    @glenn-jocher @pderrenger Car Segmentation on Reflectivity Images

    What I'm doing:

    Running inference with a pretrained YOLOv8 model to segment cars in the LiDAR reflectivity domain. Detection performance (bounding boxes) looks good, but the segmentation masks aren’t very accurate. The problem:

    When I project these predicted masks onto the 3D point cloud, I see a lot of misclassified points (points that are not actually part of the car end up being labeled as car). These noisy masks reduce the accuracy of any downstream tasks that rely on correct 3D segmentation. Question:

    Has anyone else dealt with similar mask inaccuracy issues when segmenting LiDAR-based 2D images? Are there recommended strategies to improve segmentation masks on reflectivity images? (e.g., domain-specific data augmentation, fine-tuning from a LiDAR-focused checkpoint, multi-modal approaches, etc.)

    Pallet Detection on Reflectivity Images

    What I'm planning:

    Train YOLOv8 to detect pallets in LiDAR reflectivity images (again, 512×128, single channel). Pallets appear relatively small in these images. Potential multi-modal approach:

    Considering combining RGB camera images with LiDAR reflectivity data in the training set (even though the reflectivity images look more like grayscale). My concern: Will mixing these modalities confuse the model or help it? Pallets are already small in lidar images, and might be even harder to identify in reflectivity data. Questions:

    Is it advisable to train on both RGB and reflectivity images at once, or should I keep them separate? Does anyone have experience or tips on multi-modal YOLO training (camera + LiDAR reflectivity)? If combining them is possible, any best practices for merging different modalities (e.g., input channels, data augmentation techniques, etc.)?

    Additional No response

    1. Glenn JocherUltralytics

      @hemanthmandava945 for segmentation mask inaccuracies in LiDAR reflectivity images, consider fine-tuning the pretrained YOLOv8 model on a domain-specific dataset with augmentations tailored for reflectivity images. For multi-modal training (RGB + reflectivity), it’s advisable to preprocess and align modalities carefully to avoid introducing noise. Experimenting with separate models or fusing features at specific layers during training can help. For more insights, refer to the YOLOv8 documentation. Let us know if you need further clarification!

    2. hemanthmandava945GitHub

      @glenn-jocher i want to train the model on to detect pallet in lidar reflectivity images.as the resolution of images is 512 * 128 and single channel(0 -255).my questions are? can is use pretrained model using transfer learning to train on custom data ? is it possible? 2.do i need to resize the image of my data set for training (640 * 640)? as i used to pretrained model to detect cars in lidar reflectivity images of resolution 1024 *128 it work perfectly fine. 3. for annotation in images as i only need to detect pallet is annotating pallet would enough?

    3. Glenn JocherUltralytics
      1. Yes, you can use a pretrained YOLO model and fine-tune it on your custom dataset for pallet detection.
      2. Resizing your dataset to match the model's input size (e.g., 640x640) is recommended for consistent results.
      3. Annotating only the pallets is sufficient if pallet detection is your sole objective.

      For training details, refer to the Ultralytics Train documentation. Let me know if you need further assistance!

    4. hemanthmandava945GitHub

      @glenn-jocher i am using yolov8x for car segmentation on lidar 2d reflective data,i got the following results: 0: 128x1024 11 cars, 4127.8ms Speed: 1.6ms preprocess, 4127.8ms inference, 221.6ms postprocess per image at shape (1, 3, 128, 1024) which actually performs well on lidar 2d data. But catch is when i am validating the model, i made annotaion of 50 images where it consist of cats and persons but i am getting poor results: Ultralytics 8.3.28 🚀 Python-3.10.12 torch-2.5.1+cu124 CPU (Intel Core(TM) i5-8265U 1.60GHz) val: Scanning /home/mandava/myenv/share/traffic-2/valid/labels.cache... 50 images, 0 backgrounds, 0 corrupt: 100%|██████████| 50/50 [00:00<?, ?it/s] Class Images Instances Box(P R mAP50 mAP50-95) Mask(P R mAP50 mAP50-95): 100%|██████████| 4/4 [04:16 all 50 491 0.00184 0.0148 0.00104 0.000264 0.00524 0.0426 0.00275 0.000623 person 50 473 0.00367 0.0296 0.00208 0.000528 0.00367 0.0296 0.00189 0.000525 bicycle 18 18 0 0 0 0 0.0068 0.0556 0.0036 0.00072 Speed: 4.3ms preprocess, 5012.5ms inference, 0.0ms loss, 3.5ms postprocess per image Results saved to runs/segment/val4 map50-95:0.0002641973106310545 i want to evaluate the model on lidar data and inference speed it taking , can you explain why i am getting the validation metrics very poor as i am getting prediction was good. here my yaml file: names:

      • car

      • person nc: 2 roboflow:

        version: 2 workspace: hemanthmandava test: ../test/images train: ../train/images val: ./valid/images

    5. Glenn JocherUltralytics

      Thank you for sharing these details. The poor validation metrics could stem from class mismatches (your YAML defines 2 classes but validation includes 'cats'), potential annotation format issues, or domain gap between training/validation data. For LiDAR-specific segmentation improvements, consider fine-tuning on domain-adapted data and verifying label consistency. More validation guidance can be found in our Val Mode documentation.

    6. hemanthmandava945GitHub(수정됨)

      @glenn-jocher could explain in more details, I am working with Ouster LiDAR reflectivity images and aiming to evaluate the inference speed and performance of pretrained YOLOv8, YOLOv9, and YOLOv11 models for instance segmentation. However, I am facing issues when using the YOLO validation function (val), even though the visual inspection of inference results looks good. note: the model or running on lidar video segmenting cars very well and tracking of masks also performs good

      My Understanding & Key Questions: Fine-Tuning vs. Direct Evaluation:

      I understand that fine-tuning means training a pretrained model on my dataset (LiDAR 2D images). However, my goal is to only validate the pretrained YOLO models without fine-tuning. Does the poor validation performance indicate a need for fine-tuning, or is it possible that the pretrained models just do not generalize well to my LiDAR images? Dataset & Annotation Format:

      I have 50 annotated images (no separate training set, only validation). The annotations are in YOLO format, where segmentation masks are represented as polygon coordinates normalized to image width and height. Example annotation: 0 0.478515625 0.4783950617283951 0.52734375 0.4783950617283951 0.52734375 0.6790123456790124 0.478515625 0.6790123456790124 Validation Issues:

      When I run YOLO inference, the visual results look reasonable, and the model seems to segment objects correctly. However, when using YOLO’s val function, the evaluation metrics are poor. What could be the reasons behind this discrepancy? Performance Metrics to Focus On:

      Since my goal is to compare YOLOv8, YOLOv9, and YOLOv11 on LiDAR reflectivity images in terms of inference speed and segmentation accuracy, what are the most relevant evaluation metrics I should consider? I am currently looking at: IoU (Intersection over Union) F1 score mAP (mean Average Precision) FPS (Frames Per Second) for inference speed Are there any specific metrics better suited for LiDAR-based segmentation? What strategies would you recommend for properly evaluating segmentation models on LiDAR images? Are there better methods to verify annotation alignment and ensure the YOLO val function produces meaningful results?

    7. Glenn JocherUltralytics

      Hi there! 👋 Your observed discrepancy between visual results and validation metrics likely stems from a domain gap between COCO-pretrained models (RGB images) and LiDAR reflectivity data (single-channel). Here's a concise breakdown:

      1. Domain Adaptation: Pretrained models struggle with LiDAR's unique characteristics. Fine-tuning (even briefly) on LiDAR data is strongly recommended (YOLO Train Docs)
      2. Annotation Verification: Use yolo val with plots=True to visualize predictions vs. ground truth. Check mask alignment in LiDAR coordinates
      3. Key Metrics: Focus on mAP50-95(M) for segmentation quality and FPS for speed. LiDAR-specific metrics like point-wise IoU could add value
      4. Quick Fix: Try converting LiDAR to 3-channel (replicate single channel) to better match pretrained weights

      For direct evaluation without fine-tuning, consider benchmarking against manually verified samples rather than relying solely on automated metrics. Our COCO-Seg validation example might help as reference. Let us know how it goes! 🚀

    8. hemanthmandava945GitHub

      @glenn-jocher Issue: When using YOLOv8 for instance segmentation, I’ve noticed that the predicted masks extend slightly beyond the true object boundaries. This results in overlapping masks when objects are close together and inaccurate measurements of object sizes and shapes.

      Observations:

      Oversized Masks: The masks often include extra pixels along the edges, sometimes producing “flat” boundaries—similar to known issues where masks align too closely with the bounding box edges. Overlap with Adjacent Objects: Due to these extra pixels, masks of nearby objects tend to merge or overlap, which is problematic for applications requiring precise segmentation as i am projecting in 3d some of pixels segmented car points where projected on other objects . Architectural Artifact: The issue appears inherent to the current segmentation head in YOLOv8, where the approximated boundaries may not capture fine details, especially for smaller objects.

      is it possible to reduce the size of the mask like getting 90% of mask, as i don't require the mask till the edge of the car. i can get major pixels of car.

    9. Glenn JocherUltralytics

      Thank you for sharing these details. For mask size reduction in YOLOv8 segmentation, you can post-process predictions by applying a mask confidence threshold and morphological erosion. Here's a minimal example to shrink masks:

      from ultralytics import YOLO
      import cv2
      
      model = YOLO('yolov8x-seg.pt')
      results = model(your_image)
      masks = results[0].masks.data.cpu().numpy()
      
      # Apply erosion to shrink masks
      kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE, (5,5))  # Adjust kernel size as needed
      eroded_masks = [cv2.erode(m, kernel) for m in masks]

      For better domain adaptation, consider fine-tuning the segmentation head on LiDAR data using our Train docs. The pretrained COCO weights may struggle with LiDAR's unique reflectance patterns.

  6. LiJiang97GitHub

    When using yolo11 for inference, what operations will the preprocessing process perform on the input image? Is it just scaling the image to 640? Which part is the operation file? Thank you

    1. Glenn JocherUltralytics(수정됨)

      @LiJiang97 the preprocessing for YOLO11 typically involves resizing the input image to the specified imgsz (default 640) while maintaining aspect ratio by padding as needed. These operations are handled internally in the Ultralytics framework. The resizing is done by LetterBox in ultralytics/data/augment.py, and BasePredictor.preprocess in ultralytics/engine/predictor.py converts BGR to RGB and scales pixel values to 0-1. Let us know if you need further assistance!

  7. ZelyanneGitHub

    Hello please, is there a way for making yolov11 to predict 2 class per detection so that when it fails to detect the first class , if the second class is detected it ll show it

    1. Glenn JocherUltralytics

      @Zelyanne thank you for your question. YOLO models are designed to predict a single class per object detection, but multi-class labeling per detection isn't natively supported. You could implement a custom post-processing step to assign secondary classes based on your criteria or train the model with augmented multi-label datasets. For advanced use cases like this, consider modifying the model or leveraging additional resources to meet your requirements.