뇌종양 데이터셋
Ultralytics 뇌종양 데이터셋은 MRI 및 CT 스캔에서 얻은 의료 이미지 1,116개(학습용 893개, 검증용 223개)로 구성된 객체 탐지 데이터셋입니다. 두 개의 클래스로 레이블링되어 있습니다: negative(종양 없음)과 positive(종양 있음). 이 데이터셋을 사용하면 컴퓨터 비전 모델을 학습해 스캔에서 뇌종양의 위치를 찾을 수 있으므로 조기 진단과 치료 계획 수립 등 의료 분야 애플리케이션을 지원합니다.
시청: Ultralytics YOLO26 및 Ultralytics Platform을 사용한 뇌종양 감지 | 객체 감지 🚀
데이터셋 구조#
뇌종양 데이터셋에는 brain-tumor.yaml 구성으로 정의된 두 가지 사전 정의된 하위 집합으로 나뉜 이미지 1,116개가 포함됩니다:
| 분할 | 이미지 | 어노테이션 |
|---|---|---|
| 학습 | 893 | 예 |
| 검증 | 223 | 예 |
각 이미지는 다음 두 클래스 중 하나로 레이블링됩니다:
negative: 뇌종양이 없는 이미지positive: 뇌종양이 보이는 이미지
처음 학습할 때 데이터셋(4.21 MB)이 Ultralytics GitHub 에셋에서 자동으로 다운로드되므로 수동 설정이 필요하지 않습니다.
Ultralytics Platform의 뇌종양 데이터셋을 살펴보며 어노테이션 오버레이가 포함된 이미지를 확인하고, Charts 탭에서 클래스 분포와 바운딩 박스 히트맵을 확인한 다음, 데이터셋을 복제해 클라우드에서 직접 모델을 학습하세요.
응용 분야#
컴퓨터 비전을 이용한 뇌종양 탐지는 조기 진단, 치료 계획 수립, 종양 진행 모니터링을 가능하게 합니다. MRI 또는 CT 스캔을 분석하는 탐지 모델은 종양 위치를 파악하여 시기적절한 의료 개입과 맞춤형 치료를 지원합니다.
의료 전문가는 이 기술을 다음과 같이 활용할 수 있습니다:
- 진단 시간을 줄이고 정확도를 높입니다
- 종양 위치를 정확히 찾아 수술 계획 수립을 지원합니다
- 시간 경과에 따른 치료 효과를 모니터링합니다
- 종양학 및 신경학 연구를 지원합니다
데이터셋 YAML#
YAML 파일은 경로, 클래스 및 기타 관련 정보를 포함한 데이터셋 구성을 정의합니다. 뇌종양 데이터셋의 경우 brain-tumor.yaml 파일은 https://github.com/ultralytics/ultralytics/blob/main/ultralytics/cfg/datasets/brain-tumor.yaml에 유지 관리됩니다.
# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license
# Brain-tumor dataset by Ultralytics
# Documentation: https://docs.ultralytics.com/datasets/detect/brain-tumor
# Example usage: yolo train data=brain-tumor.yaml
# parent
# ├── ultralytics
# └── datasets
# └── brain-tumor ← downloads here (4.21 MB)
# Train/val/test sets as 1) dir: path/to/imgs, 2) file: path/to/imgs.txt, or 3) list: [path/to/imgs1, path/to/imgs2, ..]
path: brain-tumor # dataset root dir
train: images/train # train images (relative to 'path') 893 images
val: images/val # val images (relative to 'path') 223 images
# Classes
names:
0: negative
1: positive
# Download script/URL (optional)
download: https://github.com/ultralytics/assets/releases/download/v0.0.0/brain-tumor.zip사용법#
아래 코드 조각을 사용하면 이미지 크기 640으로 뇌종양 데이터셋에서 100 에포크 동안 YOLO26n 모델을 학습할 수 있습니다.
from ultralytics import YOLO
# 모델 로드
model = YOLO("yolo26n.pt") # 사전 학습된 모델을 불러옵니다(학습에 권장).
# 모델 학습
results = model.train(data="brain-tumor.yaml", epochs=100, imgsz=640)from ultralytics import YOLO
# 모델 로드
model = YOLO("path/to/best.pt") # 뇌종양 데이터셋으로 미세 조정된 모델 로드
# 모델을 사용한 추론
results = model.predict("https://ultralytics.com/assets/brain-tumor-sample.jpg")샘플 이미지 및 어노테이션#
뇌종양 데이터셋에는 종양이 있는 뇌와 없는 뇌의 MRI 및 CT 스캔이 포함됩니다. 아래는 어노테이션이 포함된 데이터셋 이미지 예시입니다.

- 모자이크 이미지: 이 학습 배치에는 모자이크 처리된 데이터셋 이미지가 포함되어 있습니다. 모자이크 처리는 학습 중 여러 이미지를 하나로 결합합니다. 이를 통해 배치 다양성이 높아져 모델이 의료 이미지 분석에서 다양한 종양 크기, 모양, 위치에 더 잘 일반화됩니다.
인용 및 감사의 글#
데이터셋은 AGPL-3.0 라이선스에 따라 제공됩니다.
연구 또는 개발에 이 데이터셋을 사용하는 경우 적절히 인용해 주세요:
@dataset{Ultralytics_Brain_Tumor_Dataset_2023,
author = {Ultralytics},
title = {Brain Tumor Detection Dataset},
year = {2023},
publisher = {Ultralytics},
url = {https://docs.ultralytics.com/datasets/detect/brain-tumor}
}자주 묻는 질문#
뇌종양 데이터셋은 이미지 1,116개를 두 개의 하위 집합으로 나눕니다. 학습 세트에는 이미지 893개, 검증 세트에는 이미지 223개가 있으며 각 이미지에는 짝을 이루는 어노테이션이 있습니다. 이러한 구조화된 분할은 뇌종양 탐지를 위한 견고하고 정확한 컴퓨터 비전 모델 개발을 지원합니다. 자세한 내용은 데이터셋 구조 섹션을 참조하세요.
뇌종양 데이터셋에는
negative(뇌종양이 없는 이미지)과positive(뇌종양이 보이는 이미지)의 두 클래스가 있습니다. 이진 레이블링을 통해 탐지 모델은 종양의 위치를 찾고 종양이 없는 스캔도 표시할 수 있습니다.뇌종양 데이터셋(4.21 MB)은
data="brain-tumor.yaml"으로 처음 학습할 때 Ultralytics GitHub 에셋에서 자동으로 다운로드되므로 수동 다운로드가 필요하지 않습니다. 탐지 데이터셋 개요에서 관련 데이터셋을 둘러볼 수 있습니다.Python과 CLI 방식을 모두 사용하여 이미지 크기 640px로 100 에포크 동안 뇌종양 데이터셋에서 YOLO26 모델을 학습할 수 있습니다. 다음은 두 방식의 예제입니다:
학습 예제from ultralytics import YOLO # 모델 로드 model = YOLO("yolo26n.pt") # 사전 학습된 모델을 불러옵니다(학습에 권장). # 모델 학습 results = model.train(data="brain-tumor.yaml", epochs=100, imgsz=640)사용 가능한 인수의 자세한 목록은 학습 페이지를 참조하세요.
AI 프로젝트에서 뇌종양 데이터셋을 사용하면 뇌종양의 조기 진단과 치료 계획 수립을 지원할 수 있습니다. 컴퓨터 비전을 통한 뇌종양 식별 자동화를 통해 정확하고 시기적절한 의료 개입을 촉진하고 맞춤형 치료 전략을 지원합니다. 이를 통해 환자의 치료 결과와 임상 효율성을 개선할 수 있습니다.
미세 조정된 YOLO26 모델을 사용한 추론은 Python 또는 CLI 방식으로 수행할 수 있습니다. 다음은 예제입니다:
추론 예제from ultralytics import YOLO # 모델 로드 model = YOLO("path/to/best.pt") # 뇌종양 데이터셋으로 미세 조정된 모델 로드 # 모델을 사용한 추론 results = model.predict("https://ultralytics.com/assets/brain-tumor-sample.jpg")뇌종양 데이터셋의 YAML 구성 파일은 brain-tumor.yaml에서 확인할 수 있습니다. 이 파일에는 해당 데이터셋으로 모델을 학습하고 평가하는 데 필요한 경로, 클래스 및 추가 관련 정보가 포함되어 있습니다.
댓글11
질문을 하거나 결과를 공유하거나 다른 사람을 도와주세요.
ZoltinZyc
how can i download this datasett??
1
Paula DerrengerUltralytics(수정됨)Hey there! 😊 The easiest way is to train with
data=brain-tumor.yaml, which downloads the dataset automatically the first time. To download it manually, use:wget https://github.com/ultralytics/assets/releases/download/v0.0.0/brain-tumor.zip unzip brain-tumor.zip -d path/to/destinationReplace
path/to/destinationwith the directory where you'd like the dataset stored. Once you have the dataset, you're all set to start training or inferencing with YOLO models on brain tumor images!Should you need further guidance, feel free to ask. Happy coding! 🚀
G-qingqian
Thank you for your reply. I noticed that in the original dataset, the images in the train folder do have ID prefixes, but the images in the val folder are all prefixed with val1_, making it impossible to distinguish which patient the data belongs to. Therefore, I cannot redivide the dataset. Could you please provide data with complete identifiers? ---- Replied Message ---- FromGlenn @.>Date1/18/2026 @.>@.>, @.>SubjectRe: [ultralytics/ultralytics] zh/datasets/detect/brain-tumor/ (Discussion #9988) The packaged brain-tumor dataset split is provided at the image-folder level and doesn’t ship patient IDs/metadata, so we can’t guarantee a patient-disjoint (no same patient in both train/val) split; if you need patient-wise separation, you’ll need to rebuild the split from patient identifiers and point a custom YAML to *.txt image lists (supported by Ultralytics YOLO), e.g. see the provided config in the Brain Tumor dataset docs and the brain-tumor.yaml in the repo.
my-brain-tumor.yaml path: /data/brain-tumor train: splits/train.txt # one image path per line (ideally grouped by patient ID when you create it) val: splits/val.txt names: 0: negative 1: positive
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>
Glenn JocherUltralyticsThe packaged
brain-tumorzip only includes image-level labels with anonymized filenames (no patient IDs/metadata), so we can’t provide “complete identifiers” or guarantee a patient-disjoint re-split; for patient-wise splitting you’ll need to rebuild from a source that includes patient IDs (e.g., your DICOM/NIfTI originals) and then generatetrain.txt/val.txt, and if you just need stronger evaluation without IDs you can use our K-Fold Cross Validation guide—please keep follow-ups here in the GitHub discussion (we can’t provide support over email/DM).
G-qingqian
Can your dataset ensure that the data are independently and identically distributed by patient? That is, there will be no data from the same patient in both the training set and the validation set.
Glenn JocherUltralyticsThe packaged
brain-tumordataset split is provided at the image-folder level and doesn’t ship patient IDs/metadata, so we can’t guarantee a patient-disjoint (no same patient in both train/val) split; if you need patient-wise separation, you’ll need to rebuild the split from patient identifiers and point a custom YAML to*.txtimage lists (supported by Ultralytics YOLO), e.g. see the provided config in the Brain Tumor dataset docs and the brain-tumor.yaml in the repo.# my-brain-tumor.yaml path: /data/brain-tumor train: splits/train.txt # one image path per line (ideally grouped by patient ID when you create it) val: splits/val.txt names: 0: negative 1: positive
pizzas17
How could I download this dataset on COCO format or how could I convert it? (Since I wish to have an EDA on it
xySun17
How can i train the yoloV8 using this dataset without loading the pre-trained weights?
Paula DerrengerUltralytics(수정됨)@xySun17 hello!
To train YOLO26 without loading the pre-trained weights, you can initialize the model from scratch by specifying the model architecture file (e.g.,
yolo26n.yaml) instead of the pre-trained weights file. Here’s how you can do it:Python
from ultralytics import YOLO # Load a model architecture without pre-trained weights model = YOLO("yolo26n.yaml") # build a new model from YAML # Train the model results = model.train(data="brain-tumor.yaml", epochs=100, imgsz=640)CLI
# Train from scratch using the model architecture file yolo detect train data=brain-tumor.yaml model=yolo26n.yaml epochs=100 imgsz=640This approach ensures that the model starts training with random weights rather than pre-trained ones. If you encounter any issues, please ensure you are using the latest version of the Ultralytics package and provide a minimum reproducible example if the problem persists. You can find more details on creating a reproducible example here.
Feel free to reach out if you have any further questions. Happy training! 🚀
1xySun17
Thank you!! However, there is another problem, that is, why it says the path of dataset is not found? I already downloaded the dataset files and changed the path in "brain-tumor.yaml" file.
The threw error was follows: "Dataset 'brain-tumor.yaml' images not found ⚠️, missing path '/valid/images' Note dataset download directory is '/home/ros/datasets'. You can update this in '/home/ros/.config/Ultralytics/settings.yaml'"
Paula DerrengerUltralytics(수정됨)Hello @xySun17,
Thank you for reaching out! It looks like the issue might be related to the dataset path configuration in your
brain-tumor.yamlfile. Here are a few steps to troubleshoot and resolve this:-
Verify Dataset Path: Ensure that the paths specified in your
brain-tumor.yamlfile correctly point to the locations of your dataset images. For example:path: /home/ros/datasets/brain-tumor train: images/train val: images/val -
Check Directory Structure: Confirm that the directory structure matches what is specified in the YAML file. The
images/trainandimages/valdirectories should exist within/home/ros/datasets/brain-tumor. -
Update Configuration: If the dataset is located in a different directory, update the
pathin the YAML file accordingly. For instance, if your dataset is in/home/ros/my-datasets/brain-tumor, update thepathto:path: /home/ros/my-datasets/brain-tumor -
Reproducible Example: If the issue persists, providing a minimum reproducible example can greatly help in diagnosing the problem. You can find guidance on creating a reproducible example here.
-
Latest Version: Ensure you are using the latest version of the Ultralytics package. You can update it using:
pip install --upgrade ultralytics
Here’s an example of how your
brain-tumor.yamlshould look:# Ultralytics 🚀 AGPL-3.0 License - https://ultralytics.com/license # Brain-tumor dataset by Ultralytics # Documentation: https://docs.ultralytics.com/datasets/detect/brain-tumor/ # Example usage: yolo train data=brain-tumor.yaml path: /home/ros/datasets/brain-tumor # dataset root dir train: images/train # train images (relative to 'path') val: images/val # val images (relative to 'path') # Classes names: 0: negative 1: positive # Download script/URL (optional) download: https://github.com/ultralytics/assets/releases/download/v0.0.0/brain-tumor.zipIf you follow these steps and still encounter issues, please share more details or any error messages you receive. This will help us assist you better.
Best regards and happy coding! 🚀
-



