Skip to content

Commit d5344a5

Browse files
rijobrowyli
andauthored
Add conda badge to readme (#5661)
Add conda badge to readme Signed-off-by: Wenqi Li <wenqil@nvidia.com> Co-authored-by: Wenqi Li <wenqil@nvidia.com>
1 parent cbf65e3 commit d5344a5

4 files changed

Lines changed: 7 additions & 8 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
[![Documentation Status](https://readthedocs.org/projects/monai/badge/?version=latest)](https://docs.monai.io/en/latest/?badge=latest)
1010
[![codecov](https://codecov.io/gh/Project-MONAI/MONAI/branch/dev/graph/badge.svg)](https://codecov.io/gh/Project-MONAI/MONAI)
1111
[![PyPI version](https://badge.fury.io/py/monai.svg)](https://badge.fury.io/py/monai)
12+
[![conda](https://img.shields.io/conda/vn/conda-forge/monai)](https://anaconda.org/conda-forge/monai)
1213

1314
MONAI is a [PyTorch](https://pytorch.org/)-based, [open-source](https://github.com/Project-MONAI/MONAI/blob/dev/LICENSE) framework for deep learning in healthcare imaging, part of [PyTorch Ecosystem](https://pytorch.org/ecosystem/).
1415
Its ambitions are:

tests/test_dynunet.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717

1818
from monai.networks import eval_mode
1919
from monai.networks.nets import DynUNet
20-
from monai.utils.module import pytorch_after
21-
from tests.utils import skip_if_no_cuda, skip_if_windows, test_script_save
20+
from tests.utils import assert_allclose, skip_if_no_cuda, skip_if_windows, test_script_save
2221

2322
device = "cuda" if torch.cuda.is_available() else "cpu"
2423

@@ -144,11 +143,7 @@ def test_consistency(self, input_param, input_shape, _):
144143
with eval_mode(net_fuser):
145144
result_fuser = net_fuser(input_tensor)
146145

147-
# torch.testing.assert_allclose() is deprecated since 1.12 and will be removed in 1.14
148-
if pytorch_after(1, 12):
149-
torch.testing.assert_close(result, result_fuser)
150-
else:
151-
torch.testing.assert_allclose(result, result_fuser)
146+
assert_allclose(result, result_fuser, rtol=1e-4, atol=1e-4)
152147

153148

154149
class TestDynUNetDeepSupervision(unittest.TestCase):

tests/test_vitautoenc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
from monai.networks import eval_mode
1717
from monai.networks.nets.vitautoenc import ViTAutoEnc
18+
from tests.utils import skip_if_windows
1819

1920
TEST_CASE_Vitautoenc = []
2021
for in_channels in [1, 4]:
@@ -63,6 +64,7 @@
6364

6465
class TestPatchEmbeddingBlock(unittest.TestCase):
6566
@parameterized.expand(TEST_CASE_Vitautoenc)
67+
@skip_if_windows
6668
def test_shape(self, input_param, input_shape, expected_shape):
6769
net = ViTAutoEnc(**input_param)
6870
with eval_mode(net):

tests/test_weighted_random_sampler_dist.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@
1616
import torch.distributed as dist
1717

1818
from monai.data import DistributedWeightedRandomSampler
19-
from tests.utils import DistCall, DistTestCase
19+
from tests.utils import DistCall, DistTestCase, skip_if_windows
2020

2121

22+
@skip_if_windows
2223
class DistributedWeightedRandomSamplerTest(DistTestCase):
2324
@DistCall(nnodes=1, nproc_per_node=2)
2425
def test_sampling(self):

0 commit comments

Comments
 (0)