Skip to content

Commit

Permalink
Move files in assets to samples (IBM#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
feihugis authored Jul 8, 2019
1 parent ef39c88 commit b61e0d2
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 11 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[![Build Status](https://travis-ci.org/IBM/MAX-Breast-Cancer-Mitosis-Detector.svg?branch=master)](https://travis-ci.org/IBM/MAX-Breast-Cancer-Mitosis-Detector) [![Website Status](https://img.shields.io/website/http/max-breast-cancer-mitosis-detector.max.us-south.containers.appdomain.cloud/swagger.json.svg?label=api+demo)](http://max-breast-cancer-mitosis-detector.max.us-south.containers.appdomain.cloud/)

[<img src="docs/deploy-max-to-ibm-cloud-with-kubernetes-button.png" width="400px">](http://ibm.biz/max-to-ibm-cloud-tutorial)

# IBM Code Model Asset Exchange: Breast Cancer Mitosis Detector

The [Tumor Proliferation Assessment Challenge 2016 (TUPAC16)](http://tupac.tue-image.nl/) was created to develop state-of-the-art algorithms for automatic prediction of tumor proliferation scores from whole-slide histopathology images of breast tumors. The [IBM CODAIT](http://codait.org) team trained a mitosis detection model (a modified ResNet-50 model) on the [TUPAC16 auxiliary mitosis dataset](http://tupac.tue-image.nl/node/3), and then applied it to the whole slide images for predicting the tumor proliferation scores.
Expand All @@ -25,6 +27,7 @@ _Note:_ Although this model supports different input data formats, the inference
| ------------- | -------- | -------- |
| This repository | [Apache 2.0](https://www.apache.org/licenses/LICENSE-2.0) | [LICENSE](LICENSE) |
| Training Data | Custom License | [TUPAC16](http://tupac.tue-image.nl/node/5) |
| Test Samples | Custom License | [Sample README](samples/README.md) |

## Pre-requisites:

Expand Down Expand Up @@ -105,15 +108,15 @@ $ docker run -it -p 5000:5000 max-breast-cancer-mitosis-detector
The API server automatically generates an interactive Swagger documentation page. Go to `http://localhost:5000` to load
it. From there you can explore the API and also create test requests.

Use the `model/predict` endpoint to load a test image (you can use one of the test images from the `assets` folder) and
Use the `model/predict` endpoint to load a test image (you can use one of the test images from the `samples` folder) and
get predicted labels for the image from the API.

![Swagger Doc Screenshot](docs/swagger-screenshot.png)

You can also test it on the command line, for example:

```bash
$ curl -F "image=@assets/true.png" -XPOST http://localhost:5000/model/predict
$ curl -F "image=@samples/true.png" -XPOST http://localhost:5000/model/predict
```

You should see a JSON response like that below:
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 1 addition & 7 deletions assets/README.md → samples/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
# Asset Details

## Model files

Model files are released under an [Apache 2 License](https://www.apache.org/licenses/LICENSE-2.0).

* deep_histopath_model.hdf5
# Sample Details

## Images

Expand Down
File renamed without changes
File renamed without changes
4 changes: 2 additions & 2 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def test_metadata():

def test_predict():
model_endpoint = 'http://localhost:5000/model/predict'
true_path = 'assets/true.png'
false_path = 'assets/false.png'
true_path = 'samples/true.png'
false_path = 'samples/false.png'

# Test True

Expand Down

0 comments on commit b61e0d2

Please sign in to comment.