Upload folder using huggingface_hub
Browse filesFiles changed (12)
- .gitattributes+1
- HAM10000_metadata.csvAdded
- Oficial.tar.gzAdded+3
- Oficial_Mascaras.tar.gzAdded+3
- Oficial_Modelo1_Imagenes.tar.gzAdded+3
- Oficial_Modelo1_Segmentado.tar.gzAdded+3
- Oficial_Segmentado.tar.gzAdded+3
- Oficial_UNet_Segmentado.tar.gzAdded+3
- README.md+102-1
- hmnist_28_28_L.csvAdded+3
- hmnist_8_8_L.csvAdded
- hmnist_8_8_RGB.csvAdded
57 unmodified lines58596057 unmodified lines# Video files - compressed*.mp4 filter=lfs diff=lfs merge=lfs -text*.webm filter=lfs diff=lfs merge=lfs -text57 unmodified lines5859606157 unmodified lines# Video files - compressed*.mp4 filter=lfs diff=lfs merge=lfs -text*.webm filter=lfs diff=lfs merge=lfs -texthmnist_28_28_L.csv filter=lfs diff=lfs merge=lfs -text
123version https://git-lfs.github.com/spec/v1oid sha256:00159d5af98103e4d10996ecd5904e199fd89a6938a8cf5dce6db13505d203a0size 46760765123version https://git-lfs.github.com/spec/v1oid sha256:27e11682d3dcad3f91898a9d2178ee3de1121efc144fb847a84ee140714fc55asize 4226804123version https://git-lfs.github.com/spec/v1oid sha256:fbd6f0abc7a43ff50da8e75f0d616b0f5cc01227870741beea376d255cc5a088size 2773889771123version https://git-lfs.github.com/spec/v1oid sha256:859ac780fd4f8b38745f8af8dbcb4f46264683f12fe6dd1f9ca2026f342618f7size 7504746123version https://git-lfs.github.com/spec/v1oid sha256:6d1399e5dd52450267f6cdcb182fe3bb746894f4de79a39af4a2195b8e917fc4size 40502173123version https://git-lfs.github.com/spec/v1oid sha256:df7a77bc99e961fd9e59a9acf8d86e6ccd92bf69745ff112d3e5e865c163848asize 24531504123---license: mit---123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104---license: cc-by-nc-sa-4.0task_categories:- image-classification- image-segmentationtags:- medical- dermatology- skin-cancer- melanoma- bcc- ak- unet- ham10000size_categories:- 10K<n<100K---# IACancer - Skin Lesion Classification & Segmentation DatasetEste repositorio contiene conjuntos de datos para el entrenamiento, validación y evaluación de modelos de Deep Learning enfocados en la detección, clasificación y segmentación de lesiones cutáneas (cáncer de piel).## 📁 Estructura del RepositorioEl dataset está empaquetado en archivos comprimidos (`.tar.gz`) para una descarga rápida y eficiente, junto con los archivos de metadatos en formato `.csv` accesibles directamente:```textFernandoTerrazas/IACancer/├── README.md # Ficha técnica y documentación del dataset├── HAM10000_metadata.csv # Metadatos clínicos de HAM10000 (edad, sexo, diagnóstico, localización)├── hmnist_28_28_L.csv # Representaciones preprocesadas 28x28 escala de grises├── hmnist_8_8_RGB.csv # Representaciones preprocesadas 8x8 RGB├── hmnist_8_8_L.csv # Representaciones preprocesadas 8x8 escala de grises├── Oficial.tar.gz # Imágenes originales clasificadas por patología (AK, BCC, MEL)├── Oficial_Mascaras.tar.gz # Máscaras binarias asociadas a las imágenes originales├── Oficial_Segmentado.tar.gz # Imágenes segmentadas aplicando las máscaras├── Oficial_UNet_Segmentado.tar.gz # Segmentaciones generadas mediante modelo U-Net├── Oficial_Modelo1_Imagenes.tar.gz # Colección completa de imágenes HAM10000 (part_1 y part_2)└── Oficial_Modelo1_Segmentado.tar.gz # 10,015 máscaras de segmentación de lesiones HAM10000```---## 🏷️ Clases DiagnósticasPara los subconjuntos clasificados (`Oficial`, `Oficial_Mascaras`, `Oficial_Segmentado`, `Oficial_UNet_Segmentado`):| Etiqueta | Nombre Clínico | Descripción || :---: | :--- | :--- || **AK** | Queratosis Actínica / CEC in situ | Lesión premaligna común originada por daño solar acumulado. || **BCC** | Carcinoma Basocelular | El tipo más frecuente de cáncer de piel, de crecimiento lento. || **MEL** | Melanoma | Neoplasia maligna de melanocitos, de alto potencial metastásico. |---## 🚀 Cómo Descargar y Usar en Python### 1. Descargar y extraer un conjunto específico```pythonimport tarfilefrom huggingface_hub import hf_hub_download# Descargar el archivo comprimido deseadoarchive_path = hf_hub_download(repo_id="FernandoTerrazas/IACancer",filename="Oficial.tar.gz",repo_type="dataset")# Extraer el contenido en la carpeta local './data'with tarfile.open(archive_path, "r:gz") as tar:tar.extractall(path="./data")print("Dataset extraído exitosamente en ./data/Oficial")```### 2. Descargar todos los conjuntos del repositorio```pythonfrom huggingface_hub import snapshot_downloadimport tarfilefrom pathlib import Path# Descargar el repositorio completolocal_dir = Path("./downloaded_dataset")snapshot_download(repo_id="FernandoTerrazas/IACancer",repo_type="dataset",local_dir=local_dir)# Extraer todos los archivos .tar.gzfor tar_file in local_dir.glob("*.tar.gz"):print(f"Extrayendo {tar_file.name}...")with tarfile.open(tar_file, "r:gz") as tar:tar.extractall(path=local_dir)```---## 🔬 Citación y ReconocimientosEste conjunto incluye datos del repositorio **HAM10000** (*"Human Against Machine with 10000 training images"*):- Tschandl, P., Rosendahl, C. & Kittler, H. The HAM10000 dataset, a large collection of multi-source dermatoscopic images of common pigmented skin lesions. *Sci Data* 5, 180161 (2018). https://doi.org/10.1038/sdata.2018.161
123version https://git-lfs.github.com/spec/v1oid sha256:52aed5c673c906b8caff1c80a560541ca85ea315fa4baa41296b210576970eccsize 30807979.gitattributes+1
HAM10000_metadata.csvAdded
Oficial.tar.gzAdded+3
Oficial_Mascaras.tar.gzAdded+3
Oficial_Modelo1_Imagenes.tar.gzAdded+3
Oficial_Modelo1_Segmentado.tar.gzAdded+3
Oficial_Segmentado.tar.gzAdded+3
Oficial_UNet_Segmentado.tar.gzAdded+3
README.md+102-1
hmnist_28_28_L.csvAdded+3
hmnist_8_8_L.csvAdded
hmnist_8_8_RGB.csvAdded