{ "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": [ { "name": "stdout", "output_type": "stream", "text": [ "Namespace(batch_size=32, dataroot='/home/feoktistovar67431/data/isbi2019/CNMC', device='cuda', epochs=100, out='results/20220221T191207Z.OEHG', res=450, seed=30042022)\n", "Model parameters: 25512945\n", "Trainset length: 10625\n", "Validset length: 1867\n", "class_weights = tensor([0.3156, 0.6844], device='cuda:0')\n", "/home/feoktistovar67431/.local/lib/python3.6/site-packages/sklearn/metrics/_classification.py:1248: UndefinedMetricWarning: Precision and F-score are ill-defined and being set to 0.0 in labels with no predicted samples. Use `zero_division` parameter to control this behavior.\n", " _warn_prf(average, modifier, msg_start, len(result))\n", "epoch=0 f1=0.1789\n", "WARNING:root:NaN or Inf found in input tensor.\n", "Epoch: 0%| | 0/100 [00:00