Mura competition https://stanfordmlgroup.github.io/competitions/mura/
- Setup your preferred environment, i.e. virtualenv, conda, docker
- Install packages:
pip install -r requirements.txt
- Download MURA dataset into
/dataset/
directory. Link to MURA: https://stanfordmlgroup.github.io/competitions/mura/ - Download MNIST dataset into
/dataset/mnist/
. Link to MNIST: http://yann.lecun.com/exdb/mnist/ Note: you need all 4 zip file and unpack them. - To run VGGNet model on MURA dataset, run
python vggnet.py train
. Add-h
flag for all options. - To run a simple model on MNIST dataset, run
python mnist_simple.py train
. Add-h
flag for all options. - To show a visualization of model attention or activation of a layer, run
python visualize.py
. Add-h
flag for all options.
- In order to run tensorflow in gpu, install
tensorflow-gpu
instead oftensorflow
inrequirements.txt
- For MacOS user, importing
dataset
might throw exception, as explained by: https://matplotlib.org/faq/osx_framework.html If you usevirtualenv
, one solution pointed out by Kevin is to add the following code to the top of yourdataset.py
:import matplotlib as mpl mpl.use('TkAgg')