Skip to content

Commit a790590

Browse files
authored
8354 fix path at test onnx trt export (#8361)
Fixes #8354 ### Description A few sentences describing the changes proposed in this pull request. ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [ ] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [ ] In-line docstrings updated. - [ ] Documentation updated, tested `make html` command in the `docs/` folder. --------- Signed-off-by: R. Garcia-Dias <[email protected]>
1 parent d98f348 commit a790590

File tree

2 files changed

+18
-15
lines changed

2 files changed

+18
-15
lines changed

README.md

+17-14
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ Its ambitions are as follows:
3333
- customizable design for varying user expertise;
3434
- multi-GPU multi-node data parallelism support.
3535

36-
3736
## Installation
3837

3938
To install [the current release](https://pypi.org/project/monai/), you can simply run:
@@ -54,30 +53,34 @@ Technical documentation is available at [docs.monai.io](https://docs.monai.io).
5453

5554
## Citation
5655

57-
If you have used MONAI in your research, please cite us! The citation can be exported from: https://arxiv.org/abs/2211.02701.
56+
If you have used MONAI in your research, please cite us! The citation can be exported from: <https://arxiv.org/abs/2211.02701>.
5857

5958
## Model Zoo
59+
6060
[The MONAI Model Zoo](https://github.com/Project-MONAI/model-zoo) is a place for researchers and data scientists to share the latest and great models from the community.
6161
Utilizing [the MONAI Bundle format](https://docs.monai.io/en/latest/bundle_intro.html) makes it easy to [get started](https://github.com/Project-MONAI/tutorials/tree/main/model_zoo) building workflows with MONAI.
6262

6363
## Contributing
64+
6465
For guidance on making a contribution to MONAI, see the [contributing guidelines](https://github.com/Project-MONAI/MONAI/blob/dev/CONTRIBUTING.md).
6566

6667
## Community
68+
6769
Join the conversation on Twitter/X [@ProjectMONAI](https://twitter.com/ProjectMONAI) or join our [Slack channel](https://forms.gle/QTxJq3hFictp31UM9).
6870

6971
Ask and answer questions over on [MONAI's GitHub Discussions tab](https://github.com/Project-MONAI/MONAI/discussions).
7072

7173
## Links
72-
- Website: https://monai.io/
73-
- API documentation (milestone): https://docs.monai.io/
74-
- API documentation (latest dev): https://docs.monai.io/en/latest/
75-
- Code: https://github.com/Project-MONAI/MONAI
76-
- Project tracker: https://github.com/Project-MONAI/MONAI/projects
77-
- Issue tracker: https://github.com/Project-MONAI/MONAI/issues
78-
- Wiki: https://github.com/Project-MONAI/MONAI/wiki
79-
- Test status: https://github.com/Project-MONAI/MONAI/actions
80-
- PyPI package: https://pypi.org/project/monai/
81-
- conda-forge: https://anaconda.org/conda-forge/monai
82-
- Weekly previews: https://pypi.org/project/monai-weekly/
83-
- Docker Hub: https://hub.docker.com/r/projectmonai/monai
74+
75+
- Website: <https://monai.io/>
76+
- API documentation (milestone): <https://docs.monai.io/>
77+
- API documentation (latest dev): <https://docs.monai.io/en/latest/>
78+
- Code: <https://github.com/Project-MONAI/MONAI>
79+
- Project tracker: <https://github.com/Project-MONAI/MONAI/projects>
80+
- Issue tracker: <https://github.com/Project-MONAI/MONAI/issues>
81+
- Wiki: <https://github.com/Project-MONAI/MONAI/wiki>
82+
- Test status: <https://github.com/Project-MONAI/MONAI/actions>
83+
- PyPI package: <https://pypi.org/project/monai/>
84+
- conda-forge: <https://anaconda.org/conda-forge/monai>
85+
- Weekly previews: <https://pypi.org/project/monai-weekly/>
86+
- Docker Hub: <https://hub.docker.com/r/projectmonai/monai>

tests/bundle/test_bundle_trt_export.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def test_trt_export(self, convert_precision, input_shape, dynamic_batch):
108108
has_onnx and has_torchtrt and has_tensorrt, "Onnx and TensorRT are required for onnx-trt conversion!"
109109
)
110110
def test_onnx_trt_export(self, convert_precision, input_shape, dynamic_batch):
111-
tests_dir = Path(__file__).resolve().parent
111+
tests_dir = Path(__file__).resolve().parents[1]
112112
meta_file = os.path.join(tests_dir, "testing_data", "metadata.json")
113113
config_file = os.path.join(tests_dir, "testing_data", "inference.json")
114114
with tempfile.TemporaryDirectory() as tempdir:

0 commit comments

Comments
 (0)