123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679 |
- {
- "cells": [
- {
- "cell_type": "code",
- "execution_count": null,
- "id": "cd8aaf96",
- "metadata": {},
- "outputs": [],
- "source": [
- "!pip install pandas tqdm"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "id": "26bd5e25",
- "metadata": {
- "scrolled": true
- },
- "outputs": [],
- "source": [
- "!python3 main_manual.py --dataroot \"/home/feoktistovar67431/data/isbi2019\" --batch-size 32 --epochs 100 --seed 30042022 --device cuda --out results"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 55,
- "id": "b753e6b8",
- "metadata": {
- "scrolled": false
- },
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "Loading model\n",
- "Classifying\n",
- "59it [00:41, 1.43it/s] \n",
- "Positive: 1234\n",
- "Negative: 633\n",
- "AUC: 0.8797024225483345\n"
- ]
- }
- ],
- "source": [
- "!python3 submission.py --modelroot \"/home/feoktistovar67431/isbi2019cancer-master/results/20220216T154306Z.AZHL\" --dataroot \"/home/feoktistovar67431/data/isbi2019/CNMC/phase2\" --batch-size 32"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "id": "3246460b",
- "metadata": {},
- "outputs": [],
- "source": [
- "# TRAIN\n",
- "# dataset : CNMC\n",
- "# res : 32\n",
- "# epochs : 100\n",
- "!python3 main_manual.py --dataroot \"/home/feoktistovar67431/data/isbi2019/CNMC\" --batch-size 32 --epochs 100 --seed 30042022 --device cuda --out results --res 32"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "id": "8a953a39",
- "metadata": {},
- "outputs": [],
- "source": [
- "# TRAIN\n",
- "# dataset : CNMC\n",
- "# res : 128\n",
- "# epochs : 100\n",
- "!python3 main_manual.py --dataroot \"/home/feoktistovar67431/data/isbi2019/CNMC\" --batch-size 32 --epochs 100 --seed 30042022 --device cuda --out results --res 128"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "id": "12c15b33",
- "metadata": {},
- "outputs": [],
- "source": [
- "# TRAIN\n",
- "# dataset : CNMC\n",
- "# res : 224\n",
- "# epochs : 100\n",
- "!python3 main_manual.py --dataroot \"/home/feoktistovar67431/data/isbi2019/CNMC\" --batch-size 32 --epochs 100 --seed 30042022 --device cuda --out results --res 224"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "id": "08ba15b4",
- "metadata": {},
- "outputs": [],
- "source": [
- "# TRAIN\n",
- "# dataset : CNMC\n",
- "# res : 256\n",
- "# epochs : 100\n",
- "!python3 main_manual.py --dataroot \"/home/feoktistovar67431/data/isbi2019/CNMC\" --batch-size 32 --epochs 100 --seed 30042022 --device cuda --out results --res 256"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "id": "3cf25ec3",
- "metadata": {},
- "outputs": [],
- "source": [
- "# TRAIN\n",
- "# dataset : CNMC\n",
- "# res : 450\n",
- "# epochs : 100\n",
- "!python3 main_manual.py --dataroot \"/home/feoktistovar67431/data/isbi2019/CNMC\" --batch-size 32 --epochs 100 --seed 30042022 --device cuda --out results --res 450"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "id": "73b9d9d3",
- "metadata": {},
- "outputs": [],
- "source": [
- "# TRAIN\n",
- "# dataset : CNMC_Grayscale\n",
- "# res : 450\n",
- "# epochs : 100\n",
- "!python3 main_manual.py --dataroot \"/home/feoktistovar67431/data/isbi2019/CNMC_grayscale\" --batch-size 32 --epochs 100 --seed 30042022 --device cuda --out results --res 450"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "id": "ce16353c",
- "metadata": {},
- "outputs": [],
- "source": [
- "# TRAIN\n",
- "# dataset : CNMC_no_red\n",
- "# res : 450\n",
- "# epochs : 100\n",
- "!python3 main_manual.py --dataroot \"/home/feoktistovar67431/data/isbi2019/CNMC_no_red\" --batch-size 32 --epochs 100 --seed 30042022 --device cuda --out results --res 450"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "id": "959ab837",
- "metadata": {},
- "outputs": [],
- "source": [
- "# TRAIN\n",
- "# dataset : CNMC_no_green\n",
- "# res : 450\n",
- "# epochs : 100\n",
- "!python3 main_manual.py --dataroot \"/home/feoktistovar67431/data/isbi2019/CNMC_no_green\" --batch-size 32 --epochs 100 --seed 30042022 --device cuda --out results --res 450"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "id": "879beb46",
- "metadata": {},
- "outputs": [],
- "source": [
- "# TRAIN\n",
- "# dataset : CNMC_no_blue\n",
- "# res : 450\n",
- "# epochs : 100\n",
- "!python3 main_manual.py --dataroot \"/home/feoktistovar67431/data/isbi2019/CNMC_no_blue\" --batch-size 32 --epochs 100 --seed 30042022 --device cuda --out results --res 450"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "id": "6d545dce",
- "metadata": {},
- "outputs": [],
- "source": [
- "# TRAIN\n",
- "# dataset : CNMC_red_only\n",
- "# res : 450\n",
- "# epochs : 100\n",
- "!python3 main_manual.py --dataroot \"/home/feoktistovar67431/data/isbi2019/CNMC_red_only\" --batch-size 32 --epochs 100 --seed 30042022 --device cuda --out results --res 450"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "id": "25480226",
- "metadata": {},
- "outputs": [],
- "source": [
- "# TRAIN\n",
- "# dataset : CNMC_green_only\n",
- "# res : 450\n",
- "# epochs : 100\n",
- "!python3 main_manual.py --dataroot \"/home/feoktistovar67431/data/isbi2019/CNMC_green_only\" --batch-size 32 --epochs 100 --seed 30042022 --device cuda --out results --res 450"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "id": "a064d169",
- "metadata": {},
- "outputs": [],
- "source": [
- "# TRAIN\n",
- "# dataset : CNMC_blue_only\n",
- "# res : 450\n",
- "# epochs : 100\n",
- "!python3 main_manual.py --dataroot \"/home/feoktistovar67431/data/isbi2019/CNMC_blue_only\" --batch-size 32 --epochs 100 --seed 30042022 --device cuda --out results --res 450"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "id": "8d53828a",
- "metadata": {},
- "outputs": [],
- "source": [
- "# TRAIN\n",
- "# dataset : CNMC\n",
- "# res : 450\n",
- "# epochs : 100\n",
- "!python3 main_manual.py --dataroot \"/home/feoktistovar67431/data/isbi2019/CNMC\" --batch-size 32 --epochs 100 --seed 30042022 --device cuda --out results --res 450"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 183,
- "id": "ea9c2f23",
- "metadata": {},
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "PROPOSAL\n",
- "68.51\t83.57 ± 5.16\t89.61\n",
- "84.33\t89.06 ± 2.09\t92.95\n",
- "38.73\t73.26 ± 11.77\t84.72\n",
- "66.76\t83.35 ± 5.61\t89.57\n",
- "66.81\t83.36 ± 5.60\t89.55\n",
- "68.51\t83.57 ± 5.16\t89.61\n",
- "\n",
- "Figure(900x500)\n",
- "Figure(900x200)\n",
- "Figure(900x200)\n"
- ]
- }
- ],
- "source": [
- "# PLOT\n",
- "# dataset : CNMC\n",
- "# res : 450\n",
- "# epochs : 100\n",
- "!python3 plot.py"
- ]
- },
- {
- "cell_type": "markdown",
- "id": "8c92073d",
- "metadata": {},
- "source": [
- "# EVALUATION"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 135,
- "id": "b25a4267",
- "metadata": {
- "scrolled": false
- },
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "Loading model\n",
- "Classifying\n",
- "59it [00:05, 11.69it/s] \n",
- "Positive: 1425\n",
- "Negative: 442\n",
- "AUC: 0.6153299354864846\n"
- ]
- }
- ],
- "source": [
- "# EVALUATION \n",
- "# dataset : CNMC\n",
- "# res : 32\n",
- "# epochs : 100\n",
- "!python3 submission.py --modelroot \"/home/feoktistovar67431/isbi2019cancer-master/results/model_cnmc_res_32\" --dataroot \"/home/feoktistovar67431/data/isbi2019/CNMC/phase2\" --batch-size 32 --res 32"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 136,
- "id": "b14e3e67",
- "metadata": {
- "scrolled": false
- },
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "Loading model\n",
- "Classifying\n",
- "59it [00:09, 6.24it/s] \n",
- "Positive: 1315\n",
- "Negative: 552\n",
- "AUC: 0.7711131113339208\n"
- ]
- }
- ],
- "source": [
- "# EVALUATION\n",
- "# dataset : CNMC\n",
- "# res : 128\n",
- "# epochs : 100\n",
- "!python3 submission.py --modelroot \"/home/feoktistovar67431/isbi2019cancer-master/results/model_cnmc_res_128\" --dataroot \"/home/feoktistovar67431/data/isbi2019/CNMC/phase2\" --batch-size 32 --res 128"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 137,
- "id": "dfb25744",
- "metadata": {
- "scrolled": false
- },
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "Loading model\n",
- "Classifying\n",
- "59it [00:14, 4.19it/s] \n",
- "Positive: 1262\n",
- "Negative: 605\n",
- "AUC: 0.8143717274835677\n"
- ]
- }
- ],
- "source": [
- "# EVALUATION\n",
- "# dataset : CNMC\n",
- "# res : 224\n",
- "# epochs : 100\n",
- "!python3 submission.py --modelroot \"/home/feoktistovar67431/isbi2019cancer-master/results/model_cnmc_res_224\" --dataroot \"/home/feoktistovar67431/data/isbi2019/CNMC/phase2\" --batch-size 32 --res 224"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 138,
- "id": "68600db4",
- "metadata": {
- "scrolled": false
- },
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "Loading model\n",
- "Classifying\n",
- "59it [00:41, 1.44it/s] \n",
- "Positive: 1195\n",
- "Negative: 672\n",
- "AUC: 0.8400701597139936\n"
- ]
- }
- ],
- "source": [
- "# EVALUATION\n",
- "# dataset : CNMC\n",
- "# res : 256\n",
- "# epochs : 100\n",
- "!python3 submission.py --modelroot \"/home/feoktistovar67431/isbi2019cancer-master/results/model_cnmc_res_256\" --dataroot \"/home/feoktistovar67431/data/isbi2019/CNMC/phase2\" --batch-size 32 --res 256"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 139,
- "id": "71a5547e",
- "metadata": {
- "scrolled": false
- },
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "Loading model\n",
- "Classifying\n",
- "59it [00:41, 1.42it/s] \n",
- "Positive: 1241\n",
- "Negative: 626\n",
- "AUC: 0.8813918512441892\n"
- ]
- }
- ],
- "source": [
- "# EVALUATION\n",
- "# dataset : CNMC\n",
- "# res : 450\n",
- "# epochs : 100\n",
- "!python3 submission.py --modelroot \"/home/feoktistovar67431/isbi2019cancer-master/results/model_cnmc_res_450\" --dataroot \"/home/feoktistovar67431/data/isbi2019/CNMC/phase2\" --batch-size 32 --res 450"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 154,
- "id": "58450362",
- "metadata": {
- "scrolled": false
- },
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "Loading model\n",
- "Classifying\n",
- "59it [00:41, 1.42it/s] \n",
- "Positive: 1261\n",
- "Negative: 606\n",
- "AUC: 0.8045073375262055\n"
- ]
- }
- ],
- "source": [
- "# EVALUATION\n",
- "# dataset : CNMC_Grayscale\n",
- "# res : 450\n",
- "# epochs : 100\n",
- "!python3 submission.py --modelroot \"/home/feoktistovar67431/isbi2019cancer-master/results/model_cnmc_res_450_grayscale\" --dataroot \"/home/feoktistovar67431/data/isbi2019/CNMC_grayscale/phase2\" --batch-size 32 --res 450"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 155,
- "id": "48c40f18",
- "metadata": {
- "scrolled": false
- },
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "Loading model\n",
- "Classifying\n",
- "59it [00:44, 1.33it/s] \n",
- "Positive: 1178\n",
- "Negative: 689\n",
- "AUC: 0.8661869929814967\n"
- ]
- }
- ],
- "source": [
- "# EVALUATION\n",
- "# dataset : CNMC_no_red\n",
- "# res : 450\n",
- "# epochs : 100\n",
- "!python3 submission.py --modelroot \"/home/feoktistovar67431/isbi2019cancer-master/results/model_cnmc_res_450_no_red\" --dataroot \"/home/feoktistovar67431/data/isbi2019/CNMC_no_red/phase2\" --batch-size 32 --res 450"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 156,
- "id": "b6ad9232",
- "metadata": {
- "scrolled": false
- },
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "Loading model\n",
- "Classifying\n",
- "59it [00:52, 1.12it/s] \n",
- "Positive: 1266\n",
- "Negative: 601\n",
- "AUC: 0.8018310900454735\n"
- ]
- }
- ],
- "source": [
- "# EVALUATION\n",
- "# dataset : CNMC_no_green\n",
- "# res : 450\n",
- "# epochs : 100\n",
- "!python3 submission.py --modelroot \"/home/feoktistovar67431/isbi2019cancer-master/results/model_cnmc_res_450_no_green\" --dataroot \"/home/feoktistovar67431/data/isbi2019/CNMC_no_green/phase2\" --batch-size 32 --res 450"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 157,
- "id": "1ba76d51",
- "metadata": {
- "scrolled": false
- },
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "Loading model\n",
- "Classifying\n",
- "59it [00:48, 1.23it/s] \n",
- "Positive: 1248\n",
- "Negative: 619\n",
- "AUC: 0.8570821813062721\n"
- ]
- }
- ],
- "source": [
- "# EVALUATION\n",
- "# dataset : CNMC_no_blue\n",
- "# res : 450\n",
- "# epochs : 100\n",
- "!python3 submission.py --modelroot \"/home/feoktistovar67431/isbi2019cancer-master/results/model_cnmc_res_450_no_blue\" --dataroot \"/home/feoktistovar67431/data/isbi2019/CNMC_no_blue/phase2\" --batch-size 32 --res 450"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 158,
- "id": "05cfaf9c",
- "metadata": {
- "scrolled": false
- },
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "Loading model\n",
- "Classifying\n",
- "59it [00:52, 1.12it/s] \n",
- "Positive: 1239\n",
- "Negative: 628\n",
- "AUC: 0.8013924335875389\n"
- ]
- }
- ],
- "source": [
- "# EVALUATION\n",
- "# dataset : CNMC_red_only\n",
- "# res : 450\n",
- "# epochs : 100\n",
- "!python3 submission.py --modelroot \"/home/feoktistovar67431/isbi2019cancer-master/results/model_cnmc_res_450_red_only\" --dataroot \"/home/feoktistovar67431/data/isbi2019/CNMC_red_only/phase2\" --batch-size 32 --res 450"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 159,
- "id": "1ad09456",
- "metadata": {
- "scrolled": false
- },
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "Loading model\n",
- "Classifying\n",
- "59it [00:52, 1.13it/s] \n",
- "Positive: 1221\n",
- "Negative: 646\n",
- "AUC: 0.8590070792695896\n"
- ]
- }
- ],
- "source": [
- "# EVALUATION\n",
- "# dataset : CNMC_green_only\n",
- "# res : 450\n",
- "# epochs : 100\n",
- "!python3 submission.py --modelroot \"/home/feoktistovar67431/isbi2019cancer-master/results/model_cnmc_res_450_green_only\" --dataroot \"/home/feoktistovar67431/data/isbi2019/CNMC_green_only/phase2\" --batch-size 32 --res 450"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 160,
- "id": "41e8d3a0",
- "metadata": {
- "scrolled": false
- },
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "Loading model\n",
- "Classifying\n",
- "59it [00:52, 1.12it/s] \n",
- "Positive: 1255\n",
- "Negative: 612\n",
- "AUC: 0.8268636253152251\n"
- ]
- }
- ],
- "source": [
- "# EVALUATION\n",
- "# dataset : CNMC_blue_only\n",
- "# res : 450\n",
- "# epochs : 100\n",
- "!python3 submission.py --modelroot \"/home/feoktistovar67431/isbi2019cancer-master/results/model_cnmc_res_450_blue_only\" --dataroot \"/home/feoktistovar67431/data/isbi2019/CNMC_blue_only/phase2\" --batch-size 32 --res 450"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 186,
- "id": "88bc18db",
- "metadata": {
- "scrolled": false
- },
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "Loading model\n",
- "Classifying\n",
- "59it [01:24, 1.43s/it] \n",
- "Positive: 1235\n",
- "Negative: 632\n",
- "AUC: 0.8588406050294211\n"
- ]
- }
- ],
- "source": [
- "# EVALUATION\n",
- "# dataset : CNMC-blackborder\n",
- "# res : 450\n",
- "# epochs : 100\n",
- "!python3 submission.py --modelroot \"/home/feoktistovar67431/isbi2019cancer-master/results/model_cnmc_res_450_w_blackborder\" --dataroot \"/home/feoktistovar67431/data/isbi2019/CNMC/phase2\" --batch-size 32 --res 450"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "id": "ec31125a",
- "metadata": {},
- "outputs": [],
- "source": []
- }
- ],
- "metadata": {
- "kernelspec": {
- "display_name": "Python 3",
- "language": "python",
- "name": "python3"
- },
- "language_info": {
- "codemirror_mode": {
- "name": "ipython",
- "version": 3
- },
- "file_extension": ".py",
- "mimetype": "text/x-python",
- "name": "python",
- "nbconvert_exporter": "python",
- "pygments_lexer": "ipython3",
- "version": "3.6.9"
- }
- },
- "nbformat": 4,
- "nbformat_minor": 5
- }
|