-
A: includes Task A code
TaskA.py
, all classes and functions required are already inTaskA.py
TaskA_ResNet.ipynb
: can be run in Jupyter NotebookTrained_Model.ipynb
: file that can run the pretrained modelcheckpoint_resnet100.pth
: pretrained model with 100 epochsloss.png
: train loss curve used in the preort
-
B: includes Task A code
TaskB.py
, all classes and functions required are already inTaskB.py
TaskB_ResNet.ipynb
: can be run in Jupyter NotebookTrained_Model.ipynb
: file that can run the pretrained modelcheckpoint_resnet100.pth
: pretrained model with 100 epochsloss.png
: train loss curve used in the preort
-
Dataset: includes directories of
PathMNIST
andPneumoniaMNIST
. Bith directories have atemp.txt
in it.pneumoniamnist.npz
andpathmnist.npz
can be put into corresponding directory. -
main.py
: used for runingTaskA.py
andTaskB.py
torch==2.1.1+cu118
torchvision==0.16.1+cu118
medmnist
sklearn
scipy
numpy
matplotlib
tqdm
To install medmnist
as a standard Python package, use pip
pip install medmnist
Or install from sorce
pip install --upgrade git+https://github.com/MedMNIST/MedMNIST.git
- The default training epoch is
10
. It can also be changed inTaskA.py
andTaskB.py
with the parameter name ofnum_epoches