Cancer-Net SCa-Synth
该数据集是一个包含10,000张合成二维皮肤病变图像的数据集,图像模态为医学影像,数据通过Stable Diffusion模型和DreamBooth训练器生成,均匀覆盖良性和恶性皮肤癌类别,主要用于皮肤癌分类研究,旨在通过平衡的合成数据提升机器学习模型在皮肤癌检测中的性能与泛化能力。
基本信息
资源简介
Cancer-Net SCa-Synth是由滑铁卢大学开发的公开合成二维皮肤病变数据集,专门用于皮肤癌分类研究。该数据集包含10,000张合成图像,均匀分布在良性和恶性皮肤癌病例中,各5,000张。数据通过Stable Diffusion模型和DreamBooth训练器生成,使用300张良性皮肤癌图像和300张恶性皮肤癌图像作为训练基础,旨在解决现有真实数据集中常见的类别不平衡问题。该数据集主要应用于皮肤癌的快速准确检测,支持机器学习模型在医学图像分析领域的性能提升与算法验证。
下载信息
注册下载
Tips: 该数据集需要在对应的数据源网站注册通过后,才能进行数据下载,注册有对应要求,或者需要收费。
暂未开放公开下载
Tips: 该数据集属于公开下载,应该可以免费公开下载。
免登录有偿下载
Tips: 该数据集 Qianfanghub 可以协助提供有偿下载服务,注意,服务不针对数据相关产权,只是技术服务费。
提供高速下载与技术交付服务(收技术服务费,非数据销售)
暂未开放千方医数集,医疗数据集部分,是为社区服务的公开医疗数据集搜索引擎,并不存储或者下载原始的任何数据。 如果您有其他医疗数据需求,可以和客服联系,或者下工单。我们有强大的三甲医疗机构帮助您提供个性化的医疗数据定制、采集、标注服务。
使用方式
数据集获取
git clone https://github.com/catai9/Cancer-Net-SCa-Synth.git
curl -L -o repo.zip https://github.com/catai9/Cancer-Net-SCa-Synth/archive/refs/heads/main.zip
unzip repo.zip
源站 README 摘录(使用方式)
Cancer-Net-SCa-Synth
This is the repo containing scripts and utilities for generating images of benign and malignant skin lesions using the Stable Diffusion model with DreamBooth. The latest version producing the best results uses scripts from HuggingFace which are licensed under the Apache 2.0 license (as of 2024-05-26).
Project structure
.
├── data # Training data, recommend symlinking
│ ├── jpeg # JPEG images
│ │ ├── test # Test set
│ │ └── train # Training set
│ ├── test.csv # Metadata CSV for test set
│ └── train.csv # Metadata CSV for training set
├── src # Python source code
│ └── create_training_dataset.py # Script to generate folder of images for training SD using DreamBooth trainer
│ └── train_dreambooth.py # HuggingFace Python script for training SD using DreamBooth trainer
│ └── generate_images.py # Generate images using the trained SD with DreamBooth trainer
│ └── create_generated_csv_file.py # Create a csv file for the generated images
│ └── prepreprocess_data.py # Preprocess data for model training
│ └── train_mobilenetv2_model.py # Train MobileNetV2 model
# Misc individual files
├── requirements.txt
└── README.md
Setup
The following setup should be done on a machine with a Nvidia GPU.
- Download/prepare the ISIC 2020 skin lesion dataset
The dataset can be downloaded here.
To download from Kaggle:
kaggle competitions download -c siim-isic-melanoma-classification # Need Kaggle CLI installed
then unzip the file and create a symlink to the folder under the name data/ in the project root:
ln -s <downloaded folder> data
- Create a directory containing the desired training instances. A helper script can be used to generate this directory, sampling random benign/malignant images as follows:
python src/create_training_dataset.py \
malignant \
source_csv data/train.csv \
source_dir data/jpeg/train \
target_dir data/generated/train-malignant \
subset_size 300
python src/create_training_dataset.py \
benign \
source_csv data/train.csv \
source_dir data/jpeg/train \
target_dir data/generated/train-benign \
subset_size 300
Please run python src/create_training_dataset.py -h for more information on the script usage and available flags.
数据加载示例(图像类)
from PIL import Image
import glob, os
files = (glob.glob(os.path.join(path, "**", "*.png"), recursive=True)
+ glob.glob(os.path.join(path, "**", "*.jpg"), recursive=True)
+ glob.glob(os.path.join(path, "**", "*.tif"), recursive=True))
print("图像文件数:", len(files))
img = Image.open(files[0]); print("尺寸/模式:", img.size, img.mode)
# torchvision Dataset 方式:
# from torchvision import datasets
# ds = datasets.ImageFolder(path) # 要求 子目录=类别
目录组织与标注格式以源站说明和下载后实际文件为准。
精度瓶颈?数据缺失?
当前公开数据无法满足您的算法精度?千方提供针对 皮肤癌 的高质量、多模态真实临床数据定制解决方案。




