https://github.com/project-monai/monai-extra-test-data
Repository containing extra test data for MONAI
https://github.com/project-monai/monai-extra-test-data
Last synced: 12 months ago
JSON representation
Repository containing extra test data for MONAI
- Host: GitHub
- URL: https://github.com/project-monai/monai-extra-test-data
- Owner: Project-MONAI
- License: apache-2.0
- Created: 2021-05-12T13:41:04.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-09-19T08:19:14.000Z (over 2 years ago)
- Last Synced: 2025-03-25T22:35:25.216Z (about 1 year ago)
- Language: Python
- Size: 9.59 MB
- Stars: 7
- Watchers: 5
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# monai-test-data [](https://github.com/Project-MONAI/MONAI-extra-test-data/commits/main)
Repository for storing networks and their forward data.
The data in this repository is used by the main [MONAI repository](https://github.com/Project-MONAI/MONAI) as a unit test. This repository is checked out, the environmantal variable is `MONAI_EXTRA_TEST_DATA` is set and then the unit test can be run.
## Running the tests
```bash
git clone https://github.com/Project-MONAI/MONAI-extra-test-data.git --depth 1
git clone https://github.com/Project-MONAI/MONAI.git --depth 1
export MONAI_EXTRA_TEST_DATA=MONAI-extra-test-data
cd MONAI
pip install --user --upgrade -r requirements-min.txt
python -m unittest -v tests/test_network_consistency.py
```
## How to create a new test
```python
# model name
model_name = "UNet"
# network params
params = {
"dimensions" : 3,
"in_channels" : 4,
"out_channels" : 2,
"channels": (4, 8, 16, 32),
"strides": (2, 4, 1),
"kernel_size" : 5,
"up_kernel_size" : 3,
"num_res_units": 2,
"act": "relu",
"dropout": 0.1,
}
# in shape
input_shape = (1, params["in_channels"], 64, 64, 64)
# create data
create_model_test_data(model_name, params, input_shape)
```